@citrus-linting/eslint-config 1.3.1 → 1.4.1
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 +4 -4
- package/index.js +3 -3
- package/package.json +1 -1
- package/rules/base.js +44 -44
- package/svelte-typescript.js +1 -1
- package/svelte.js +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ ESLint config used by [CitRUS](https://github.com/CitRUSprod).
|
|
|
16
16
|
Install dependencies:
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
npm add -D globals @stylistic/eslint-plugin eslint-plugin-import @citrus-linting/eslint-config
|
|
19
|
+
npm add -D globals @stylistic/eslint-plugin eslint-plugin-import-x @citrus-linting/eslint-config
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Add `extends` field to your ESLint config (eslint.config.js):
|
|
@@ -51,7 +51,7 @@ export default [
|
|
|
51
51
|
Install dependencies:
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
npm add -D globals typescript-eslint @stylistic/eslint-plugin eslint-plugin-import @citrus-linting/eslint-config
|
|
54
|
+
npm add -D globals typescript-eslint @stylistic/eslint-plugin eslint-plugin-import-x @citrus-linting/eslint-config
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Add `extends` field to your ESLint config (eslint.config.js):
|
|
@@ -90,7 +90,7 @@ export default [
|
|
|
90
90
|
Install dependencies:
|
|
91
91
|
|
|
92
92
|
```sh
|
|
93
|
-
npm add -D globals svelte-eslint-parser eslint-plugin-svelte @stylistic/eslint-plugin eslint-plugin-import @citrus-linting/eslint-config
|
|
93
|
+
npm add -D globals svelte-eslint-parser eslint-plugin-svelte @stylistic/eslint-plugin eslint-plugin-import-x @citrus-linting/eslint-config
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
Add `extends` field to your ESLint config (eslint.config.js):
|
|
@@ -129,7 +129,7 @@ export default [
|
|
|
129
129
|
Install dependencies:
|
|
130
130
|
|
|
131
131
|
```sh
|
|
132
|
-
npm add -D globals svelte-eslint-parser eslint-plugin-svelte typescript-eslint @stylistic/eslint-plugin eslint-plugin-import @citrus-linting/eslint-config
|
|
132
|
+
npm add -D globals svelte-eslint-parser eslint-plugin-svelte typescript-eslint @stylistic/eslint-plugin eslint-plugin-import-x @citrus-linting/eslint-config
|
|
133
133
|
```
|
|
134
134
|
|
|
135
135
|
Add `extends` field to your ESLint config (eslint.config.js):
|
package/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import globals from "globals"
|
|
2
2
|
import stylistic from "@stylistic/eslint-plugin"
|
|
3
|
-
import
|
|
3
|
+
import importX from "eslint-plugin-import-x"
|
|
4
4
|
|
|
5
5
|
import baseRules from "./rules/base.js"
|
|
6
6
|
|
|
7
7
|
export default [
|
|
8
8
|
{
|
|
9
9
|
languageOptions: {
|
|
10
|
-
ecmaVersion:
|
|
10
|
+
ecmaVersion: "latest",
|
|
11
11
|
sourceType: "module",
|
|
12
12
|
globals: {
|
|
13
13
|
...globals.browser,
|
|
@@ -17,7 +17,7 @@ export default [
|
|
|
17
17
|
},
|
|
18
18
|
plugins: {
|
|
19
19
|
"@stylistic": stylistic,
|
|
20
|
-
import:
|
|
20
|
+
"import-x": importX
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
{
|
package/package.json
CHANGED
package/rules/base.js
CHANGED
|
@@ -394,37 +394,37 @@ export default {
|
|
|
394
394
|
"@stylistic/wrap-regex": 0,
|
|
395
395
|
"@stylistic/yield-star-spacing": 2,
|
|
396
396
|
|
|
397
|
-
"import/no-unresolved": 0,
|
|
398
|
-
"import/named": 0,
|
|
399
|
-
"import/default": 2,
|
|
400
|
-
"import/namespace": 2,
|
|
401
|
-
"import/no-namespace": 0,
|
|
402
|
-
"import/export": 2,
|
|
403
|
-
"import/no-mutable-exports": 2,
|
|
404
|
-
"import/extensions": 0,
|
|
405
|
-
"import/no-restricted-paths": 0,
|
|
406
|
-
"import/no-internal-modules": 0,
|
|
407
|
-
"import/group-exports": 0,
|
|
408
|
-
"import/no-relative-packages": 2,
|
|
409
|
-
"import/no-relative-parent-imports": 0,
|
|
410
|
-
"import/consistent-type-specifier-style": [2, "prefer-top-level"],
|
|
411
|
-
"import/no-self-import": 2,
|
|
412
|
-
"import/no-cycle": 2,
|
|
413
|
-
"import/no-named-default": 2,
|
|
414
|
-
"import/no-named-as-default": 0,
|
|
415
|
-
"import/no-named-as-default-member": 2,
|
|
416
|
-
"import/no-anonymous-default-export": 2,
|
|
417
|
-
"import/no-unused-modules": 0,
|
|
418
|
-
"import/no-commonjs": 0,
|
|
419
|
-
"import/no-amd": 2,
|
|
420
|
-
"import/no-duplicates": [2, { "prefer-inline": false }],
|
|
421
|
-
"import/first": 2,
|
|
422
|
-
"import/max-dependencies": 0,
|
|
423
|
-
"import/no-extraneous-dependencies": 2,
|
|
424
|
-
"import/no-absolute-path": 2,
|
|
425
|
-
"import/no-nodejs-modules": 0,
|
|
426
|
-
"import/no-webpack-loader-syntax": 2,
|
|
427
|
-
"import/order": [
|
|
397
|
+
"import-x/no-unresolved": 0,
|
|
398
|
+
"import-x/named": 0,
|
|
399
|
+
"import-x/default": 2,
|
|
400
|
+
"import-x/namespace": 2,
|
|
401
|
+
"import-x/no-namespace": 0,
|
|
402
|
+
"import-x/export": 2,
|
|
403
|
+
"import-x/no-mutable-exports": 2,
|
|
404
|
+
"import-x/extensions": 0,
|
|
405
|
+
"import-x/no-restricted-paths": 0,
|
|
406
|
+
"import-x/no-internal-modules": 0,
|
|
407
|
+
"import-x/group-exports": 0,
|
|
408
|
+
"import-x/no-relative-packages": 2,
|
|
409
|
+
"import-x/no-relative-parent-imports": 0,
|
|
410
|
+
"import-x/consistent-type-specifier-style": [2, "prefer-top-level"],
|
|
411
|
+
"import-x/no-self-import": 2,
|
|
412
|
+
"import-x/no-cycle": 2,
|
|
413
|
+
"import-x/no-named-default": 2,
|
|
414
|
+
"import-x/no-named-as-default": 0,
|
|
415
|
+
"import-x/no-named-as-default-member": 2,
|
|
416
|
+
"import-x/no-anonymous-default-export": 2,
|
|
417
|
+
"import-x/no-unused-modules": 0,
|
|
418
|
+
"import-x/no-commonjs": 0,
|
|
419
|
+
"import-x/no-amd": 2,
|
|
420
|
+
"import-x/no-duplicates": [2, { "prefer-inline": false }],
|
|
421
|
+
"import-x/first": 2,
|
|
422
|
+
"import-x/max-dependencies": 0,
|
|
423
|
+
"import-x/no-extraneous-dependencies": 2,
|
|
424
|
+
"import-x/no-absolute-path": 2,
|
|
425
|
+
"import-x/no-nodejs-modules": 0,
|
|
426
|
+
"import-x/no-webpack-loader-syntax": 2,
|
|
427
|
+
"import-x/order": [
|
|
428
428
|
2,
|
|
429
429
|
{
|
|
430
430
|
"newlines-between": "always",
|
|
@@ -438,17 +438,17 @@ export default {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
],
|
|
441
|
-
"import/newline-after-import": 2,
|
|
442
|
-
"import/prefer-default-export": 0,
|
|
443
|
-
"import/no-default-export": 0,
|
|
444
|
-
"import/no-named-export": 0,
|
|
445
|
-
"import/no-dynamic-require": 2,
|
|
446
|
-
"import/unambiguous": 0,
|
|
447
|
-
"import/no-unassigned-import": 2,
|
|
448
|
-
"import/no-useless-path-segments": 2,
|
|
449
|
-
"import/dynamic-import-chunkname": 0,
|
|
450
|
-
"import/no-import-module-exports": 2,
|
|
451
|
-
"import/no-empty-named-blocks": 2,
|
|
452
|
-
"import/exports-last": 0,
|
|
453
|
-
"import/no-deprecated": 2
|
|
441
|
+
"import-x/newline-after-import": 2,
|
|
442
|
+
"import-x/prefer-default-export": 0,
|
|
443
|
+
"import-x/no-default-export": 0,
|
|
444
|
+
"import-x/no-named-export": 0,
|
|
445
|
+
"import-x/no-dynamic-require": 2,
|
|
446
|
+
"import-x/unambiguous": 0,
|
|
447
|
+
"import-x/no-unassigned-import": 2,
|
|
448
|
+
"import-x/no-useless-path-segments": 2,
|
|
449
|
+
"import-x/dynamic-import-chunkname": 0,
|
|
450
|
+
"import-x/no-import-module-exports": 2,
|
|
451
|
+
"import-x/no-empty-named-blocks": 2,
|
|
452
|
+
"import-x/exports-last": 0,
|
|
453
|
+
"import-x/no-deprecated": 2
|
|
454
454
|
}
|
package/svelte-typescript.js
CHANGED