eslint-config-aether 2.0.1 → 2.0.2
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/default.js +52 -50
- package/package.json +1 -1
- package/typescript.js +2 -3
package/default.js
CHANGED
|
@@ -21,42 +21,13 @@ export default {
|
|
|
21
21
|
},
|
|
22
22
|
"rules": {
|
|
23
23
|
...js.configs.recommended.rules,
|
|
24
|
-
"array-bracket-spacing": ["warn", "never"],
|
|
25
|
-
"block-spacing": ["warn", "always"],
|
|
26
|
-
"brace-style": ["warn", "1tbs", {
|
|
27
|
-
"allowSingleLine": true
|
|
28
|
-
}],
|
|
29
24
|
"camelcase": "off",
|
|
30
|
-
"comma-dangle": ["warn", "never"],
|
|
31
|
-
"comma-spacing": "warn",
|
|
32
|
-
"comma-style": ["warn", "last"],
|
|
33
25
|
"consistent-return": "error",
|
|
34
|
-
"computed-property-spacing": ["warn", "never"],
|
|
35
26
|
"curly": "warn",
|
|
36
27
|
"dot-notation": "warn",
|
|
37
|
-
"eol-last": ["warn", "always"],
|
|
38
28
|
"eqeqeq": "error",
|
|
39
|
-
"
|
|
40
|
-
"key-spacing": "warn",
|
|
41
|
-
"keyword-spacing": ["warn", {
|
|
42
|
-
"overrides": {
|
|
43
|
-
"catch": { "after": false },
|
|
44
|
-
"if": { "after": false },
|
|
45
|
-
"for": { "after": false },
|
|
46
|
-
"switch": { "after": false },
|
|
47
|
-
"while": { "after": false },
|
|
48
|
-
}
|
|
49
|
-
}],
|
|
50
|
-
"lines-between-class-members": ["warn", "always", {
|
|
51
|
-
"exceptAfterSingleLine": true
|
|
52
|
-
}],
|
|
53
|
-
"max-len": ["warn", {
|
|
54
|
-
"code": 120,
|
|
55
|
-
"tabWidth": 2,
|
|
56
|
-
"ignoreComments": true
|
|
57
|
-
}],
|
|
29
|
+
"indent": "off",
|
|
58
30
|
"new-cap": "error",
|
|
59
|
-
"new-parens": "error",
|
|
60
31
|
"no-array-constructor": "error",
|
|
61
32
|
"no-alert": "warn",
|
|
62
33
|
"no-caller": "error",
|
|
@@ -65,46 +36,77 @@ export default {
|
|
|
65
36
|
"no-else-return": "error",
|
|
66
37
|
"no-extend-native": "error",
|
|
67
38
|
"no-extra-bind": "error",
|
|
68
|
-
"no-extra-semi": "error",
|
|
69
39
|
"no-iterator": "error",
|
|
70
40
|
"no-labels": "error",
|
|
71
41
|
"no-lone-blocks": "warn",
|
|
72
42
|
"no-loop-func": "warn",
|
|
73
|
-
"no-mixed-spaces-and-tabs": "error",
|
|
74
|
-
"no-multiple-empty-lines": "warn",
|
|
75
|
-
"no-multi-spaces": "warn",
|
|
76
43
|
"no-new": "error",
|
|
77
44
|
"no-new-func": "error",
|
|
78
45
|
"no-new-object": "error",
|
|
79
46
|
"no-new-wrappers": "error",
|
|
80
|
-
"no-trailing-spaces": "warn",
|
|
81
47
|
"no-undef-init": "error",
|
|
82
48
|
"no-underscore-dangle": ["warn", {
|
|
83
49
|
"allowAfterThis": true
|
|
84
50
|
}],
|
|
85
51
|
"no-unused-vars": ["warn", {
|
|
86
52
|
"vars": "all",
|
|
87
|
-
"args": "none"
|
|
53
|
+
"args": "none",
|
|
54
|
+
"caughtErrors": "none"
|
|
88
55
|
}],
|
|
89
56
|
"no-var": "error",
|
|
90
|
-
"no-whitespace-before-property": "warn",
|
|
91
|
-
"object-curly-spacing": ["warn", "always"],
|
|
92
|
-
"padded-blocks": ["warn", "always", {
|
|
93
|
-
"allowSingleLineBlocks": true
|
|
94
|
-
}],
|
|
95
|
-
"quotes": ["warn", "double"],
|
|
96
|
-
"semi-spacing": "warn",
|
|
97
|
-
"space-before-blocks": ["warn", "always"],
|
|
98
|
-
"space-before-function-paren": ["warn", "never"],
|
|
99
|
-
"space-in-parens": ["warn", "never"],
|
|
100
|
-
"space-infix-ops": "warn",
|
|
101
|
-
"space-unary-ops": "warn",
|
|
102
|
-
"spaced-comment": ["warn", "always"],
|
|
103
57
|
"wrap-iife": "warn",
|
|
104
58
|
"yoda": ["warn", "never"],
|
|
59
|
+
"@stylistic/array-bracket-spacing": ["warn", "never"],
|
|
60
|
+
"@stylistic/block-spacing": ["warn", "always"],
|
|
61
|
+
"@stylistic/brace-style": ["warn", "1tbs", {
|
|
62
|
+
"allowSingleLine": true
|
|
63
|
+
}],
|
|
64
|
+
"@stylistic/comma-dangle": ["warn", "never"],
|
|
65
|
+
"@stylistic/comma-spacing": "warn",
|
|
66
|
+
"@stylistic/comma-style": ["warn", "last"],
|
|
67
|
+
"@stylistic/computed-property-spacing": ["warn", "never"],
|
|
68
|
+
"@stylistic/eol-last": ["warn", "always"],
|
|
69
|
+
"@stylistic/func-call-spacing": ["warn", "never"],
|
|
105
70
|
"@stylistic/indent": ["warn", "tab", {
|
|
106
71
|
"SwitchCase": 1
|
|
107
72
|
}],
|
|
108
|
-
|
|
73
|
+
"@stylistic/key-spacing": "warn",
|
|
74
|
+
"@stylistic/keyword-spacing": ["warn", {
|
|
75
|
+
"overrides": {
|
|
76
|
+
"catch": { "after": false },
|
|
77
|
+
"if": { "after": false },
|
|
78
|
+
"for": { "after": false },
|
|
79
|
+
"switch": { "after": false },
|
|
80
|
+
"while": { "after": false }
|
|
81
|
+
}
|
|
82
|
+
}],
|
|
83
|
+
"@stylistic/lines-between-class-members": ["warn", "always", {
|
|
84
|
+
"exceptAfterSingleLine": true
|
|
85
|
+
}],
|
|
86
|
+
"@stylistic/object-curly-spacing": ["warn", "always"],
|
|
87
|
+
"@stylistic/max-len": ["warn", {
|
|
88
|
+
"code": 120,
|
|
89
|
+
"tabWidth": 2,
|
|
90
|
+
"ignoreComments": true
|
|
91
|
+
}],
|
|
92
|
+
"@stylistic/new-parens": "error",
|
|
93
|
+
"@stylistic/no-extra-semi": "warn",
|
|
94
|
+
"@stylistic/no-mixed-spaces-and-tabs": "warn",
|
|
95
|
+
"@stylistic/no-multiple-empty-lines": "warn",
|
|
96
|
+
"@stylistic/no-multi-spaces": "warn",
|
|
97
|
+
"@stylistic/no-trailing-spaces": "warn",
|
|
98
|
+
"@stylistic/no-whitespace-before-property": "warn",
|
|
99
|
+
"@stylistic/padded-blocks": ["warn", "always", {
|
|
100
|
+
"allowSingleLineBlocks": true
|
|
101
|
+
}],
|
|
102
|
+
"@stylistic/quotes": ["warn", "double"],
|
|
103
|
+
"@stylistic/semi": ["error", "always"],
|
|
104
|
+
"@stylistic/semi-spacing": "warn",
|
|
105
|
+
"@stylistic/space-before-blocks": ["warn", "always"],
|
|
106
|
+
"@stylistic/space-before-function-paren": ["warn", "never"],
|
|
107
|
+
"@stylistic/space-in-parens": ["warn", "never"],
|
|
108
|
+
"@stylistic/space-infix-ops": "warn",
|
|
109
|
+
"@stylistic/space-unary-ops": "warn",
|
|
110
|
+
"@stylistic/spaced-comment": ["warn", "always"]
|
|
109
111
|
}
|
|
110
112
|
};
|
package/package.json
CHANGED
package/typescript.js
CHANGED
|
@@ -17,15 +17,14 @@ export default {
|
|
|
17
17
|
"rules": {
|
|
18
18
|
...ts.configs["recommended-requiring-type-checking"].rules,
|
|
19
19
|
...ts.configs["stylistic-type-checked"].rules,
|
|
20
|
-
"camelcase": "off",
|
|
21
|
-
"indent": "off",
|
|
22
20
|
"no-undef": "off",
|
|
23
21
|
"no-underscore-dangle": "off",
|
|
24
22
|
"no-unused-vars": "off",
|
|
25
23
|
"@typescript-eslint/no-empty-function": "off",
|
|
26
24
|
"@typescript-eslint/no-unused-vars": ["warn", {
|
|
27
25
|
"vars": "all",
|
|
28
|
-
"args": "none"
|
|
26
|
+
"args": "none",
|
|
27
|
+
"caughtErrors": "none"
|
|
29
28
|
}],
|
|
30
29
|
"@typescript-eslint/prefer-optional-chain": "off",
|
|
31
30
|
"@typescript-eslint/strict-boolean-expressions": "error",
|