eslint-config-seekingalpha-react 6.3.0 → 6.5.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.5.0 - 2023-01-17
|
|
4
|
+
- [deps] upgrade `eslint` to version `8.32.0`
|
|
5
|
+
- [deps] upgrade `eslint-plugin-jsx-a11y` to version `6.7.1`
|
|
6
|
+
- [deps] upgrade `eslint-plugin-react` to version `7.32.1`
|
|
7
|
+
|
|
8
|
+
## 6.4.0 - 2023-01-11
|
|
9
|
+
- [deps] upgrade `eslint-plugin-jsx-a11y` to version `6.7.0`
|
|
10
|
+
- [deps] upgrade `eslint-plugin-react` to version `7.32.0`
|
|
11
|
+
- [breaking] update `react/hook-use-state` rule
|
|
12
|
+
- [breaking] introduce `jsx-a11y/prefer-tag-over-role` rule
|
|
13
|
+
- [breaking] introduce `react/no-object-type-as-default-prop` rule
|
|
14
|
+
- [breaking] `react/jsx-sort-default-props` deprecated, replace with `react/sort-default-props`
|
|
15
|
+
|
|
3
16
|
## 6.3.0 - 2023-01-03
|
|
4
17
|
- [deps] upgrade `eslint` to version `8.31.0`
|
|
5
18
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/
|
|
|
6
6
|
|
|
7
7
|
Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):
|
|
8
8
|
|
|
9
|
-
npm install eslint@8.
|
|
9
|
+
npm install eslint@8.32.0 eslint-plugin-jsx-a11y@6.7.1 eslint-plugin-react@7.32.1 eslint-plugin-react-hooks@4.6.0 --save-dev
|
|
10
10
|
|
|
11
11
|
Install SeekingAlpha shareable ESLint:
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seekingalpha-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable React.js ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"node": ">= 18"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"eslint": "8.
|
|
53
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
54
|
-
"eslint-plugin-react": "7.
|
|
52
|
+
"eslint": "8.32.0",
|
|
53
|
+
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
54
|
+
"eslint-plugin-react": "7.32.1",
|
|
55
55
|
"eslint-plugin-react-hooks": "4.6.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"eslint": "8.
|
|
58
|
+
"eslint": "8.32.0",
|
|
59
59
|
"eslint-find-rules": "4.1.0",
|
|
60
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
61
|
-
"eslint-plugin-react": "7.
|
|
60
|
+
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
61
|
+
"eslint-plugin-react": "7.32.1",
|
|
62
62
|
"eslint-plugin-react-hooks": "4.6.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -188,13 +188,8 @@ module.exports = {
|
|
|
188
188
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
|
|
189
189
|
'react/jsx-props-no-multi-spaces': 'error',
|
|
190
190
|
|
|
191
|
-
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/
|
|
192
|
-
'react/
|
|
193
|
-
'off',
|
|
194
|
-
{
|
|
195
|
-
ignoreCase: true,
|
|
196
|
-
},
|
|
197
|
-
],
|
|
191
|
+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-default-props.md
|
|
192
|
+
'react/sort-default-props': 'off',
|
|
198
193
|
|
|
199
194
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
|
|
200
195
|
'react/jsx-sort-props': [
|
|
@@ -271,6 +266,9 @@ module.exports = {
|
|
|
271
266
|
|
|
272
267
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
|
|
273
268
|
'react/jsx-no-script-url': 'error',
|
|
269
|
+
|
|
270
|
+
'react/no-object-type-as-default-prop': 'error',
|
|
271
|
+
|
|
274
272
|
},
|
|
275
273
|
|
|
276
274
|
};
|
|
@@ -157,7 +157,12 @@ module.exports = {
|
|
|
157
157
|
],
|
|
158
158
|
|
|
159
159
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md
|
|
160
|
-
'react/hook-use-state':
|
|
160
|
+
'react/hook-use-state': [
|
|
161
|
+
'error',
|
|
162
|
+
{
|
|
163
|
+
allowDestructuredState: true,
|
|
164
|
+
},
|
|
165
|
+
],
|
|
161
166
|
|
|
162
167
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/iframe-missing-sandbox.md
|
|
163
168
|
'react/iframe-missing-sandbox': 'error',
|