-
-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Description
I try run example
const format = require('prettier-eslint')
// notice, no semicolon in the original text
const sourceCode = 'const {foo} = bar'
const options = {
text: sourceCode,
eslintConfig: {
rules: {
semi: ['error', 'never'],
},
},
prettierOptions: {
bracketSpacing: true,
},
}
const formatted = format(options)
// notice no semicolon in the formatted text
console.log(formatted) // const { foo } = bar
and output "undefined"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels