Skip to content

Commit

Permalink
Check if the shorthand fragment syntax requires a key prop (react/jsx…
Browse files Browse the repository at this point in the history
…-key)

Fixes: standard/standard#1575
  • Loading branch information
feross committed Oct 28, 2020
1 parent 538c9ec commit 09dfce8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"react/jsx-handler-names": "error",
"react/jsx-indent": ["error", 2, { "checkAttributes": true, "indentLogicalExpressions": true }],
"react/jsx-indent-props": ["error", 2],
"react/jsx-key": "error",
"react/jsx-key": ["error", {
"checkFragmentShorthand": true
}],
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": ["error", { "enforceDynamicLinks": "always" }],
Expand Down

0 comments on commit 09dfce8

Please sign in to comment.