@w5s/eslint-config 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +2 -2
- package/rules/_rule.js +1 -1
- package/rules/base.js +4 -0
- package/rules/typescript.js +1 -1
- package/rules/unicorn.js +3 -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.7",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "292fff2e6b9aad7f8089356d228fbb9ce351def9"
|
|
87
87
|
}
|
package/rules/_rule.js
CHANGED
package/rules/base.js
CHANGED
|
@@ -34,6 +34,10 @@ module.exports = concatESConfig(
|
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
({ selector }) => selector !== 'ForOfStatement'
|
|
36
36
|
),
|
|
37
|
+
// underscore is often used (mongodb, etc)
|
|
38
|
+
'no-underscore-dangle': off,
|
|
39
|
+
// Allow in some cases https://github.com/airbnb/javascript/issues/1089#issuecomment-1024351821
|
|
40
|
+
'no-use-before-define': [error, 'nofunc'],
|
|
37
41
|
},
|
|
38
42
|
}
|
|
39
43
|
);
|
package/rules/typescript.js
CHANGED
|
@@ -214,7 +214,7 @@ module.exports = concatESConfig(
|
|
|
214
214
|
'no-undef': off,
|
|
215
215
|
'no-unreachable': off,
|
|
216
216
|
'no-unsafe-negation': off,
|
|
217
|
-
'no-unused-
|
|
217
|
+
'no-unused-expressions': off,
|
|
218
218
|
'no-unused-vars': off,
|
|
219
219
|
'no-use-before-define': off,
|
|
220
220
|
'no-useless-constructor': off,
|
package/rules/unicorn.js
CHANGED
|
@@ -49,7 +49,10 @@ module.exports = concatESConfig(
|
|
|
49
49
|
{
|
|
50
50
|
rules: {
|
|
51
51
|
'unicorn/consistent-destructuring': off,
|
|
52
|
+
'unicorn/no-array-callback-reference': off, // Many false positive reported
|
|
52
53
|
'unicorn/no-array-for-each': off, // This rule could change browser compatibility
|
|
54
|
+
'unicorn/no-array-method-this-argument': off, // Many false positive reported
|
|
55
|
+
'unicorn/no-array-reduce': off, // Array#reduce can be used
|
|
53
56
|
'unicorn/no-object-as-default-parameter': off,
|
|
54
57
|
'unicorn/prefer-default-parameters': off,
|
|
55
58
|
'unicorn/prevent-abbreviations': off, // This rule is so dangerous : it potentially break code while fixing in many cases !!
|