-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
Description
Hi! I tried to use "react/jsx-one-expression-per-line" rule, but its behaviour is very strange and I don't know how can I fix it.
Sandbox : https://codesandbox.io/s/gatsby-starter-default-f7u3w , please do npm run lint
in terminal
My config .eslintrc.json
{
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"react/jsx-one-expression-per-line": [2, { "allow": "none" }]
}
}
Before running eslint --fix
<h1>Hi people</h1>
<p>Welcome to your new Gatsby site.</p>
<p>Now go build something great.</p>
After applying eslint
<h1>
Hi people
</h1>
<p>
Welcome to your new Gatsby site.
</p>
<p>
Now go build something great.
</p>