@itstandu/code-style 0.1.1 → 0.1.3
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/eslint/base.js +11 -3
- package/eslint/javascript.js +2 -10
- package/package.json +1 -1
package/eslint/base.js
CHANGED
|
@@ -66,18 +66,26 @@ module.exports = {
|
|
|
66
66
|
'simple-import-sort/exports': 'error',
|
|
67
67
|
|
|
68
68
|
// Unused imports - must use plugin for auto-fix
|
|
69
|
+
// STRICT: No underscore bypass - use `void variable` for intentionally unused
|
|
69
70
|
'unused-imports/no-unused-imports': 'error',
|
|
70
71
|
'unused-imports/no-unused-vars': [
|
|
71
|
-
'
|
|
72
|
+
'error',
|
|
72
73
|
{
|
|
73
74
|
vars: 'all',
|
|
74
|
-
varsIgnorePattern: '^_',
|
|
75
75
|
args: 'after-used',
|
|
76
|
-
argsIgnorePattern: '^_',
|
|
77
76
|
},
|
|
78
77
|
],
|
|
79
78
|
'no-unused-vars': 'off',
|
|
80
79
|
|
|
80
|
+
// STRICT: No eslint-disable comments allowed
|
|
81
|
+
'no-warning-comments': [
|
|
82
|
+
'error',
|
|
83
|
+
{
|
|
84
|
+
terms: ['eslint-disable', 'eslint-disable-line', 'eslint-disable-next-line'],
|
|
85
|
+
location: 'anywhere',
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
|
|
81
89
|
// Import plugin
|
|
82
90
|
'import/first': 'error',
|
|
83
91
|
'import/newline-after-import': 'error',
|
package/eslint/javascript.js
CHANGED
|
@@ -12,16 +12,8 @@ module.exports = {
|
|
|
12
12
|
rules: {
|
|
13
13
|
...base.rules,
|
|
14
14
|
|
|
15
|
-
//
|
|
15
|
+
// JS inherits strict unused-vars from base
|
|
16
|
+
// STRICT: No underscore bypass - use `void variable` for intentionally unused
|
|
16
17
|
'no-unused-vars': 'off',
|
|
17
|
-
'unused-imports/no-unused-vars': [
|
|
18
|
-
'warn',
|
|
19
|
-
{
|
|
20
|
-
vars: 'all',
|
|
21
|
-
varsIgnorePattern: '^_',
|
|
22
|
-
args: 'after-used',
|
|
23
|
-
argsIgnorePattern: '^_',
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
18
|
},
|
|
27
19
|
}
|