@w5s/eslint-config 1.0.0-alpha.33 → 1.0.0-alpha.34
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/package.json +8 -8
- package/rules/base.js +2 -0
- package/rules/jest.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.34",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
"eslint-plugin-promise": "^6.0.0",
|
|
63
63
|
"eslint-plugin-react": "^7.28.0",
|
|
64
64
|
"eslint-plugin-total-functions": "^6.0.0",
|
|
65
|
-
"eslint-plugin-unicorn": "^
|
|
65
|
+
"eslint-plugin-unicorn": "^44.0.0",
|
|
66
66
|
"eslint-plugin-yml": "^1.1.0",
|
|
67
67
|
"find-up": "^5.0.0",
|
|
68
68
|
"parse-gitignore": "^1.0.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/eslint-parser": "7.19.1",
|
|
72
|
-
"@types/eslint": "8.4.
|
|
72
|
+
"@types/eslint": "8.4.9",
|
|
73
73
|
"@types/eslint-plugin-prettier": "3.1.0",
|
|
74
|
-
"@types/prettier": "2.7.
|
|
75
|
-
"@types/react": "18.0.
|
|
76
|
-
"@typescript-eslint/parser": "5.
|
|
77
|
-
"eslint": "8.
|
|
74
|
+
"@types/prettier": "2.7.1",
|
|
75
|
+
"@types/react": "18.0.24",
|
|
76
|
+
"@typescript-eslint/parser": "5.42.0",
|
|
77
|
+
"eslint": "8.26.0",
|
|
78
78
|
"eslint-config-prettier": "8.5.0",
|
|
79
79
|
"eslint-index": "1.5.0",
|
|
80
80
|
"prettier": "2.7.1",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "fb66027db8a84fbd3d0d62f034611784820567ea"
|
|
100
100
|
}
|
package/rules/base.js
CHANGED
|
@@ -30,6 +30,8 @@ module.exports = concatESConfig(
|
|
|
30
30
|
rules: {
|
|
31
31
|
// Annoying because it is not always wanted
|
|
32
32
|
'default-case': off,
|
|
33
|
+
// We do not want console.* in production. Disable this rule on a per line basis if needed
|
|
34
|
+
'no-console': error,
|
|
33
35
|
// Often useful in jsx
|
|
34
36
|
'no-nested-ternary': off,
|
|
35
37
|
// Too strict, for pure code prefer the functional plugin
|
package/rules/jest.js
CHANGED
|
@@ -8,6 +8,7 @@ module.exports = concatESConfig(
|
|
|
8
8
|
extends: ['plugin:jest/recommended'],
|
|
9
9
|
plugins: ['jest'],
|
|
10
10
|
rules: {
|
|
11
|
+
'jest/consistent-test-it': error,
|
|
11
12
|
'jest/expect-expect': off, // Disabled because it does not handle functions that does the expect
|
|
12
13
|
'jest/no-alias-methods': error,
|
|
13
14
|
'jest/prefer-spy-on': error,
|