@w5s/eslint-config 1.0.0-alpha.7 → 1.0.0-alpha.8
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/base.js +2 -0
- package/rules/jest.js +9 -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.8",
|
|
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": "aaafb0b10b10172a0f5921aa36f866ce390124f9"
|
|
87
87
|
}
|
package/rules/base.js
CHANGED
|
@@ -36,6 +36,8 @@ module.exports = concatESConfig(
|
|
|
36
36
|
),
|
|
37
37
|
// underscore is often used (mongodb, etc)
|
|
38
38
|
'no-underscore-dangle': off,
|
|
39
|
+
// Ignore underscore case arguments
|
|
40
|
+
'no-unused-vars': [error, { argsIgnorePattern: '^_' }],
|
|
39
41
|
// Allow in some cases https://github.com/airbnb/javascript/issues/1089#issuecomment-1024351821
|
|
40
42
|
'no-use-before-define': [error, 'nofunc'],
|
|
41
43
|
},
|
package/rules/jest.js
CHANGED
|
@@ -30,6 +30,15 @@ module.exports = concatESConfig(
|
|
|
30
30
|
'jest/valid-title': [error, { ignoreTypeOfDescribeName: true }],
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* Unicorn less strict to help writing tests
|
|
35
|
+
*/
|
|
36
|
+
{
|
|
37
|
+
rules: {
|
|
38
|
+
'unicorn/consistent-function-scoping': off,
|
|
39
|
+
'unicorn/no-useless-undefined': off,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
33
42
|
/**
|
|
34
43
|
* Typescript config is set to be less strict because we often have "hack", "mock" in tests
|
|
35
44
|
*/
|