Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 5da3573

Browse files
Upgrade eslint-config-react to 7.4.0
1 parent ea48ccc commit 5da3573

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

coding-styles/react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ module.exports = {
1616
// This rule checks all JSX multiline elements and verifies the location of the closing bracket.
1717
'react/jsx-closing-bracket-location': ['warn', 'line-aligned'],
1818

19+
// Disallow unnecessary curly braces in JSX props and/or children
20+
'react/jsx-curly-brace-presence': ['warn', 'never'],
21+
1922
// Disallow spaces inside of curly braces in JSX attributes
2023
'react/jsx-curly-spacing': ['warn', {
2124
when: 'never',

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"eslint-plugin-flowtype": "^2.35.0",
1919
"eslint-plugin-import": "^2.7.0",
2020
"eslint-plugin-jsx-a11y": "^6.0.2",
21-
"eslint-plugin-react": "^7.3.0"
21+
"eslint-plugin-react": "^7.4.0"
2222
},
2323
"devDependencies": {
2424
"eslint": "^4.6.0"

0 commit comments

Comments
 (0)