Skip to content

Commit 947b3f8

Browse files
authored
refactor: change severity of 'no-duplicate-key' rule from error to warn (#939)
1 parent 6f493d2 commit 947b3f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/plugins/eslint-plugin-react-x/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default [
4444
"react-x/no-default-props": "error",
4545
"react-x/no-direct-mutation-state": "error",
4646
"react-x/no-duplicate-jsx-props": "warn",
47-
"react-x/no-duplicate-key": "error",
47+
"react-x/no-duplicate-key": "warn",
4848
"react-x/no-forward-ref": "warn",
4949
"react-x/no-implicit-key": "warn",
5050
"react-x/no-missing-key": "error",

packages/plugins/eslint-plugin/src/configs/all.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const rules = {
3131
"@eslint-react/no-default-props": "error",
3232
"@eslint-react/no-direct-mutation-state": "error",
3333
"@eslint-react/no-duplicate-jsx-props": "warn",
34-
"@eslint-react/no-duplicate-key": "error",
34+
"@eslint-react/no-duplicate-key": "warn",
3535
"@eslint-react/no-forward-ref": "warn",
3636
"@eslint-react/no-implicit-key": "warn",
3737
"@eslint-react/no-missing-component-display-name": "warn",

packages/plugins/eslint-plugin/src/configs/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const rules = {
2323
"@eslint-react/no-default-props": "error",
2424
"@eslint-react/no-direct-mutation-state": "error",
2525
"@eslint-react/no-duplicate-jsx-props": "warn",
26-
"@eslint-react/no-duplicate-key": "error",
26+
"@eslint-react/no-duplicate-key": "warn",
2727
"@eslint-react/no-forward-ref": "warn",
2828
"@eslint-react/no-implicit-key": "warn",
2929
"@eslint-react/no-missing-key": "error",

0 commit comments

Comments
 (0)