eslint-config-arklint 4.0.0 → 4.1.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/README.md +1 -1
- package/extensions/jsdoc.mjs +1 -1
- package/index.mjs +49 -49
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ yarn add eslint eslint-config-arklint -D
|
|
|
13
13
|
|
|
14
14
|
> [!WARNING]
|
|
15
15
|
> Only **ESM flat config** is supported.
|
|
16
|
-
> If your project uses CJS, you need to use the `.mjs` extension
|
|
16
|
+
> If your project uses CJS, you need to use the `.mjs` extension for your ESLint config file.
|
|
17
17
|
|
|
18
18
|
The default configuration includes standards and stylistic rules for JS. Optional extensions can be added to add rules for `import`, `react` and `jsdoc`:
|
|
19
19
|
|
package/extensions/jsdoc.mjs
CHANGED
|
@@ -23,7 +23,7 @@ export default [
|
|
|
23
23
|
rules: {
|
|
24
24
|
"jsdoc/check-param-names": "warn",
|
|
25
25
|
"jsdoc/check-template-names": "warn",
|
|
26
|
-
"jsdoc/lines-before-block": "warn",
|
|
26
|
+
"jsdoc/lines-before-block": ["warn", { ignoreSingleLines: true }],
|
|
27
27
|
"jsdoc/require-jsdoc": "off",
|
|
28
28
|
"jsdoc/require-returns": "off",
|
|
29
29
|
"jsdoc/require-template": "warn",
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import babelParser from "@babel/eslint-parser";
|
|
2
2
|
import js from "@eslint/js";
|
|
3
|
-
import
|
|
3
|
+
import stylisticPlugin from "@stylistic/eslint-plugin";
|
|
4
4
|
import globals from "globals";
|
|
5
5
|
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ export default [
|
|
|
31
31
|
js.configs.recommended,
|
|
32
32
|
{
|
|
33
33
|
plugins: {
|
|
34
|
-
"@stylistic
|
|
34
|
+
"@stylistic": stylisticPlugin
|
|
35
35
|
},
|
|
36
36
|
rules: {
|
|
37
37
|
"array-callback-return": "warn",
|
|
@@ -183,48 +183,48 @@ export default [
|
|
|
183
183
|
"unicode-bom": ["warn", "never"],
|
|
184
184
|
"use-isnan": "warn",
|
|
185
185
|
"valid-typeof": "warn",
|
|
186
|
-
"@stylistic/
|
|
187
|
-
"@stylistic/
|
|
188
|
-
"@stylistic/
|
|
189
|
-
"@stylistic/
|
|
190
|
-
"@stylistic/
|
|
191
|
-
"@stylistic/
|
|
192
|
-
"@stylistic/
|
|
186
|
+
"@stylistic/array-bracket-newline": ["warn", "consistent"],
|
|
187
|
+
"@stylistic/array-bracket-spacing": "warn",
|
|
188
|
+
"@stylistic/array-element-newline": ["warn", "consistent"],
|
|
189
|
+
"@stylistic/arrow-parens": "warn",
|
|
190
|
+
"@stylistic/arrow-spacing": "warn",
|
|
191
|
+
"@stylistic/block-spacing": "warn",
|
|
192
|
+
"@stylistic/brace-style": ["warn", "1tbs", {
|
|
193
193
|
allowSingleLine: true
|
|
194
194
|
}],
|
|
195
|
-
"@stylistic/
|
|
196
|
-
"@stylistic/
|
|
197
|
-
"@stylistic/
|
|
198
|
-
"@stylistic/
|
|
199
|
-
"@stylistic/
|
|
200
|
-
"@stylistic/
|
|
201
|
-
"@stylistic/
|
|
202
|
-
"@stylistic/
|
|
203
|
-
"@stylistic/
|
|
204
|
-
"@stylistic/
|
|
205
|
-
"@stylistic/
|
|
195
|
+
"@stylistic/comma-dangle": ["warn", "never"],
|
|
196
|
+
"@stylistic/comma-spacing": "warn",
|
|
197
|
+
"@stylistic/comma-style": "warn",
|
|
198
|
+
"@stylistic/computed-property-spacing": "warn",
|
|
199
|
+
"@stylistic/dot-location": ["warn", "property"],
|
|
200
|
+
"@stylistic/eol-last": ["warn", "never"],
|
|
201
|
+
"@stylistic/function-call-spacing": "warn",
|
|
202
|
+
"@stylistic/function-call-argument-newline": ["warn", "consistent"],
|
|
203
|
+
"@stylistic/function-paren-newline": ["warn", "consistent"],
|
|
204
|
+
"@stylistic/implicit-arrow-linebreak": "warn",
|
|
205
|
+
"@stylistic/indent": ["warn", "tab", {
|
|
206
206
|
SwitchCase: 1,
|
|
207
207
|
ignoreComments: true
|
|
208
208
|
}],
|
|
209
|
-
"@stylistic/
|
|
210
|
-
"@stylistic/
|
|
211
|
-
"@stylistic/
|
|
212
|
-
"@stylistic/
|
|
213
|
-
"@stylistic/
|
|
214
|
-
"@stylistic/
|
|
215
|
-
"@stylistic/
|
|
216
|
-
"@stylistic/
|
|
217
|
-
"@stylistic/
|
|
209
|
+
"@stylistic/key-spacing": "warn",
|
|
210
|
+
"@stylistic/keyword-spacing": "warn",
|
|
211
|
+
"@stylistic/new-parens": "warn",
|
|
212
|
+
"@stylistic/no-confusing-arrow": "warn",
|
|
213
|
+
"@stylistic/no-extra-semi": "warn",
|
|
214
|
+
"@stylistic/no-floating-decimal": "warn",
|
|
215
|
+
"@stylistic/no-mixed-operators": "warn",
|
|
216
|
+
"@stylistic/no-multi-spaces": "warn",
|
|
217
|
+
"@stylistic/no-multiple-empty-lines": ["warn", {
|
|
218
218
|
max: 2,
|
|
219
219
|
maxBOF: 0,
|
|
220
220
|
maxEOF: 0
|
|
221
221
|
}],
|
|
222
|
-
"@stylistic/
|
|
223
|
-
"@stylistic/
|
|
224
|
-
"@stylistic/
|
|
225
|
-
"@stylistic/
|
|
226
|
-
"@stylistic/
|
|
227
|
-
"@stylistic/
|
|
222
|
+
"@stylistic/no-trailing-spaces": "warn",
|
|
223
|
+
"@stylistic/no-whitespace-before-property": "warn",
|
|
224
|
+
"@stylistic/nonblock-statement-body-position": "warn",
|
|
225
|
+
"@stylistic/object-curly-newline": "warn",
|
|
226
|
+
"@stylistic/object-curly-spacing": ["warn", "always"],
|
|
227
|
+
"@stylistic/operator-linebreak": ["warn", "after", {
|
|
228
228
|
overrides: {
|
|
229
229
|
"?": "ignore",
|
|
230
230
|
":": "ignore",
|
|
@@ -232,28 +232,28 @@ export default [
|
|
|
232
232
|
"&&": "ignore"
|
|
233
233
|
}
|
|
234
234
|
}],
|
|
235
|
-
"@stylistic/
|
|
235
|
+
"@stylistic/padding-line-between-statements": [
|
|
236
236
|
"warn",
|
|
237
237
|
{ blankLine: "always", prev: "default", next: "*" },
|
|
238
238
|
{ blankLine: "always", prev: "*", next: "switch" }
|
|
239
239
|
],
|
|
240
|
-
"@stylistic/
|
|
241
|
-
"@stylistic/
|
|
242
|
-
"@stylistic/
|
|
243
|
-
"@stylistic/
|
|
244
|
-
"@stylistic/
|
|
245
|
-
"@stylistic/
|
|
246
|
-
"@stylistic/
|
|
247
|
-
"@stylistic/
|
|
240
|
+
"@stylistic/quote-props": ["warn", "consistent-as-needed"],
|
|
241
|
+
"@stylistic/quotes": ["warn", "double"],
|
|
242
|
+
"@stylistic/rest-spread-spacing": "warn",
|
|
243
|
+
"@stylistic/semi": "warn",
|
|
244
|
+
"@stylistic/semi-spacing": "warn",
|
|
245
|
+
"@stylistic/semi-style": "warn",
|
|
246
|
+
"@stylistic/space-before-blocks": "warn",
|
|
247
|
+
"@stylistic/space-before-function-paren": ["warn", {
|
|
248
248
|
anonymous: "always",
|
|
249
249
|
named: "never",
|
|
250
250
|
asyncArrow: "always"
|
|
251
251
|
}],
|
|
252
|
-
"@stylistic/
|
|
253
|
-
"@stylistic/
|
|
254
|
-
"@stylistic/
|
|
255
|
-
"@stylistic/
|
|
256
|
-
"@stylistic/
|
|
252
|
+
"@stylistic/space-in-parens": "warn",
|
|
253
|
+
"@stylistic/space-infix-ops": "warn",
|
|
254
|
+
"@stylistic/space-unary-ops": "warn",
|
|
255
|
+
"@stylistic/spaced-comment": "warn",
|
|
256
|
+
"@stylistic/template-curly-spacing": "warn"
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-arklint",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"author": "Arkellys",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -26,22 +26,22 @@
|
|
|
26
26
|
"prepare": "husky"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@babel/core": "^7.
|
|
30
|
-
"@babel/eslint-parser": "^7.
|
|
31
|
-
"@babel/preset-env": "^7.
|
|
32
|
-
"@babel/preset-react": "^7.
|
|
33
|
-
"@eslint/js": "^9.
|
|
34
|
-
"@stylistic/eslint-plugin
|
|
35
|
-
"eslint-plugin-import": "^2.
|
|
36
|
-
"eslint-plugin-jsdoc": "^
|
|
29
|
+
"@babel/core": "^7.28.0",
|
|
30
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
31
|
+
"@babel/preset-env": "^7.28.0",
|
|
32
|
+
"@babel/preset-react": "^7.27.1",
|
|
33
|
+
"@eslint/js": "^9.32.0",
|
|
34
|
+
"@stylistic/eslint-plugin": "^5.2.2",
|
|
35
|
+
"eslint-plugin-import": "^2.32.0",
|
|
36
|
+
"eslint-plugin-jsdoc": "^51.4.1",
|
|
37
37
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
38
|
-
"eslint-plugin-perfectionist": "^4.
|
|
38
|
+
"eslint-plugin-perfectionist": "^4.15.0",
|
|
39
39
|
"eslint-plugin-react": "^7.37.5",
|
|
40
40
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
41
|
-
"globals": "^16.
|
|
41
|
+
"globals": "^16.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"eslint": "^9.
|
|
44
|
+
"eslint": "^9.32.0",
|
|
45
45
|
"husky": "^9.1.7"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|