@will-stone/eslint-config 6.6.0 → 6.8.1
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/_for_rule_checking.js +1 -0
- package/package.json +8 -8
- package/rules/jest.js +6 -0
- package/rules/unicorn.js +2 -3
package/_for_rule_checking.js
CHANGED
|
@@ -15,6 +15,7 @@ module.exports = {
|
|
|
15
15
|
require.resolve('./prettier'),
|
|
16
16
|
],
|
|
17
17
|
rules: {
|
|
18
|
+
// TODO as of eslint-find-rules 4.1 I'm not sure this is still necessary:
|
|
18
19
|
// Use the TS rules directly as eslint-find-rules cannot see `overrides`.
|
|
19
20
|
...tsRules,
|
|
20
21
|
// Use the TS rules directly as eslint-find-rules cannot see `overrides`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "My ESLint config",
|
|
6
6
|
"repository": {
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"eslint-config-prettier": "^8.3.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"eslint-find-rules": "^4.
|
|
20
|
+
"eslint-find-rules": "^4.1.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
24
|
-
"@typescript-eslint/parser": "^5.
|
|
25
|
-
"eslint": "
|
|
26
|
-
"eslint-plugin-import": "^2.25.
|
|
27
|
-
"eslint-plugin-jest": "^25.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.9.1",
|
|
24
|
+
"@typescript-eslint/parser": "^5.9.1",
|
|
25
|
+
"eslint": "~8.6.0",
|
|
26
|
+
"eslint-plugin-import": "^2.25.4",
|
|
27
|
+
"eslint-plugin-jest": "^25.7.0",
|
|
28
28
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
29
29
|
"eslint-plugin-node": "^11.1.0",
|
|
30
30
|
"eslint-plugin-prettier": "^4.0.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
33
33
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
34
34
|
"eslint-plugin-switch-case": "^1.1.2",
|
|
35
|
-
"eslint-plugin-unicorn": "^40.
|
|
35
|
+
"eslint-plugin-unicorn": "^40.1.0",
|
|
36
36
|
"typescript": "4.x"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
package/rules/jest.js
CHANGED
|
@@ -64,6 +64,12 @@ module.exports = {
|
|
|
64
64
|
|
|
65
65
|
'jest/prefer-called-with': 'off',
|
|
66
66
|
|
|
67
|
+
// https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
68
|
+
'jest/prefer-comparison-matcher': 'warn',
|
|
69
|
+
|
|
70
|
+
// https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
71
|
+
'jest/prefer-equality-matcher': 'error',
|
|
72
|
+
|
|
67
73
|
'jest/prefer-expect-assertions': 'off',
|
|
68
74
|
|
|
69
75
|
'jest/prefer-expect-resolves': 'warn',
|
package/rules/unicorn.js
CHANGED
|
@@ -131,9 +131,8 @@ module.exports = {
|
|
|
131
131
|
// Disallow assigning this to a variable
|
|
132
132
|
'unicorn/no-this-assignment': 'error',
|
|
133
133
|
|
|
134
|
-
//
|
|
135
|
-
|
|
136
|
-
'unicorn/no-useless-fallback-in-spread': 'off',
|
|
134
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md
|
|
135
|
+
'unicorn/no-useless-fallback-in-spread': 'warn',
|
|
137
136
|
|
|
138
137
|
// Disallow useless array length check
|
|
139
138
|
'unicorn/no-useless-length-check': 'warn',
|