blob: a8fb38861c741628925ba995657e5adb6040bf11 (
plain)
1
2
3
4
5
6
|
const prettier = require('prettier')
const config = require('../../../.prettierrc')
module.exports = (code, parser = 'babel') => {
return prettier.format(code, Object.assign(config, { parser }))
}
|