eslint-config-seekingalpha-react 5.3.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 +6 -0
- package/README.md +1 -1
- package/package.json +5 -5
- package/rules/eslint-plugin-jest/index.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 5.3.0 - 2021-01-06
|
|
4
10
|
- [deps] update `eslint-find-rules` to version `4.1.0`
|
|
5
11
|
|
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,18 +49,18 @@
|
|
|
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
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.7.0",
|
|
61
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
65
|
"eslint-plugin-react": "7.28.0",
|
|
66
66
|
"eslint-plugin-react-hooks": "4.3.0"
|
|
@@ -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
|
|