eslint-config-arklint 1.9.0 → 1.10.0
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 +76 -23
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -13,26 +13,20 @@ module.exports = {
|
|
|
13
13
|
ecmaVersion: 2023
|
|
14
14
|
},
|
|
15
15
|
ignorePatterns: ["node_modules/"],
|
|
16
|
+
plugins: ["@stylistic/js"],
|
|
16
17
|
extends: [
|
|
17
18
|
"eslint:recommended",
|
|
18
19
|
"./extensions/import.js",
|
|
19
20
|
"./extensions/jsdoc.js"
|
|
20
21
|
],
|
|
21
22
|
rules: {
|
|
22
|
-
"array-bracket-spacing": "warn",
|
|
23
23
|
"array-callback-return": "warn",
|
|
24
24
|
"arrow-body-style": "warn",
|
|
25
25
|
"camelcase": "warn",
|
|
26
|
-
"comma-dangle": ["warn", "never"],
|
|
27
|
-
"comma-spacing": "warn",
|
|
28
26
|
"default-case": ["warn", { commentPattern: "^no default$" }],
|
|
29
|
-
"dot-location": ["warn", "property"],
|
|
30
27
|
"dot-notation": "warn",
|
|
31
|
-
"eol-last": ["warn", "never"],
|
|
32
28
|
"eqeqeq": ["warn", "smart"],
|
|
33
29
|
"getter-return": "warn",
|
|
34
|
-
"indent": ["warn", "tab", { SwitchCase: 1, ignoreComments: true }],
|
|
35
|
-
"new-parens": "warn",
|
|
36
30
|
"no-array-constructor": "warn",
|
|
37
31
|
"no-async-promise-executor": "off",
|
|
38
32
|
"no-caller": "warn",
|
|
@@ -53,7 +47,6 @@ module.exports = {
|
|
|
53
47
|
"no-extend-native": "warn",
|
|
54
48
|
"no-extra-bind": "warn",
|
|
55
49
|
"no-extra-label": "warn",
|
|
56
|
-
"no-extra-semi": "off",
|
|
57
50
|
"no-fallthrough": "warn",
|
|
58
51
|
"no-func-assign": "warn",
|
|
59
52
|
"no-global-assign": "warn",
|
|
@@ -61,13 +54,13 @@ module.exports = {
|
|
|
61
54
|
"no-invalid-regexp": "warn",
|
|
62
55
|
"no-iterator": "warn",
|
|
63
56
|
"no-label-var": "warn",
|
|
64
|
-
"no-labels": ["warn", {
|
|
57
|
+
"no-labels": ["warn", {
|
|
58
|
+
allowLoop: true,
|
|
59
|
+
allowSwitch: false
|
|
60
|
+
}],
|
|
65
61
|
"no-lone-blocks": "warn",
|
|
66
62
|
"no-loop-func": "warn",
|
|
67
|
-
"no-mixed-operators": "warn",
|
|
68
|
-
"no-multi-spaces": "warn",
|
|
69
63
|
"no-multi-str": "warn",
|
|
70
|
-
"no-multiple-empty-lines": ["warn", { max: 2, maxBOF: 0, maxEOF: 0 }],
|
|
71
64
|
"no-new-func": "warn",
|
|
72
65
|
"no-new-object": "warn",
|
|
73
66
|
"no-new-symbol": "warn",
|
|
@@ -108,24 +101,84 @@ module.exports = {
|
|
|
108
101
|
"no-useless-constructor": "warn",
|
|
109
102
|
"no-useless-rename": "warn",
|
|
110
103
|
"no-var": "warn",
|
|
111
|
-
"no-whitespace-before-property": "warn",
|
|
112
104
|
"no-with": "warn",
|
|
113
|
-
"nonblock-statement-body-position": "warn",
|
|
114
|
-
"object-curly-spacing": ["warn", "always"],
|
|
115
105
|
"object-shorthand": ["warn", "always"],
|
|
116
106
|
"prefer-arrow-callback": "warn",
|
|
117
|
-
"quote-props": ["warn", "consistent-as-needed"],
|
|
118
|
-
"quotes": ["warn", "double"],
|
|
119
107
|
"require-await": "warn",
|
|
120
108
|
"require-yield": "warn",
|
|
121
|
-
"rest-spread-spacing": ["warn", "never"],
|
|
122
|
-
"semi": "warn",
|
|
123
|
-
"space-in-parens": "warn",
|
|
124
|
-
"space-infix-ops": "warn",
|
|
125
|
-
"spaced-comment": ["warn", "always"],
|
|
126
109
|
"strict": ["warn", "never"],
|
|
127
110
|
"unicode-bom": ["warn", "never"],
|
|
128
111
|
"use-isnan": "warn",
|
|
129
|
-
"valid-typeof": "warn"
|
|
112
|
+
"valid-typeof": "warn",
|
|
113
|
+
"@stylistic/js/array-bracket-newline": ["warn", "consistent"],
|
|
114
|
+
"@stylistic/js/array-bracket-spacing": "warn",
|
|
115
|
+
"@stylistic/js/array-element-newline": ["warn", "consistent"],
|
|
116
|
+
"@stylistic/js/arrow-parens": "warn",
|
|
117
|
+
"@stylistic/js/arrow-spacing": "warn",
|
|
118
|
+
"@stylistic/js/block-spacing": "warn",
|
|
119
|
+
"@stylistic/js/brace-style": ["warn", "1tbs", {
|
|
120
|
+
allowSingleLine: true
|
|
121
|
+
}],
|
|
122
|
+
"@stylistic/js/comma-dangle": ["warn", "never"],
|
|
123
|
+
"@stylistic/js/comma-spacing": "warn",
|
|
124
|
+
"@stylistic/js/comma-style": "warn",
|
|
125
|
+
"@stylistic/js/computed-property-spacing": "warn",
|
|
126
|
+
"@stylistic/js/dot-location": ["warn", "property"],
|
|
127
|
+
"@stylistic/js/eol-last": ["warn", "never"],
|
|
128
|
+
"@stylistic/js/function-call-spacing": "warn",
|
|
129
|
+
"@stylistic/js/function-call-argument-newline": ["warn", "consistent"],
|
|
130
|
+
"@stylistic/js/function-paren-newline": ["warn", "consistent"],
|
|
131
|
+
"@stylistic/js/implicit-arrow-linebreak": "warn",
|
|
132
|
+
"@stylistic/js/indent": ["warn", "tab", {
|
|
133
|
+
SwitchCase: 1,
|
|
134
|
+
ignoreComments: true
|
|
135
|
+
}],
|
|
136
|
+
"@stylistic/js/key-spacing": "warn",
|
|
137
|
+
"@stylistic/js/keyword-spacing": "warn",
|
|
138
|
+
"@stylistic/js/new-parens": "warn",
|
|
139
|
+
"@stylistic/js/no-confusing-arrow": "warn",
|
|
140
|
+
"@stylistic/js/no-floating-decimal": "warn",
|
|
141
|
+
"@stylistic/js/no-mixed-operators": "warn",
|
|
142
|
+
"@stylistic/js/no-multi-spaces": "warn",
|
|
143
|
+
"@stylistic/js/no-multiple-empty-lines": ["warn", {
|
|
144
|
+
max: 2,
|
|
145
|
+
maxBOF: 0,
|
|
146
|
+
maxEOF: 0
|
|
147
|
+
}],
|
|
148
|
+
"@stylistic/js/no-trailing-spaces": "warn",
|
|
149
|
+
"@stylistic/js/no-whitespace-before-property": "warn",
|
|
150
|
+
"@stylistic/js/nonblock-statement-body-position": "warn",
|
|
151
|
+
"@stylistic/js/object-curly-newline": "warn",
|
|
152
|
+
"@stylistic/js/object-curly-spacing": ["warn", "always"],
|
|
153
|
+
"@stylistic/js/operator-linebreak": ["warn", "after", {
|
|
154
|
+
overrides: {
|
|
155
|
+
"?": "ignore",
|
|
156
|
+
":": "ignore",
|
|
157
|
+
"||": "ignore",
|
|
158
|
+
"&&": "ignore"
|
|
159
|
+
}
|
|
160
|
+
}],
|
|
161
|
+
"@stylistic/js/padding-line-between-statements": [
|
|
162
|
+
"warn",
|
|
163
|
+
{ blankLine: "always", prev: ["case", "default"], next: "*" },
|
|
164
|
+
{ blankLine: "always", prev: "*", next: "switch" }
|
|
165
|
+
],
|
|
166
|
+
"@stylistic/js/quote-props": ["warn", "consistent-as-needed"],
|
|
167
|
+
"@stylistic/js/quotes": ["warn", "double"],
|
|
168
|
+
"@stylistic/js/rest-spread-spacing": "warn",
|
|
169
|
+
"@stylistic/js/semi": "warn",
|
|
170
|
+
"@stylistic/js/semi-spacing": "warn",
|
|
171
|
+
"@stylistic/js/semi-style": "warn",
|
|
172
|
+
"@stylistic/js/space-before-blocks": "warn",
|
|
173
|
+
"@stylistic/js/space-before-function-paren": ["warn", {
|
|
174
|
+
anonymous: "always",
|
|
175
|
+
named: "never",
|
|
176
|
+
asyncArrow: "always"
|
|
177
|
+
}],
|
|
178
|
+
"@stylistic/js/space-in-parens": "warn",
|
|
179
|
+
"@stylistic/js/space-infix-ops": "warn",
|
|
180
|
+
"@stylistic/js/space-unary-ops": "warn",
|
|
181
|
+
"@stylistic/js/spaced-comment": "warn",
|
|
182
|
+
"@stylistic/js/template-curly-spacing": "warn"
|
|
130
183
|
}
|
|
131
184
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-arklint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"author": "Arkellys",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
"lint": "eslint ."
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@rushstack/eslint-patch": "^1.10.
|
|
16
|
+
"@rushstack/eslint-patch": "^1.10.4",
|
|
17
|
+
"@stylistic/eslint-plugin-js": "^2.6.1",
|
|
17
18
|
"confusing-browser-globals": "^1.0.11",
|
|
18
19
|
"eslint-plugin-import": "^2.29.1",
|
|
19
|
-
"eslint-plugin-jsdoc": "^48.
|
|
20
|
+
"eslint-plugin-jsdoc": "^48.10.2",
|
|
20
21
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
21
22
|
"eslint-plugin-react": "^7.35.0",
|
|
22
23
|
"eslint-plugin-react-hooks": "^4.6.2",
|