eslint-config-seekingalpha-react 5.3.0 → 5.7.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,20 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.7.0 - 2021-02-16
4
+ - [deps] upgrade `eslint` to version `8.9.0`
5
+
6
+ ## 5.6.0 - 2021-01-30
7
+ - [deps] upgrade `eslint` to version `8.8.0`
8
+
9
+ ## 5.5.0 - 2021-01-16
10
+ - [breaking] separate `eslint-plugin-jest` plugin to `eslint-config-seekingalpha-tests` sharable config
11
+
12
+ ## 5.4.0 - 2021-01-16
13
+ - [deps] upgrade `eslint` to version `8.7.0`
14
+ - [deps] upgrade `eslint-plugin-jest` to version `25.3.4`
15
+ - [breaking] enable `jest/prefer-comparison-matcher` rule
16
+ - [breaking] enable `jest/prefer-equality-matcher` rule
17
+
3
18
  ## 5.3.0 - 2021-01-06
4
19
  - [deps] update `eslint-find-rules` to version `4.1.0`
5
20
 
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.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
9
+ npm install eslint@8.9.0 eslint-plugin-flowtype@8.0.3 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
 
@@ -19,7 +19,6 @@ This shareable config includes all ESLint rules including ECMAScript 6 features,
19
19
  * [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react)
