@w5s/eslint-config 1.0.0-alpha.10 → 1.0.0-alpha.13
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/index.js +1 -1
- package/package.json +9 -9
- package/rules/_rule.js +1 -1
- package/rules/jsdoc.js +6 -1
- package/rules/unicorn.js +1 -0
package/index.js
CHANGED
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.13",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"eslint-plugin-functional": "^4.2.0",
|
|
51
51
|
"eslint-plugin-import": "^2.25.0",
|
|
52
52
|
"eslint-plugin-jest": "^26.0.0",
|
|
53
|
-
"eslint-plugin-jsdoc": "^
|
|
53
|
+
"eslint-plugin-jsdoc": "^39.0.0",
|
|
54
54
|
"eslint-plugin-json-format": "^2.0.1",
|
|
55
55
|
"eslint-plugin-prettier": "^4.0.0",
|
|
56
56
|
"eslint-plugin-react": "^7.28.0",
|
|
57
57
|
"eslint-plugin-total-functions": "^5.0.0",
|
|
58
|
-
"eslint-plugin-unicorn": "^
|
|
58
|
+
"eslint-plugin-unicorn": "^42.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/eslint-parser": "7.17.0",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"@types/eslint-plugin-prettier": "^3.1.0",
|
|
64
64
|
"@types/prettier": "2.4.4",
|
|
65
65
|
"@types/react": "17.0.2",
|
|
66
|
-
"@typescript-eslint/parser": "5.
|
|
67
|
-
"eslint": "8.
|
|
68
|
-
"eslint-config-prettier": "8.
|
|
66
|
+
"@typescript-eslint/parser": "5.23.0",
|
|
67
|
+
"eslint": "8.15.0",
|
|
68
|
+
"eslint-config-prettier": "8.5.0",
|
|
69
69
|
"eslint-index": "1.5.0",
|
|
70
|
-
"prettier": "2.
|
|
71
|
-
"react": "
|
|
70
|
+
"prettier": "2.6.2",
|
|
71
|
+
"react": "18.0.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"eslint": "5.x || 6.x || 7.x || 8.x",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "8199bc183499e02e465e51157734be8c5ef9d7e5"
|
|
87
87
|
}
|
package/rules/_rule.js
CHANGED
package/rules/jsdoc.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
const { off } = require('./_rule');
|
|
1
|
+
const { off, error } = require('./_rule');
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
extends: ['plugin:jsdoc/recommended'],
|
|
5
5
|
plugins: ['jsdoc'],
|
|
6
6
|
rules: {
|
|
7
|
+
'jsdoc/no-undefined-types': off, // https://github.com/gajus/eslint-plugin-jsdoc/issues/839
|
|
7
8
|
'jsdoc/require-jsdoc': off,
|
|
9
|
+
'jsdoc/require-param-description': off,
|
|
10
|
+
'jsdoc/require-returns': off,
|
|
11
|
+
'jsdoc/valid-types': off, // FIXME: reports lots of false positive
|
|
12
|
+
strict: [error, 'safe'],
|
|
8
13
|
},
|
|
9
14
|
settings: {
|
|
10
15
|
jsdoc: {
|
package/rules/unicorn.js
CHANGED
|
@@ -49,6 +49,7 @@ module.exports = concatESConfig(
|
|
|
49
49
|
{
|
|
50
50
|
rules: {
|
|
51
51
|
'unicorn/consistent-destructuring': off,
|
|
52
|
+
'unicorn/consistent-function-scoping': off, // Too many false positive
|
|
52
53
|
'unicorn/no-array-callback-reference': off, // Many false positive reported
|
|
53
54
|
'unicorn/no-array-for-each': off, // This rule could change browser compatibility
|
|
54
55
|
'unicorn/no-array-method-this-argument': off, // Many false positive reported
|