@wistia/eslint-config 0.26.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/rules/eslint/react.cjs +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"packageManager": "yarn@4.0.2",
|
|
5
5
|
"description": "Wistia's ESLint configurations",
|
|
6
6
|
"main": "react.js",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"stylelint": "^16.0.1",
|
|
77
77
|
"stylelint-declaration-block-no-ignored-properties": "^2.7.0",
|
|
78
78
|
"stylelint-prettier": "^5.0.0",
|
|
79
|
-
"stylelint-scss": "^
|
|
79
|
+
"stylelint-scss": "^6.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@commitlint/cli": "^18.4.3",
|
package/rules/eslint/react.cjs
CHANGED
|
@@ -94,7 +94,10 @@ module.exports = {
|
|
|
94
94
|
|
|
95
95
|
// Validate JSX has key prop when in array or iterator
|
|
96
96
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-key.md
|
|
97
|
-
'react/jsx-key':
|
|
97
|
+
'react/jsx-key': [
|
|
98
|
+
'error',
|
|
99
|
+
{ checkFragmentShorthand: true, checkKeyMustBeforeSpread: true, warnOnDuplicates: true },
|
|
100
|
+
],
|
|
98
101
|
|
|
99
102
|
// Limit maximum of props on a single line in JSX
|
|
100
103
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-max-props-per-line.md
|