Eslint-plugin-react: Trouble with react/jsx-one-expression-per-line

Created on 9 Aug 2018  路  2Comments  路  Source: yannickcr/eslint-plugin-react

I'm using eslint-config-airbnb followed by eslint-config-prettier. My .eslintrc:

{
  "extends": ["airbnb", "prettier"]
}

I'm using v2.9.0 of eslint-config-prettier and the react/jsx-one-expression-per-line is off. Yet I get a ton of react/jsx-one-expression-per-line errors and not sure where they are coming from. I have to add rules to my .eslintrc and turn it off there.

Most helpful comment

My bad. Config needs to be:

{
  "extends": ["airbnb", "prettier", "prettier/react"]
}

Then all is fine.

All 2 comments

Are you sure that's the only eslintrc you're using, and are you sure you're using everything locally installed?

My bad. Config needs to be:

{
  "extends": ["airbnb", "prettier", "prettier/react"]
}

Then all is fine.

Was this page helpful?
0 / 5 - 0 ratings