20
20
  * [eslint-plugin-jsx-a11y](https://github.com/evcohen/eslint-plugin-jsx-a11y)
21
21
  * [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype)
22
- * [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest)
23
22
  * [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)
24
23
 
25
24
  If you don't need configuration extended with `React` rules, check out our [base config](https://www.npmjs.com/package/eslint-config-seekingalpha-base).
package/index.js CHANGED
@@ -14,9 +14,6 @@ module.exports = {
14
14
  // https://github.com/gajus/eslint-plugin-flowtype
15
15
  './rules/eslint-plugin-flowtype/index.js',
16
16
 
17
- // https://github.com/jest-community/eslint-plugin-jest
18
- './rules/eslint-plugin-jest/index.js',
19
-
20
17
  // https://reactjs.org/docs/hooks-rules.html
21
18
  './rules/eslint-plugin-react-hooks/index.js',
22
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-seekingalpha-react",
3
- "version": "5.3.0",
3
+ "version": "5.7.0",
4
4
  "description": "SeekingAlpha's sharable React.js ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -49,18 +49,16 @@
49
49
  "node": ">= 14"
50
50
  },
51
51
  "peerDependencies": {
52
- "eslint": "8.6.0",
52
+ "eslint": "8.9.0",
53
53
  "eslint-plugin-flowtype": "8.0.3",
54
- "eslint-plugin-jest": "25.3.4",
55
54
  "eslint-plugin-jsx-a11y": "6.5.1",
56
55
  "eslint-plugin-react": "7.28.0",
57
56
  "eslint-plugin-react-hooks": "4.3.0"
58
57
  },
59
58
  "devDependencies": {
60
- "eslint": "8.6.0",
59
+ "eslint": "8.9.0",
61
60
  "eslint-find-rules": "4.1.0",
62
61
  "eslint-plugin-flowtype": "8.0.3",
63
- "eslint-plugin-jest": "25.3.4",
64
62
  "eslint-plugin-jsx-a11y": "6.5.1",
65
63
  "eslint-plugin-react": "7.28.0",
66
64
  "eslint-plugin-react-hooks": "4.3.0"
@@ -1,154 +0,0 @@
1
- module.exports = {
2
-
3
- plugins: ['jest'],
4
-
5
- rules: {
6
- // Jest Plugin https://github.com/jest-community/eslint-plugin-jest
7
-
8
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/consistent-test-it.md
9
- 'jest/consistent-test-it': 'error',
10
-
11
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/expect-expect.md
12
- 'jest/expect-expect': 'error',
13
-
14
- // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-lowercase-title.md
15
- 'jest/prefer-lowercase-title': 'off',
16
-
17
- // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/max-nested-describe.md
18
- 'jest/max-nested-describe': [
19
- 'error',
20
- {
21
- max: 2,
22
- },
23
- ],
24
-
25
- // https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/no-alias-methods.md
26
- 'jest/no-alias-methods': 'error',
27
-
28
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-commented-out-tests.md
29
- 'jest/no-commented-out-tests': 'error',
30
-
31
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-conditional-expect.md
32
- 'jest/no-conditional-expect': 'error',
33
-
34
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-deprecated-functions.md
35
- 'jest/no-deprecated-functions': 'error',
36
-
37
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-disabled-tests.md
38
- 'jest/no-disabled-tests': 'error',
39
-
40
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-duplicate-hooks.md
41
- 'jest/no-duplicate-hooks': 'error',
42
-
43
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-export.md
44
- 'jest/no-export': 'error',
45
-
46
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-focused-tests.md
47
- 'jest/no-focused-tests': 'error',
48
-
49
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-hooks.md
50
- 'jest/no-hooks': 'off',
51
-
52
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-identical-title.md
53
- 'jest/no-identical-title': 'error',
54
-
55
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-if.md
56
- 'jest/no-if': 'error',
57
-
58
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-interpolation-in-snapshots.md
59
- 'jest/no-interpolation-in-snapshots': 'error',
60
-
61
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-jasmine-globals.md
62
- 'jest/no-jasmine-globals': 'error',
63
-
64
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-jest-import.md
65
- 'jest/no-jest-import': 'error',
66
-
67
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-large-snapshots.md
68
- 'jest/no-large-snapshots': [
69
- 'error',
70
- {
71
- maxSize: 50,
72
- },
73
- ],
74
-
75
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-mocks-import.md
76
- 'jest/no-mocks-import': 'error',
77
-
78
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-restricted-matchers.md
79
- 'jest/no-restricted-matchers': [
80
- 'error',
81
- {
82
- toBeFalsy: 'Use `toBe(false)` instead.',
83
- toBeTruthy: 'Use `toBe(true)` instead.',
84
- },
85
- ],
86
-
87
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-standalone-expect.md
88
- 'jest/no-standalone-expect': 'error',
89
-
90
- // https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/no-test-callback.md
91
- 'jest/no-done-callback': 'error',
92
-
93
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-test-prefixes.md
94
- 'jest/no-test-prefixes': 'error',
95
-
96
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-test-return-statement.md
97
- 'jest/no-test-return-statement': 'off',
98
-
99
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-called-with.md
100
- 'jest/prefer-called-with': 'error',
101
-
102
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-expect-assertions.md
103
- 'jest/prefer-expect-assertions': 'off',
104
-
105
- // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-expect-resolves.md
106
- 'jest/prefer-expect-resolves': 'error',
107
-
108
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-hooks-on-top.md
109
- 'jest/prefer-hooks-on-top': 'error',
110
-
111
- // https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-spy-on.md
112
- 'jest/prefer-spy-on': 'error',
113
-
114
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-strict-equal.md
115
- 'jest/prefer-strict-equal': 'error',
116
-
117
- // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-to-be.md
118
- 'jest/prefer-to-be': 'error',
119
-
120
- // https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-to-contain.md
121
- 'jest/prefer-to-contain': 'error',
122
-
123
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/prefer-to-have-length.md
124
- 'jest/prefer-to-have-length': 'error',
125
-
126
- // https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/prefer-todo.md
127
- 'jest/prefer-todo': 'error',
128
-
129
- // https://github.com/jest-community/eslint-plugin-jest/blob/HEAD/docs/rules/require-tothrow-message.md
130
- 'jest/require-to-throw-message': 'error',
131
-
132
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/require-top-level-describe.md
133
- 'jest/require-top-level-describe': 'error',
134
-
135
- // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/valid-describe-callback.md
136
- 'jest/valid-describe-callback': 'error',
137
-
138
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/valid-expect.md
139
- 'jest/valid-expect': 'error',
140
-
141
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/valid-expect-in-promise.md
142
- 'jest/valid-expect-in-promise': 'error',
143
-
144
- // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/valid-title.md
145
- 'jest/valid-title': 'error',
146
-
147
- /*
148
- * only relevant for TypeScript
149
- * https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md
150
- */
151
- 'jest/unbound-method': 'off',
152
- },
153
-
154
- };