Closed adonis-work closed 7 years ago
it work for me (osx), I don't know how to reproduce ;/ could you try to debug it somehow? (please clone this repository)
I think that standard --fix
does something more than run fixing through eslint rules.
Here is the cli of standard, --fix applies the result of the marked line: https://github.com/Flet/standard-engine/blob/master/bin/cmd.js#L96
Maybe these rules could be of help https://github.com/feross/eslint-config-standard-jsx/blob/master/eslintrc.json
prettier-standard doesn't use standard for formatting, but prettier-eslint with some eslint rules
@adonis-work I've released 4.1.0, please check if it works for you
Yes, now it works ok. Tnx for fast response.
C:\>type test.js
const GoogleLoginButton = React.createClass({
componentDidMount: () => {
window.addEventListener('google-loaded', renderGoogleLoginButton)
renderGoogleLoginButton()
},
render: () => <div id="gmailLogin" />
})
C:\>prettier-standard test.js
success formatting 1 file with prettier-standard
C:\>type test.js
const GoogleLoginButton = React.createClass({
componentDidMount: () => {
window.addEventListener('google-loaded', renderGoogleLoginButton)
renderGoogleLoginButton()
},
render: () => <div id='gmailLogin' />
})
@adonis-work Thank you as well, please feel free to add yourself to contributor list
Running prettier-standard does not replace double quotes in JSX.
Using standard with --fix replaces the quotes:
How to get this functionality with prettier-standard?