Skip to content

Commit ba09e16

Browse files
authored
chore(eslint): Add react/jsx-key lint rule (#3447)
Rule is set to error. option checkFragmentShorthand option set to true, meaning the rule is used for shorthand fragment syntax too. option will default to true next major eslint-plugin-react version See rule docs [here](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-key.md)
1 parent 9f23b64 commit ba09e16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"sourceType": "module"
1616
},
1717
"rules": {
18+
"react/jsx-key": ["error", { "checkFragmentShorthand": true }],
1819
"@typescript-eslint/ban-types": "off",
1920
"@typescript-eslint/ban-ts-comment": "off",
2021
"@typescript-eslint/explicit-module-boundary-types": "off",

0 commit comments

Comments
 (0)