@st1ggy/linter-config 9.0.0 → 10.0.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 +57 -31
- package/data/linter-config-inventory.json +164 -95
- package/data/oxlint-config-inventory.json +913 -913
- package/data/oxlint-rule-map.json +703 -353
- package/data/oxlint-source-inventory.json +4876 -4345
- package/docs/OXLINT_RULE_MAPPING.md +29 -26
- package/docs/RULE_MAPPING.md +1 -1
- package/package.json +1 -1
- package/scripts/README.md +4 -4
- package/scripts/linter-init-core.mjs +4 -22
- package/src/eslint/configs/config.common.js +4 -1
- package/src/eslint/configs/config.prettier.js +1 -1
- package/src/eslint/configs/config.react.js +2 -2
- package/src/eslint/configs/config.solid.js +1 -1
- package/src/eslint/configs/config.sonarjs.js +1 -1
- package/src/eslint/configs/config.typescript.js +6 -0
- package/src/eslint/configs/config.unicorn.js +8 -19
- package/src/eslint/configs/svelte-stack.js +1 -1
- package/src/oxfmt/oxfmt.config.common.js +9 -1
- package/src/oxlint/configs/config.astro.js +62 -150
- package/src/oxlint/configs/config.common.js +51 -143
- package/src/oxlint/configs/config.next.js +51 -147
- package/src/oxlint/configs/config.react.js +51 -147
- package/src/oxlint/configs/config.solid.js +73 -211
- package/src/oxlint/configs/config.svelte.js +51 -143
- package/src/oxlint/stacks.js +4 -9
|
@@ -1,33 +1,22 @@
|
|
|
1
|
-
import { defineConfig } from 'eslint/config'
|
|
2
1
|
import unicornPlugin from 'eslint-plugin-unicorn'
|
|
2
|
+
import { defineConfig } from 'eslint/config'
|
|
3
3
|
|
|
4
4
|
import { files } from './constants.js'
|
|
5
5
|
|
|
6
6
|
export default defineConfig([
|
|
7
7
|
unicornPlugin.configs.recommended,
|
|
8
|
+
{
|
|
9
|
+
rules: {
|
|
10
|
+
'unicorn/consistent-destructuring': 'off',
|
|
11
|
+
'unicorn/no-unused-properties': 'off',
|
|
12
|
+
'unicorn/name-replacements': 'off',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
8
15
|
{
|
|
9
16
|
files,
|
|
10
17
|
rules: {
|
|
11
|
-
'unicorn/consistent-destructuring': 'error',
|
|
12
18
|
'unicorn/custom-error-definition': 'error',
|
|
13
|
-
'unicorn/no-unused-properties': 'error',
|
|
14
19
|
'unicorn/no-null': 'off',
|
|
15
|
-
'unicorn/name-replacements': [
|
|
16
|
-
'error',
|
|
17
|
-
{
|
|
18
|
-
replacements: {
|
|
19
|
-
dev: false,
|
|
20
|
-
prod: false,
|
|
21
|
-
props: false,
|
|
22
|
-
ref: false,
|
|
23
|
-
refs: false,
|
|
24
|
-
args: false,
|
|
25
|
-
params: false,
|
|
26
|
-
utils: false,
|
|
27
|
-
env: false,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
20
|
},
|
|
32
21
|
},
|
|
33
22
|
])
|
|
@@ -10,7 +10,15 @@ export default {
|
|
|
10
10
|
proseWrap: 'never',
|
|
11
11
|
endOfLine: 'lf',
|
|
12
12
|
insertFinalNewline: true,
|
|
13
|
-
sortImports:
|
|
13
|
+
sortImports: {
|
|
14
|
+
groups: [['builtin', 'external'], 'internal', 'parent', ['sibling', 'index'], 'type', 'unknown'],
|
|
15
|
+
internalPattern: ['@/', '~/'],
|
|
16
|
+
sortSideEffects: false,
|
|
17
|
+
partitionByComment: true,
|
|
18
|
+
order: 'asc',
|
|
19
|
+
ignoreCase: false,
|
|
20
|
+
newlinesBetween: true,
|
|
21
|
+
},
|
|
14
22
|
sortPackageJson: false,
|
|
15
23
|
ignorePatterns: ['**/node_modules/**', '**/.git/**'],
|
|
16
24
|
}
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
],
|
|
32
32
|
},
|
|
33
33
|
profiles: {
|
|
34
|
-
'
|
|
34
|
+
'07140cdc1b1a0b12': {
|
|
35
35
|
rules: {
|
|
36
36
|
'stylistic-js/lines-between-class-members': [
|
|
37
37
|
2,
|
|
@@ -51,6 +51,7 @@ export default {
|
|
|
51
51
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
52
52
|
'typescript/adjacent-overload-signatures': [2],
|
|
53
53
|
'typescript-js/array-type': [2],
|
|
54
|
+
'typescript/await-thenable': [2],
|
|
54
55
|
'typescript/ban-ts-comment': [
|
|
55
56
|
2,
|
|
56
57
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -69,14 +70,18 @@ export default {
|
|
|
69
70
|
'typescript/no-empty-object-type': [2],
|
|
70
71
|
'typescript/no-explicit-any': [2],
|
|
71
72
|
'typescript/no-extra-non-null-assertion': [2],
|
|
73
|
+
'typescript/no-floating-promises': [2],
|
|
72
74
|
'typescript/no-inferrable-types': [2],
|
|
73
75
|
'typescript/no-misused-new': [2],
|
|
76
|
+
'typescript/no-misused-promises': [2],
|
|
74
77
|
'typescript/no-namespace': [2],
|
|
75
78
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
76
79
|
'typescript/no-require-imports': [2],
|
|
77
80
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
78
81
|
'typescript/no-this-alias': [2],
|
|
82
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
79
83
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
84
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
80
85
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
81
86
|
'typescript/no-unsafe-function-type': [2],
|
|
82
87
|
'eslint/no-unused-expressions': [
|
|
@@ -89,6 +94,7 @@ export default {
|
|
|
89
94
|
'typescript/prefer-for-of': [2],
|
|
90
95
|
'typescript/prefer-function-type': [2],
|
|
91
96
|
'typescript/prefer-namespace-keyword': [2],
|
|
97
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
92
98
|
'typescript/switch-exhaustiveness-check': [2],
|
|
93
99
|
'typescript/triple-slash-reference': [2],
|
|
94
100
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -97,6 +103,7 @@ export default {
|
|
|
97
103
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
98
104
|
],
|
|
99
105
|
'eslint/constructor-super': [2],
|
|
106
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
100
107
|
'eslint/for-direction': [2],
|
|
101
108
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
102
109
|
'import/default': [2],
|
|
@@ -108,20 +115,7 @@ export default {
|
|
|
108
115
|
'import/no-named-as-default': [1],
|
|
109
116
|
'import/no-named-as-default-member': [1],
|
|
110
117
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
111
|
-
'
|
|
112
|
-
2,
|
|
113
|
-
{
|
|
114
|
-
'newlines-between': 'always',
|
|
115
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
116
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
117
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
118
|
-
distinctGroup: true,
|
|
119
|
-
sortTypesGroup: false,
|
|
120
|
-
named: false,
|
|
121
|
-
warnOnUnassignedImports: false,
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
'eslint-js/newline-before-return': [2],
|
|
118
|
+
'eslint/max-depth': [1, 4],
|
|
125
119
|
'eslint/no-async-promise-executor': [2],
|
|
126
120
|
'eslint/no-case-declarations': [2],
|
|
127
121
|
'eslint/no-class-assign': [2],
|
|
@@ -139,6 +133,7 @@ export default {
|
|
|
139
133
|
'eslint/no-dupe-else-if': [2],
|
|
140
134
|
'eslint/no-dupe-keys': [2],
|
|
141
135
|
'eslint/no-duplicate-case': [2],
|
|
136
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
142
137
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
143
138
|
'eslint/no-empty-character-class': [2],
|
|
144
139
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -424,7 +419,6 @@ export default {
|
|
|
424
419
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
425
420
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
426
421
|
'unicorn/consistent-date-clone': [2],
|
|
427
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
428
422
|
'unicorn/consistent-empty-array-spread': [2],
|
|
429
423
|
'unicorn/consistent-existence-index-check': [2],
|
|
430
424
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -459,22 +453,6 @@ export default {
|
|
|
459
453
|
],
|
|
460
454
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
461
455
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
462
|
-
'unicorn-js/name-replacements': [
|
|
463
|
-
2,
|
|
464
|
-
{
|
|
465
|
-
replacements: {
|
|
466
|
-
dev: false,
|
|
467
|
-
prod: false,
|
|
468
|
-
props: false,
|
|
469
|
-
ref: false,
|
|
470
|
-
refs: false,
|
|
471
|
-
args: false,
|
|
472
|
-
params: false,
|
|
473
|
-
utils: false,
|
|
474
|
-
env: false,
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
],
|
|
478
456
|
'unicorn/new-for-builtins': [2],
|
|
479
457
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
480
458
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -583,7 +561,6 @@ export default {
|
|
|
583
561
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
584
562
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
585
563
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
586
|
-
'unicorn-js/no-unused-properties': [2],
|
|
587
564
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
588
565
|
'unicorn-js/no-useless-coercion': [2],
|
|
589
566
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -846,7 +823,7 @@ export default {
|
|
|
846
823
|
WeakSet: 'readonly',
|
|
847
824
|
},
|
|
848
825
|
},
|
|
849
|
-
'
|
|
826
|
+
'773b143054fcdada': {
|
|
850
827
|
rules: {
|
|
851
828
|
'stylistic-js/lines-between-class-members': [
|
|
852
829
|
2,
|
|
@@ -866,6 +843,7 @@ export default {
|
|
|
866
843
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
867
844
|
'typescript/adjacent-overload-signatures': [2],
|
|
868
845
|
'typescript-js/array-type': [2],
|
|
846
|
+
'typescript/await-thenable': [2],
|
|
869
847
|
'typescript/ban-ts-comment': [
|
|
870
848
|
2,
|
|
871
849
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -884,14 +862,18 @@ export default {
|
|
|
884
862
|
'typescript/no-empty-object-type': [2],
|
|
885
863
|
'typescript/no-explicit-any': [2],
|
|
886
864
|
'typescript/no-extra-non-null-assertion': [2],
|
|
865
|
+
'typescript/no-floating-promises': [2],
|
|
887
866
|
'typescript/no-inferrable-types': [2],
|
|
888
867
|
'typescript/no-misused-new': [2],
|
|
868
|
+
'typescript/no-misused-promises': [2],
|
|
889
869
|
'typescript/no-namespace': [2],
|
|
890
870
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
891
871
|
'typescript/no-require-imports': [2],
|
|
892
872
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
893
873
|
'typescript/no-this-alias': [2],
|
|
874
|
+
'typescript/no-unnecessary-type-assertion': [1],
|
|
894
875
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
876
|
+
'typescript/no-unnecessary-type-parameters': [1],
|
|
895
877
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
896
878
|
'typescript/no-unsafe-function-type': [2],
|
|
897
879
|
'eslint/no-unused-expressions': [
|
|
@@ -904,6 +886,7 @@ export default {
|
|
|
904
886
|
'typescript/prefer-for-of': [2],
|
|
905
887
|
'typescript/prefer-function-type': [2],
|
|
906
888
|
'typescript/prefer-namespace-keyword': [2],
|
|
889
|
+
'typescript/prefer-nullish-coalescing': [1, { ignorePrimitives: true }],
|
|
907
890
|
'typescript/switch-exhaustiveness-check': [2],
|
|
908
891
|
'typescript/triple-slash-reference': [2],
|
|
909
892
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -912,6 +895,7 @@ export default {
|
|
|
912
895
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
913
896
|
],
|
|
914
897
|
'eslint/constructor-super': 'off',
|
|
898
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
915
899
|
'eslint/for-direction': [2],
|
|
916
900
|
'eslint/getter-return': 'off',
|
|
917
901
|
'import/default': [2],
|
|
@@ -923,20 +907,7 @@ export default {
|
|
|
923
907
|
'import/no-named-as-default': [1],
|
|
924
908
|
'import/no-named-as-default-member': [1],
|
|
925
909
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
926
|
-
'
|
|
927
|
-
2,
|
|
928
|
-
{
|
|
929
|
-
'newlines-between': 'always',
|
|
930
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
931
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
932
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
933
|
-
distinctGroup: true,
|
|
934
|
-
sortTypesGroup: false,
|
|
935
|
-
named: false,
|
|
936
|
-
warnOnUnassignedImports: false,
|
|
937
|
-
},
|
|
938
|
-
],
|
|
939
|
-
'eslint-js/newline-before-return': [2],
|
|
910
|
+
'eslint/max-depth': [1, 4],
|
|
940
911
|
'eslint/no-async-promise-executor': [2],
|
|
941
912
|
'eslint/no-case-declarations': [2],
|
|
942
913
|
'eslint/no-class-assign': 'off',
|
|
@@ -954,6 +925,7 @@ export default {
|
|
|
954
925
|
'eslint/no-dupe-else-if': [2],
|
|
955
926
|
'eslint/no-dupe-keys': 'off',
|
|
956
927
|
'eslint/no-duplicate-case': [2],
|
|
928
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
957
929
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
958
930
|
'eslint/no-empty-character-class': [2],
|
|
959
931
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -1239,7 +1211,6 @@ export default {
|
|
|
1239
1211
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
1240
1212
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
1241
1213
|
'unicorn/consistent-date-clone': [2],
|
|
1242
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
1243
1214
|
'unicorn/consistent-empty-array-spread': [2],
|
|
1244
1215
|
'unicorn/consistent-existence-index-check': [2],
|
|
1245
1216
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -1274,22 +1245,6 @@ export default {
|
|
|
1274
1245
|
],
|
|
1275
1246
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
1276
1247
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
1277
|
-
'unicorn-js/name-replacements': [
|
|
1278
|
-
2,
|
|
1279
|
-
{
|
|
1280
|
-
replacements: {
|
|
1281
|
-
dev: false,
|
|
1282
|
-
prod: false,
|
|
1283
|
-
props: false,
|
|
1284
|
-
ref: false,
|
|
1285
|
-
refs: false,
|
|
1286
|
-
args: false,
|
|
1287
|
-
params: false,
|
|
1288
|
-
utils: false,
|
|
1289
|
-
env: false,
|
|
1290
|
-
},
|
|
1291
|
-
},
|
|
1292
|
-
],
|
|
1293
1248
|
'unicorn/new-for-builtins': [2],
|
|
1294
1249
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
1295
1250
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -1398,7 +1353,6 @@ export default {
|
|
|
1398
1353
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
1399
1354
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
1400
1355
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
1401
|
-
'unicorn-js/no-unused-properties': [2],
|
|
1402
1356
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
1403
1357
|
'unicorn-js/no-useless-coercion': [2],
|
|
1404
1358
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -1661,7 +1615,7 @@ export default {
|
|
|
1661
1615
|
WeakSet: 'readonly',
|
|
1662
1616
|
},
|
|
1663
1617
|
},
|
|
1664
|
-
|
|
1618
|
+
'001e064fd42eb73f': {
|
|
1665
1619
|
rules: {
|
|
1666
1620
|
'stylistic-js/lines-between-class-members': [
|
|
1667
1621
|
2,
|
|
@@ -1681,6 +1635,7 @@ export default {
|
|
|
1681
1635
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
1682
1636
|
'typescript/adjacent-overload-signatures': [2],
|
|
1683
1637
|
'typescript-js/array-type': [2],
|
|
1638
|
+
'typescript/await-thenable': 'off',
|
|
1684
1639
|
'typescript/ban-ts-comment': [
|
|
1685
1640
|
2,
|
|
1686
1641
|
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': 'allow-with-description' },
|
|
@@ -1699,14 +1654,18 @@ export default {
|
|
|
1699
1654
|
'typescript/no-empty-object-type': [2],
|
|
1700
1655
|
'typescript/no-explicit-any': [2],
|
|
1701
1656
|
'typescript/no-extra-non-null-assertion': [2],
|
|
1657
|
+
'typescript/no-floating-promises': 'off',
|
|
1702
1658
|
'typescript/no-inferrable-types': [2],
|
|
1703
1659
|
'typescript/no-misused-new': [2],
|
|
1660
|
+
'typescript/no-misused-promises': 'off',
|
|
1704
1661
|
'typescript/no-namespace': [2],
|
|
1705
1662
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
1706
1663
|
'typescript/no-require-imports': [2],
|
|
1707
1664
|
'eslint/no-shadow': [2, { ignoreTypeValueShadow: true }],
|
|
1708
1665
|
'typescript/no-this-alias': [2],
|
|
1666
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
1709
1667
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
1668
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
1710
1669
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
1711
1670
|
'typescript/no-unsafe-function-type': [2],
|
|
1712
1671
|
'eslint/no-unused-expressions': [
|
|
@@ -1719,6 +1678,7 @@ export default {
|
|
|
1719
1678
|
'typescript/prefer-for-of': [2],
|
|
1720
1679
|
'typescript/prefer-function-type': [2],
|
|
1721
1680
|
'typescript/prefer-namespace-keyword': [2],
|
|
1681
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
1722
1682
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
1723
1683
|
'typescript/triple-slash-reference': [2],
|
|
1724
1684
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -1727,6 +1687,7 @@ export default {
|
|
|
1727
1687
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
1728
1688
|
],
|
|
1729
1689
|
'eslint/constructor-super': [2],
|
|
1690
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
1730
1691
|
'eslint/for-direction': [2],
|
|
1731
1692
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
1732
1693
|
'import/default': [2],
|
|
@@ -1738,20 +1699,7 @@ export default {
|
|
|
1738
1699
|
'import/no-named-as-default': [1],
|
|
1739
1700
|
'import/no-named-as-default-member': [1],
|
|
1740
1701
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
1741
|
-
'
|
|
1742
|
-
2,
|
|
1743
|
-
{
|
|
1744
|
-
'newlines-between': 'always',
|
|
1745
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
1746
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
1747
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
1748
|
-
distinctGroup: true,
|
|
1749
|
-
sortTypesGroup: false,
|
|
1750
|
-
named: false,
|
|
1751
|
-
warnOnUnassignedImports: false,
|
|
1752
|
-
},
|
|
1753
|
-
],
|
|
1754
|
-
'eslint-js/newline-before-return': [2],
|
|
1702
|
+
'eslint/max-depth': [1, 4],
|
|
1755
1703
|
'eslint/no-async-promise-executor': [2],
|
|
1756
1704
|
'eslint/no-case-declarations': [2],
|
|
1757
1705
|
'eslint/no-class-assign': [2],
|
|
@@ -1769,6 +1717,7 @@ export default {
|
|
|
1769
1717
|
'eslint/no-dupe-else-if': [2],
|
|
1770
1718
|
'eslint/no-dupe-keys': [2],
|
|
1771
1719
|
'eslint/no-duplicate-case': [2],
|
|
1720
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
1772
1721
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
1773
1722
|
'eslint/no-empty-character-class': [2],
|
|
1774
1723
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -2054,7 +2003,6 @@ export default {
|
|
|
2054
2003
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
2055
2004
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
2056
2005
|
'unicorn/consistent-date-clone': [2],
|
|
2057
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
2058
2006
|
'unicorn/consistent-empty-array-spread': [2],
|
|
2059
2007
|
'unicorn/consistent-existence-index-check': [2],
|
|
2060
2008
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -2089,22 +2037,6 @@ export default {
|
|
|
2089
2037
|
],
|
|
2090
2038
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
2091
2039
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
2092
|
-
'unicorn-js/name-replacements': [
|
|
2093
|
-
2,
|
|
2094
|
-
{
|
|
2095
|
-
replacements: {
|
|
2096
|
-
dev: false,
|
|
2097
|
-
prod: false,
|
|
2098
|
-
props: false,
|
|
2099
|
-
ref: false,
|
|
2100
|
-
refs: false,
|
|
2101
|
-
args: false,
|
|
2102
|
-
params: false,
|
|
2103
|
-
utils: false,
|
|
2104
|
-
env: false,
|
|
2105
|
-
},
|
|
2106
|
-
},
|
|
2107
|
-
],
|
|
2108
2040
|
'unicorn/new-for-builtins': [2],
|
|
2109
2041
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
2110
2042
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -2213,7 +2145,6 @@ export default {
|
|
|
2213
2145
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
2214
2146
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
2215
2147
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
2216
|
-
'unicorn-js/no-unused-properties': [2],
|
|
2217
2148
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
2218
2149
|
'unicorn-js/no-useless-coercion': [2],
|
|
2219
2150
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -2476,7 +2407,7 @@ export default {
|
|
|
2476
2407
|
WeakSet: 'readonly',
|
|
2477
2408
|
},
|
|
2478
2409
|
},
|
|
2479
|
-
'
|
|
2410
|
+
'5691ab52a1a423f2': {
|
|
2480
2411
|
rules: {
|
|
2481
2412
|
'stylistic-js/lines-between-class-members': [
|
|
2482
2413
|
2,
|
|
@@ -2487,6 +2418,7 @@ export default {
|
|
|
2487
2418
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
2488
2419
|
'typescript/adjacent-overload-signatures': [2],
|
|
2489
2420
|
'typescript-js/array-type': [2],
|
|
2421
|
+
'typescript/await-thenable': 'off',
|
|
2490
2422
|
'typescript/ban-ts-comment': [2],
|
|
2491
2423
|
'typescript/ban-tslint-comment': [2],
|
|
2492
2424
|
'typescript/class-literal-property-style': [2],
|
|
@@ -2502,14 +2434,18 @@ export default {
|
|
|
2502
2434
|
'typescript/no-empty-object-type': [2],
|
|
2503
2435
|
'typescript/no-explicit-any': [2],
|
|
2504
2436
|
'typescript/no-extra-non-null-assertion': [2],
|
|
2437
|
+
'typescript/no-floating-promises': 'off',
|
|
2505
2438
|
'typescript/no-inferrable-types': [2],
|
|
2506
2439
|
'typescript/no-misused-new': [2],
|
|
2440
|
+
'typescript/no-misused-promises': 'off',
|
|
2507
2441
|
'typescript/no-namespace': [2],
|
|
2508
2442
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
2509
2443
|
'typescript/no-require-imports': [2],
|
|
2510
2444
|
'eslint/no-shadow': 'off',
|
|
2511
2445
|
'typescript/no-this-alias': [2],
|
|
2446
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
2512
2447
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
2448
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
2513
2449
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
2514
2450
|
'typescript/no-unsafe-function-type': [2],
|
|
2515
2451
|
'eslint/no-unused-expressions': [
|
|
@@ -2522,11 +2458,13 @@ export default {
|
|
|
2522
2458
|
'typescript/prefer-for-of': [2],
|
|
2523
2459
|
'typescript/prefer-function-type': [2],
|
|
2524
2460
|
'typescript/prefer-namespace-keyword': [2],
|
|
2461
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
2525
2462
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
2526
2463
|
'typescript/triple-slash-reference': [2],
|
|
2527
2464
|
'eslint/arrow-body-style': 'off',
|
|
2528
2465
|
'eslint-js/camelcase': 'off',
|
|
2529
2466
|
'eslint/constructor-super': [2],
|
|
2467
|
+
'eslint/eqeqeq': 'off',
|
|
2530
2468
|
'eslint/for-direction': [2],
|
|
2531
2469
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
2532
2470
|
'import/default': [2],
|
|
@@ -2538,8 +2476,7 @@ export default {
|
|
|
2538
2476
|
'import/no-named-as-default': [1],
|
|
2539
2477
|
'import/no-named-as-default-member': [1],
|
|
2540
2478
|
'import-x-js/no-unresolved': [2],
|
|
2541
|
-
'
|
|
2542
|
-
'eslint-js/newline-before-return': 'off',
|
|
2479
|
+
'eslint/max-depth': 'off',
|
|
2543
2480
|
'eslint/no-async-promise-executor': [2],
|
|
2544
2481
|
'eslint/no-case-declarations': [2],
|
|
2545
2482
|
'eslint/no-class-assign': [2],
|
|
@@ -2557,6 +2494,7 @@ export default {
|
|
|
2557
2494
|
'eslint/no-dupe-else-if': [2],
|
|
2558
2495
|
'eslint/no-dupe-keys': [2],
|
|
2559
2496
|
'eslint/no-duplicate-case': [2],
|
|
2497
|
+
'eslint/no-else-return': 'off',
|
|
2560
2498
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
2561
2499
|
'eslint/no-empty-character-class': [2],
|
|
2562
2500
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -2819,7 +2757,6 @@ export default {
|
|
|
2819
2757
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
2820
2758
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
2821
2759
|
'unicorn/consistent-date-clone': [2],
|
|
2822
|
-
'unicorn-js/consistent-destructuring': 'off',
|
|
2823
2760
|
'unicorn/consistent-empty-array-spread': [2],
|
|
2824
2761
|
'unicorn/consistent-existence-index-check': [2],
|
|
2825
2762
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -2854,7 +2791,6 @@ export default {
|
|
|
2854
2791
|
],
|
|
2855
2792
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
2856
2793
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
2857
|
-
'unicorn-js/name-replacements': [2, {}],
|
|
2858
2794
|
'unicorn/new-for-builtins': [2],
|
|
2859
2795
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
2860
2796
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -2963,7 +2899,6 @@ export default {
|
|
|
2963
2899
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
2964
2900
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
2965
2901
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
2966
|
-
'unicorn-js/no-unused-properties': 'off',
|
|
2967
2902
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
2968
2903
|
'unicorn-js/no-useless-coercion': [2],
|
|
2969
2904
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -3309,7 +3244,7 @@ export default {
|
|
|
3309
3244
|
Fragment: 'readonly',
|
|
3310
3245
|
},
|
|
3311
3246
|
},
|
|
3312
|
-
|
|
3247
|
+
f62054ab85dba3ca: {
|
|
3313
3248
|
rules: {
|
|
3314
3249
|
'stylistic-js/lines-between-class-members': [
|
|
3315
3250
|
2,
|
|
@@ -3329,6 +3264,7 @@ export default {
|
|
|
3329
3264
|
'stylistic-js/spaced-comment': [2, 'always'],
|
|
3330
3265
|
'typescript/adjacent-overload-signatures': [2],
|
|
3331
3266
|
'typescript-js/array-type': [2],
|
|
3267
|
+
'typescript/await-thenable': 'off',
|
|
3332
3268
|
'typescript/ban-ts-comment': [2],
|
|
3333
3269
|
'typescript/ban-tslint-comment': [2],
|
|
3334
3270
|
'typescript/class-literal-property-style': [2],
|
|
@@ -3344,14 +3280,18 @@ export default {
|
|
|
3344
3280
|
'typescript/no-empty-object-type': [2],
|
|
3345
3281
|
'typescript/no-explicit-any': [2],
|
|
3346
3282
|
'typescript/no-extra-non-null-assertion': [2],
|
|
3283
|
+
'typescript/no-floating-promises': 'off',
|
|
3347
3284
|
'typescript/no-inferrable-types': [2],
|
|
3348
3285
|
'typescript/no-misused-new': [2],
|
|
3286
|
+
'typescript/no-misused-promises': 'off',
|
|
3349
3287
|
'typescript/no-namespace': [2],
|
|
3350
3288
|
'typescript/no-non-null-asserted-optional-chain': [2],
|
|
3351
3289
|
'typescript/no-require-imports': [2],
|
|
3352
3290
|
'eslint/no-shadow': 'off',
|
|
3353
3291
|
'typescript/no-this-alias': [2],
|
|
3292
|
+
'typescript/no-unnecessary-type-assertion': 'off',
|
|
3354
3293
|
'typescript/no-unnecessary-type-constraint': [2],
|
|
3294
|
+
'typescript/no-unnecessary-type-parameters': 'off',
|
|
3355
3295
|
'typescript/no-unsafe-declaration-merging': [2],
|
|
3356
3296
|
'typescript/no-unsafe-function-type': [2],
|
|
3357
3297
|
'eslint/no-unused-expressions': [
|
|
@@ -3364,6 +3304,7 @@ export default {
|
|
|
3364
3304
|
'typescript/prefer-for-of': [2],
|
|
3365
3305
|
'typescript/prefer-function-type': [2],
|
|
3366
3306
|
'typescript/prefer-namespace-keyword': [2],
|
|
3307
|
+
'typescript/prefer-nullish-coalescing': 'off',
|
|
3367
3308
|
'typescript/switch-exhaustiveness-check': 'off',
|
|
3368
3309
|
'typescript/triple-slash-reference': [2],
|
|
3369
3310
|
'eslint/arrow-body-style': [2, 'as-needed'],
|
|
@@ -3372,6 +3313,7 @@ export default {
|
|
|
3372
3313
|
{ allow: [], ignoreDestructuring: false, ignoreGlobals: false, ignoreImports: false, properties: 'always' },
|
|
3373
3314
|
],
|
|
3374
3315
|
'eslint/constructor-super': [2],
|
|
3316
|
+
'eslint/eqeqeq': [2, 'always', { null: 'ignore' }],
|
|
3375
3317
|
'eslint/for-direction': [2],
|
|
3376
3318
|
'eslint/getter-return': [2, { allowImplicit: false }],
|
|
3377
3319
|
'import/default': [2],
|
|
@@ -3383,20 +3325,7 @@ export default {
|
|
|
3383
3325
|
'import/no-named-as-default': [1],
|
|
3384
3326
|
'import/no-named-as-default-member': [1],
|
|
3385
3327
|
'import-x-js/no-unresolved': [2, { caseSensitive: true }],
|
|
3386
|
-
'
|
|
3387
|
-
2,
|
|
3388
|
-
{
|
|
3389
|
-
'newlines-between': 'always',
|
|
3390
|
-
groups: [['builtin', 'external'], ['internal'], ['parent'], ['sibling', 'index', 'object'], ['type']],
|
|
3391
|
-
pathGroups: [{ pattern: '@/**', group: 'external', position: 'after' }],
|
|
3392
|
-
alphabetize: { order: 'asc', caseInsensitive: false, orderImportKind: 'ignore' },
|
|
3393
|
-
distinctGroup: true,
|
|
3394
|
-
sortTypesGroup: false,
|
|
3395
|
-
named: false,
|
|
3396
|
-
warnOnUnassignedImports: false,
|
|
3397
|
-
},
|
|
3398
|
-
],
|
|
3399
|
-
'eslint-js/newline-before-return': [2],
|
|
3328
|
+
'eslint/max-depth': [1, 4],
|
|
3400
3329
|
'eslint/no-async-promise-executor': [2],
|
|
3401
3330
|
'eslint/no-case-declarations': [2],
|
|
3402
3331
|
'eslint/no-class-assign': [2],
|
|
@@ -3414,6 +3343,7 @@ export default {
|
|
|
3414
3343
|
'eslint/no-dupe-else-if': [2],
|
|
3415
3344
|
'eslint/no-dupe-keys': [2],
|
|
3416
3345
|
'eslint/no-duplicate-case': [2],
|
|
3346
|
+
'eslint/no-else-return': [1, { allowElseIf: false }],
|
|
3417
3347
|
'eslint/no-empty': [2, { allowEmptyCatch: false }],
|
|
3418
3348
|
'eslint/no-empty-character-class': [2],
|
|
3419
3349
|
'eslint/no-empty-pattern': [2, { allowObjectPatternsAsParameters: false }],
|
|
@@ -3699,7 +3629,6 @@ export default {
|
|
|
3699
3629
|
'unicorn-js/consistent-compound-words': [2, {}],
|
|
3700
3630
|
'unicorn-js/consistent-conditional-object-spread': [2, 'logical'],
|
|
3701
3631
|
'unicorn/consistent-date-clone': [2],
|
|
3702
|
-
'unicorn-js/consistent-destructuring': [2],
|
|
3703
3632
|
'unicorn/consistent-empty-array-spread': [2],
|
|
3704
3633
|
'unicorn/consistent-existence-index-check': [2],
|
|
3705
3634
|
'unicorn-js/consistent-export-decorator-position': [2, 'above'],
|
|
@@ -3734,22 +3663,6 @@ export default {
|
|
|
3734
3663
|
],
|
|
3735
3664
|
'unicorn-js/logical-assignment-operators': [2, 'always'],
|
|
3736
3665
|
'unicorn/max-nested-calls': [2, { max: 3 }],
|
|
3737
|
-
'unicorn-js/name-replacements': [
|
|
3738
|
-
2,
|
|
3739
|
-
{
|
|
3740
|
-
replacements: {
|
|
3741
|
-
dev: false,
|
|
3742
|
-
prod: false,
|
|
3743
|
-
props: false,
|
|
3744
|
-
ref: false,
|
|
3745
|
-
refs: false,
|
|
3746
|
-
args: false,
|
|
3747
|
-
params: false,
|
|
3748
|
-
utils: false,
|
|
3749
|
-
env: false,
|
|
3750
|
-
},
|
|
3751
|
-
},
|
|
3752
|
-
],
|
|
3753
3666
|
'unicorn/new-for-builtins': [2],
|
|
3754
3667
|
'unicorn/no-abusive-eslint-disable': [2],
|
|
3755
3668
|
'unicorn/no-accessor-recursion': [2],
|
|
@@ -3858,7 +3771,6 @@ export default {
|
|
|
3858
3771
|
'unicorn-js/no-unsafe-sqlite-interpolation': [2],
|
|
3859
3772
|
'unicorn-js/no-unsafe-string-replacement': [2],
|
|
3860
3773
|
'unicorn-js/no-unused-array-method-return': [2],
|
|
3861
|
-
'unicorn-js/no-unused-properties': [2],
|
|
3862
3774
|
'unicorn-js/no-useless-boolean-cast': [2],
|
|
3863
3775
|
'unicorn-js/no-useless-coercion': [2],
|
|
3864
3776
|
'unicorn/no-useless-collection-argument': [2],
|
|
@@ -4123,17 +4035,17 @@ export default {
|
|
|
4123
4035
|
},
|
|
4124
4036
|
},
|
|
4125
4037
|
overrides: [
|
|
4126
|
-
{ files: ['**/*.js'], profile: '
|
|
4127
|
-
{ files: ['**/*.ts'], profile: '
|
|
4128
|
-
{ files: ['**/*.cjs'], profile: '
|
|
4129
|
-
{ files: ['**/*.cts'], profile: '
|
|
4130
|
-
{ files: ['**/*.jsx', '**/*.mjs'], profile: '
|
|
4131
|
-
{ files: ['**/*.mts', '**/*.tsx'], profile: '
|
|
4132
|
-
{ files: ['**/*.vue'], profile: '
|
|
4133
|
-
{ files: ['**/*.d.ts'], profile: '
|
|
4134
|
-
{ files: ['**/*.astro'], profile: '
|
|
4135
|
-
{ files: ['**/*.svelte'], profile: '
|
|
4136
|
-
{ files: ['**/*.svelte.js'], profile: '
|
|
4137
|
-
{ files: ['**/*.svelte.ts'], profile: '
|
|
4038
|
+
{ files: ['**/*.js'], profile: '07140cdc1b1a0b12' },
|
|
4039
|
+
{ files: ['**/*.ts'], profile: '773b143054fcdada' },
|
|
4040
|
+
{ files: ['**/*.cjs'], profile: '07140cdc1b1a0b12' },
|
|
4041
|
+
{ files: ['**/*.cts'], profile: '773b143054fcdada' },
|
|
4042
|
+
{ files: ['**/*.jsx', '**/*.mjs'], profile: '07140cdc1b1a0b12' },
|
|
4043
|
+
{ files: ['**/*.mts', '**/*.tsx'], profile: '773b143054fcdada' },
|
|
4044
|
+
{ files: ['**/*.vue'], profile: '001e064fd42eb73f' },
|
|
4045
|
+
{ files: ['**/*.d.ts'], profile: '773b143054fcdada' },
|
|
4046
|
+
{ files: ['**/*.astro'], profile: '5691ab52a1a423f2' },
|
|
4047
|
+
{ files: ['**/*.svelte'], profile: 'f62054ab85dba3ca' },
|
|
4048
|
+
{ files: ['**/*.svelte.js'], profile: '07140cdc1b1a0b12' },
|
|
4049
|
+
{ files: ['**/*.svelte.ts'], profile: '773b143054fcdada' },
|
|
4138
4050
|
],
|
|
4139
4051
|
}
|