$ standard index.js
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
/Users/mcchris/steve/prettier-standard-bug/index.js:1:9: Missing space before *.
error Command failed with exit code 1.
prettier-standard will format the following from:
function * test () {
console.log('test')
}
test()
to:
function* test () {
console.log('test')
}
test()
Workaround is running standard --fix after running format. I assumed this library will just pipe the result of prettier into standard --fix. There seems to be a bug?
Reproduction: https://github.com/mcchrish/prettier-standard-bug.
npm run lint
npm run format
npm run lint
Results to:
prettier-standard
will format the following from:to:
Workaround is running
standard --fix
after runningformat
. I assumed this library will just pipe the result of prettier into standard--fix
. There seems to be a bug?