@wistia/eslint-config 0.31.1 → 0.32.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 +10 -10
- package/rules/eslint/react.cjs +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"packageManager": "yarn@4.1.0",
|
|
5
5
|
"description": "Wistia's ESLint configurations",
|
|
6
6
|
"main": "react.js",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@babel/preset-react": "^7.23.3",
|
|
46
46
|
"@rushstack/eslint-patch": "^1.7.2",
|
|
47
47
|
"@testing-library/dom": "^9.3.4",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^7.0
|
|
49
|
-
"@typescript-eslint/parser": "^7.0
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
49
|
+
"@typescript-eslint/parser": "^7.1.0",
|
|
50
50
|
"confusing-browser-globals": "^1.0.11",
|
|
51
|
-
"eslint": "^8.
|
|
51
|
+
"eslint": "^8.57.0",
|
|
52
52
|
"eslint-config-prettier": "^9.1.0",
|
|
53
53
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
54
54
|
"eslint-plugin-better-styled-components": "^1.1.2",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"eslint-plugin-filenames": "^1.3.2",
|
|
57
57
|
"eslint-plugin-fp": "^2.3.0",
|
|
58
58
|
"eslint-plugin-import": "^2.29.1",
|
|
59
|
-
"eslint-plugin-jest": "^27.
|
|
59
|
+
"eslint-plugin-jest": "^27.9.0",
|
|
60
60
|
"eslint-plugin-jest-dom": "^5.1.0",
|
|
61
61
|
"eslint-plugin-jest-formatting": "^3.1.0",
|
|
62
|
-
"eslint-plugin-jsdoc": "^48.0
|
|
62
|
+
"eslint-plugin-jsdoc": "^48.2.0",
|
|
63
63
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
64
64
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
65
65
|
"eslint-plugin-no-snapshot-testing": "^1.0.61",
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
"stylelint-scss": "^6.1.0"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@commitlint/cli": "^
|
|
92
|
-
"@commitlint/config-conventional": "^
|
|
91
|
+
"@commitlint/cli": "^19.0.0",
|
|
92
|
+
"@commitlint/config-conventional": "^19.0.0",
|
|
93
93
|
"check-export-map": "^1.3.1",
|
|
94
|
-
"husky": "^9.0.
|
|
94
|
+
"husky": "^9.0.11",
|
|
95
95
|
"typescript": "^5.3.3",
|
|
96
|
-
"vitest": "^1.
|
|
96
|
+
"vitest": "^1.3.1"
|
|
97
97
|
},
|
|
98
98
|
"engines": {
|
|
99
99
|
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
package/rules/eslint/react.cjs
CHANGED
|
@@ -626,6 +626,18 @@ module.exports = {
|
|
|
626
626
|
// Prevent problematic leaked values from being rendered
|
|
627
627
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-leaked-render.md
|
|
628
628
|
'react/jsx-no-leaked-render': 'error',
|
|
629
|
+
|
|
630
|
+
// Enforce using `onChange` or `readonly` attribute when `checked` is used
|
|
631
|
+
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/checked-requires-onchange-or-readonly.md
|
|
632
|
+
'react/checked-requires-onchange-or-readonly': 'error',
|
|
633
|
+
|
|
634
|
+
// Disallow usage of referential-type variables as default param in functional component
|
|
635
|
+
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-object-type-as-default-prop.md
|
|
636
|
+
'react/no-object-type-as-default-prop': 'error',
|
|
637
|
+
|
|
638
|
+
// This rule is deprecated. It was replaced by `react/sort-default-props`
|
|
639
|
+
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-default-props.md
|
|
640
|
+
'react/jsx-sort-default-props': 'off',
|
|
629
641
|
},
|
|
630
642
|
|
|
631
643
|
settings: {
|