eslint-config-seekingalpha-react 5.1.0 → 5.2.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 +4 -0
- package/README.md +1 -1
- package/package.json +5 -5
- package/rules/eslint-plugin-flowtype/index.js +12 -0
- package/rules/eslint-plugin-react/react.js +12 -0
package/CHANGELOG.md
CHANGED
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.6.0 eslint-plugin-flowtype@8.0.3 eslint-plugin-jest@25.3.4 eslint-plugin-jsx-a11y@6.5.1 eslint-plugin-react@7.28.0 eslint-plugin-react-hooks@4.3.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": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable React.js ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"node": ">= 14"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"eslint": "8.
|
|
52
|
+
"eslint": "8.6.0",
|
|
53
53
|
"eslint-plugin-flowtype": "8.0.3",
|
|
54
|
-
"eslint-plugin-jest": "25.3.
|
|
54
|
+
"eslint-plugin-jest": "25.3.4",
|
|
55
55
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
56
56
|
"eslint-plugin-react": "7.28.0",
|
|
57
57
|
"eslint-plugin-react-hooks": "4.3.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"eslint": "8.
|
|
60
|
+
"eslint": "8.6.0",
|
|
61
61
|
"eslint-find-rules": "4.0.0",
|
|
62
62
|
"eslint-plugin-flowtype": "8.0.3",
|
|
63
|
-
"eslint-plugin-jest": "25.3.
|
|
63
|
+
"eslint-plugin-jest": "25.3.4",
|
|
64
64
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
65
65
|
"eslint-plugin-react": "7.28.0",
|
|
66
66
|
"eslint-plugin-react-hooks": "4.3.0"
|
|
@@ -46,6 +46,12 @@ module.exports = {
|
|
|
46
46
|
'never',
|
|
47
47
|
],
|
|
48
48
|
|
|
49
|
+
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-interface-id-match
|
|
50
|
+
'flowtype/interface-id-match': [
|
|
51
|
+
'error',
|
|
52
|
+
'^I([A-Z][a-z0-9]*)+',
|
|
53
|
+
],
|
|
54
|
+
|
|
49
55
|
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-newline-after-flow-annotation
|
|
50
56
|
'flowtype/newline-after-flow-annotation': [
|
|
51
57
|
'error',
|
|
@@ -55,6 +61,9 @@ module.exports = {
|
|
|
55
61
|
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-dupe-keys
|
|
56
62
|
'flowtype/no-dupe-keys': 'error',
|
|
57
63
|
|
|
64
|
+
// https://github.com/gajus/eslint-plugin-flowtype#no-duplicate-type-union-intersection-members
|
|
65
|
+
'flowtype/no-duplicate-type-union-intersection-members': 'error',
|
|
66
|
+
|
|
58
67
|
/*
|
|
59
68
|
* https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-no-existential-type
|
|
60
69
|
* should be disabled to support recompose flow types
|
|
@@ -160,6 +169,9 @@ module.exports = {
|
|
|
160
169
|
// https://github.com/gajus/eslint-plugin-flowtype#sort-keys
|
|
161
170
|
'flowtype/sort-keys': 'off',
|
|
162
171
|
|
|
172
|
+
// https://github.com/gajus/eslint-plugin-flowtype#sort-type-union-intersection-members
|
|
173
|
+
'flowtype/sort-type-union-intersection-members': 'off',
|
|
174
|
+
|
|
163
175
|
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-space-after-type-colon
|
|
164
176
|
'flowtype/space-after-type-colon': [
|
|
165
177
|
'error',
|
|
@@ -165,6 +165,9 @@ module.exports = {
|
|
|
165
165
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md
|
|
166
166
|
'react/no-array-index-key': 'error',
|
|
167
167
|
|
|
168
|
+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-arrow-function-lifecycle.md
|
|
169
|
+
'react/no-arrow-function-lifecycle': 'error',
|
|
170
|
+
|
|
168
171
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
|
|
169
172
|
'react/no-children-prop': 'error',
|
|
170
173
|
|
|
@@ -186,6 +189,9 @@ module.exports = {
|
|
|
186
189
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
|
|
187
190
|
'react/no-find-dom-node': 'error',
|
|
188
191
|
|
|
192
|
+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-invalid-html-attribute.md
|
|
193
|
+
'react/no-invalid-html-attribute': 'error',
|
|
194
|
+
|
|
189
195
|
/*
|
|
190
196
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-is-mounted.md
|
|
191
197
|
* https://reactjs.org/blog/2015/12/16/ismounted-antipattern.html
|
|
@@ -234,6 +240,12 @@ module.exports = {
|
|
|
234
240
|
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unsafe.md
|
|
235
241
|
'react/no-unsafe': 'error',
|
|
236
242
|
|
|
243
|
+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
|
|
244
|
+
'react/no-unstable-nested-components': 'error',
|
|
245
|
+
|
|
246
|
+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unused-class-component-methods.md
|
|
247
|
+
'react/no-unused-class-component-methods': 'error',
|
|
248
|
+
|
|
237
249
|
/*
|
|
238
250
|
* no prop types usage
|
|
239
251
|
* https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unused-prop-types.md
|