eslint-config-seekingalpha-react 5.0.0 → 5.4.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,21 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.4.0 - 2021-01-16
|
|
4
|
+
- [deps] upgrade `eslint` to version `8.6.0`
|
|
5
|
+
- [deps] upgrade `eslint-plugin-jest` to version `25.3.4`
|
|
6
|
+
- [breaking] enable `jest/prefer-comparison-matcher` rule
|
|
7
|
+
- [breaking] enable `jest/prefer-equality-matcher` rule
|
|
8
|
+
|
|
9
|
+
## 5.3.0 - 2021-01-06
|
|
10
|
+
- [deps] update `eslint-find-rules` to version `4.1.0`
|
|
11
|
+
|
|
12
|
+
## 5.2.0 - 2021-01-01
|
|
13
|
+
- [deps] upgrade `eslint` to version `8.6.0`
|
|
14
|
+
- [deps] upgrade `eslint-plugin-jest` to version `25.3.4`
|
|
15
|
+
|
|
16
|
+
## 5.1.0 - 2021-12-23
|
|
17
|
+
- [deps] upgrade `eslint-plugin-react` to version `7.28.0`
|
|
18
|
+
|
|
3
19
|
## 5.0.0 - 2021-12-18
|
|
4
20
|
- [deps] upgrade `eslint` to version `8.5.0`
|
|
5
21
|
- [deps] upgrade `eslint-plugin-flowtype` to version `8.0.3`
|
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.7.0 eslint-plugin-flowtype@8.0.3 eslint-plugin-jest@25.7.0 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.4.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable React.js ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,20 +49,20 @@
|
|
|
49
49
|
"node": ">= 14"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"eslint": "8.
|
|
52
|
+
"eslint": "8.7.0",
|
|
53
53
|
"eslint-plugin-flowtype": "8.0.3",
|
|
54
|
-
"eslint-plugin-jest": "25.
|
|
54
|
+
"eslint-plugin-jest": "25.7.0",
|
|
55
55
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
56
|
-
"eslint-plugin-react": "7.
|
|
56
|
+
"eslint-plugin-react": "7.28.0",
|
|
57
57
|
"eslint-plugin-react-hooks": "4.3.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"eslint": "8.
|
|
61
|
-
"eslint-find-rules": "4.
|
|
60
|
+
"eslint": "8.7.0",
|
|
61
|
+
"eslint-find-rules": "4.1.0",
|
|
62
62
|
"eslint-plugin-flowtype": "8.0.3",
|
|
63
|
-
"eslint-plugin-jest": "25.
|
|
63
|
+
"eslint-plugin-jest": "25.7.0",
|
|
64
64
|
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
65
|
-
"eslint-plugin-react": "7.
|
|
65
|
+
"eslint-plugin-react": "7.28.0",
|
|
66
66
|
"eslint-plugin-react-hooks": "4.3.0"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -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',
|
|
@@ -99,6 +99,12 @@ module.exports = {
|
|
|
99
99
|
// https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-called-with.md
|
|
100
100
|
'jest/prefer-called-with': 'error',
|
|
101
101
|
|
|
102
|
+
// https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
103
|
+
'jest/prefer-comparison-matcher': 'error',
|
|
104
|
+
|
|
105
|
+
// https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
106
|
+
'jest/prefer-equality-matcher': 'error',
|
|
107
|
+
|
|
102
108
|
// https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-expect-assertions.md
|
|
103
109
|
'jest/prefer-expect-assertions': 'off',
|
|
104
110
|
|
|
@@ -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
|