Skip to content

Commit 62c3a59

Browse files
johnrazeurphilibea
andauthored
feat(eslint-config-react): add jsx-key rule (#1746)
* feat(eslint-config-react): add jsx-key rule * fix: disable jsx-key rule for tests --------- Co-authored-by: philibeaux <[email protected]>
1 parent c7d2a78 commit 62c3a59

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/shiny-waves-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scaleway/eslint-config-react': minor
3+
---
4+
5+
Add react/jsx-key rule

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"**/__tests__/**/*.ts{x,}"
3939
],
4040
"rules": {
41-
"import/no-extraneous-dependencies": "off"
41+
"import/no-extraneous-dependencies": "off",
42+
"react/jsx-key": "off"
4243
}
4344
}
4445
]

packages/eslint-config-react/shared.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,6 @@ module.exports = {
123123
],
124124
'sort-keys': 'off',
125125
'no-constant-binary-expression': 'error',
126+
'react/jsx-key': 'error',
126127
},
127128
}

0 commit comments

Comments
 (0)