-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Airbnb eslint with prettier-atom not indenting plain text children of JSX tags #1859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you provide output from the command line, to ensure it's not an issue with Atom? |
./node_modules/.bin/eslint src/ yields: 4:16 error Component should be written as a pure function react/prefer-stateless-function
7:7 error JSX not allowed in files with extension '.js' react/jsx-filename-extension I added some more stuff into my .eslintrc
and this problem goes away. |
So if you run eslint with |
No |
Sounds like it's a bug with Atom then. I'll close, but happy to reopen if needed. |
Hi. I'm getting this error using It happens when |
@adalbertoteixeira with what code do you see what error on the command line? This might be better filed on eslint-plugin-react. |
I was seeing the wrong indentation (what @mileung shows on his issue) when running He says he doesn't get the issue when running And I'm sorry, but isn't this |
oh lol my bad, i got confused. I’ll reopen. |
Isn't this the same as #1775 ? |
Looks like it, thanks. |
in my package.json:
The text was updated successfully, but these errors were encountered: