@eslinted/defaults 17.0.0-rc.0 → 17.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.
@@ -1,22 +1,22 @@
1
1
  export default {
2
2
  name: "enable",
3
3
  rules: {
4
- "@typescript-eslint/await-thenable": 2,
5
- "@typescript-eslint/ban-ts-comment": 2,
6
- "@typescript-eslint/ban-tslint-comment": 2,
7
- "@typescript-eslint/class-literal-property-style": 2,
8
- "@typescript-eslint/consistent-generic-constructors": 2,
9
- "@typescript-eslint/consistent-indexed-object-style": 2,
10
- "@typescript-eslint/consistent-type-assertions": [
4
+ "ts/await-thenable": 2,
5
+ "ts/ban-ts-comment": 2,
6
+ "ts/ban-tslint-comment": 2,
7
+ "ts/class-literal-property-style": 2,
8
+ "ts/consistent-generic-constructors": 2,
9
+ "ts/consistent-indexed-object-style": 2,
10
+ "ts/consistent-type-assertions": [
11
11
  2,
12
12
  {
13
13
  arrayLiteralTypeAssertions: "never",
14
14
  objectLiteralTypeAssertions: "never",
15
15
  },
16
16
  ],
17
- "@typescript-eslint/consistent-type-exports": 2,
18
- "@typescript-eslint/consistent-type-imports": 2,
19
- "@typescript-eslint/explicit-member-accessibility": [
17
+ "ts/consistent-type-exports": 2,
18
+ "ts/consistent-type-imports": 2,
19
+ "ts/explicit-member-accessibility": [
20
20
  2,
21
21
  {
22
22
  overrides: {
@@ -24,7 +24,7 @@ export default {
24
24
  },
25
25
  },
26
26
  ],
27
- "@typescript-eslint/member-ordering": [
27
+ "ts/member-ordering": [
28
28
  2,
29
29
  {
30
30
  "default": {
@@ -32,102 +32,102 @@ export default {
32
32
  },
33
33
  },
34
34
  ],
35
- "@typescript-eslint/method-signature-style": 2,
36
- "@typescript-eslint/no-array-delete": 2,
37
- "@typescript-eslint/no-base-to-string": 2,
38
- "@typescript-eslint/no-confusing-non-null-assertion": 2,
39
- "@typescript-eslint/no-confusing-void-expression": 2,
40
- "@typescript-eslint/no-duplicate-enum-values": 2,
41
- "@typescript-eslint/no-duplicate-type-constituents": 2,
42
- "@typescript-eslint/no-dynamic-delete": 2,
43
- "@typescript-eslint/no-empty-object-type": 2,
44
- "@typescript-eslint/no-explicit-any": [
35
+ "ts/method-signature-style": 2,
36
+ "ts/no-array-delete": 2,
37
+ "ts/no-base-to-string": 2,
38
+ "ts/no-confusing-non-null-assertion": 2,
39
+ "ts/no-confusing-void-expression": 2,
40
+ "ts/no-duplicate-enum-values": 2,
41
+ "ts/no-duplicate-type-constituents": 2,
42
+ "ts/no-dynamic-delete": 2,
43
+ "ts/no-empty-object-type": 2,
44
+ "ts/no-explicit-any": [
45
45
  2,
46
46
  {
47
47
  fixToUnknown: true,
48
48
  },
49
49
  ],
50
- "@typescript-eslint/no-extra-non-null-assertion": 2,
51
- "@typescript-eslint/no-extraneous-class": [
50
+ "ts/no-extra-non-null-assertion": 2,
51
+ "ts/no-extraneous-class": [
52
52
  2,
53
53
  {
54
54
  allowEmpty: true,
55
55
  },
56
56
  ],
57
- "@typescript-eslint/no-floating-promises": [
57
+ "ts/no-floating-promises": [
58
58
  2,
59
59
  {
60
60
  checkThenables: true,
61
61
  },
62
62
  ],
63
- "@typescript-eslint/no-for-in-array": 2,
64
- "@typescript-eslint/no-import-type-side-effects": 2,
65
- "@typescript-eslint/no-inferrable-types": 2,
66
- "@typescript-eslint/no-meaningless-void-operator": [
63
+ "ts/no-for-in-array": 2,
64
+ "ts/no-import-type-side-effects": 2,
65
+ "ts/no-inferrable-types": 2,
66
+ "ts/no-meaningless-void-operator": [
67
67
  2,
68
68
  {
69
69
  checkNever: true,
70
70
  },
71
71
  ],
72
- "@typescript-eslint/no-misused-new": 2,
73
- "@typescript-eslint/no-misused-promises": 2,
74
- "@typescript-eslint/no-misused-spread": 2,
75
- "@typescript-eslint/no-mixed-enums": 2,
76
- "@typescript-eslint/no-non-null-asserted-nullish-coalescing": 2,
77
- "@typescript-eslint/no-non-null-asserted-optional-chain": 2,
78
- "@typescript-eslint/no-redundant-type-constituents": 2,
79
- "@typescript-eslint/no-require-imports": 2,
80
- "@typescript-eslint/no-this-alias": 2,
81
- "@typescript-eslint/no-unnecessary-boolean-literal-compare": 2,
82
- "@typescript-eslint/no-unnecessary-condition": 2,
83
- "@typescript-eslint/no-unnecessary-parameter-property-assignment": 2,
84
- "@typescript-eslint/no-unnecessary-qualifier": 2,
85
- "@typescript-eslint/no-unnecessary-template-expression": 2,
86
- "@typescript-eslint/no-unnecessary-type-arguments": 2,
87
- "@typescript-eslint/no-unnecessary-type-assertion": 2,
88
- "@typescript-eslint/no-unnecessary-type-constraint": 2,
89
- "@typescript-eslint/no-unnecessary-type-conversion": 2,
90
- "@typescript-eslint/no-unnecessary-type-parameters": 2,
91
- "@typescript-eslint/no-unsafe-argument": 2,
92
- "@typescript-eslint/no-unsafe-assignment": 2,
93
- "@typescript-eslint/no-unsafe-call": 2,
94
- "@typescript-eslint/no-unsafe-declaration-merging": 2,
95
- "@typescript-eslint/no-unsafe-enum-comparison": 2,
96
- "@typescript-eslint/no-unsafe-function-type": 2,
97
- "@typescript-eslint/no-unsafe-member-access": [
72
+ "ts/no-misused-new": 2,
73
+ "ts/no-misused-promises": 2,
74
+ "ts/no-misused-spread": 2,
75
+ "ts/no-mixed-enums": 2,
76
+ "ts/no-non-null-asserted-nullish-coalescing": 2,
77
+ "ts/no-non-null-asserted-optional-chain": 2,
78
+ "ts/no-redundant-type-constituents": 2,
79
+ "ts/no-require-imports": 2,
80
+ "ts/no-this-alias": 2,
81
+ "ts/no-unnecessary-boolean-literal-compare": 2,
82
+ "ts/no-unnecessary-condition": 2,
83
+ "ts/no-unnecessary-parameter-property-assignment": 2,
84
+ "ts/no-unnecessary-qualifier": 2,
85
+ "ts/no-unnecessary-template-expression": 2,
86
+ "ts/no-unnecessary-type-arguments": 2,
87
+ "ts/no-unnecessary-type-assertion": 2,
88
+ "ts/no-unnecessary-type-constraint": 2,
89
+ "ts/no-unnecessary-type-conversion": 2,
90
+ "ts/no-unnecessary-type-parameters": 2,
91
+ "ts/no-unsafe-argument": 2,
92
+ "ts/no-unsafe-assignment": 2,
93
+ "ts/no-unsafe-call": 2,
94
+ "ts/no-unsafe-declaration-merging": 2,
95
+ "ts/no-unsafe-enum-comparison": 2,
96
+ "ts/no-unsafe-function-type": 2,
97
+ "ts/no-unsafe-member-access": [
98
98
  2,
99
99
  {
100
100
  allowOptionalChaining: true,
101
101
  },
102
102
  ],
103
- "@typescript-eslint/no-unsafe-return": 2,
104
- "@typescript-eslint/no-unsafe-unary-minus": 2,
105
- "@typescript-eslint/no-useless-empty-export": 2,
106
- "@typescript-eslint/no-wrapper-object-types": 2,
107
- "@typescript-eslint/parameter-properties": [
103
+ "ts/no-unsafe-return": 2,
104
+ "ts/no-unsafe-unary-minus": 2,
105
+ "ts/no-useless-empty-export": 2,
106
+ "ts/no-wrapper-object-types": 2,
107
+ "ts/parameter-properties": [
108
108
  2,
109
109
  {
110
110
  prefer: "parameter-property",
111
111
  },
112
112
  ],
113
- "@typescript-eslint/prefer-as-const": 2,
114
- "@typescript-eslint/prefer-find": 2,
115
- "@typescript-eslint/prefer-for-of": 2,
116
- "@typescript-eslint/prefer-function-type": 2,
117
- "@typescript-eslint/prefer-includes": 2,
118
- "@typescript-eslint/prefer-literal-enum-member": 2,
119
- "@typescript-eslint/prefer-namespace-keyword": 2,
120
- "@typescript-eslint/prefer-nullish-coalescing": 2,
121
- "@typescript-eslint/prefer-optional-chain": 2,
122
- "@typescript-eslint/prefer-readonly": 2,
123
- "@typescript-eslint/prefer-reduce-type-parameter": 2,
124
- "@typescript-eslint/prefer-regexp-exec": 2,
125
- "@typescript-eslint/prefer-return-this-type": 2,
126
- "@typescript-eslint/prefer-string-starts-ends-with": 2,
127
- "@typescript-eslint/promise-function-async": 2,
128
- "@typescript-eslint/related-getter-setter-pairs": 2,
129
- "@typescript-eslint/require-array-sort-compare": 2,
130
- "@typescript-eslint/restrict-plus-operands": [
113
+ "ts/prefer-as-const": 2,
114
+ "ts/prefer-find": 2,
115
+ "ts/prefer-for-of": 2,
116
+ "ts/prefer-function-type": 2,
117
+ "ts/prefer-includes": 2,
118
+ "ts/prefer-literal-enum-member": 2,
119
+ "ts/prefer-namespace-keyword": 2,
120
+ "ts/prefer-nullish-coalescing": 2,
121
+ "ts/prefer-optional-chain": 2,
122
+ "ts/prefer-readonly": 2,
123
+ "ts/prefer-reduce-type-parameter": 2,
124
+ "ts/prefer-regexp-exec": 2,
125
+ "ts/prefer-return-this-type": 2,
126
+ "ts/prefer-string-starts-ends-with": 2,
127
+ "ts/promise-function-async": 2,
128
+ "ts/related-getter-setter-pairs": 2,
129
+ "ts/require-array-sort-compare": 2,
130
+ "ts/restrict-plus-operands": [
131
131
  2,
132
132
  {
133
133
  allowAny: false,
@@ -137,7 +137,7 @@ export default {
137
137
  allowRegExp: false,
138
138
  },
139
139
  ],
140
- "@typescript-eslint/restrict-template-expressions": [
140
+ "ts/restrict-template-expressions": [
141
141
  2,
142
142
  {
143
143
  allowNullish: false,
@@ -145,18 +145,18 @@ export default {
145
145
  allowRegExp: false,
146
146
  },
147
147
  ],
148
- "@typescript-eslint/return-await": 2,
149
- "@typescript-eslint/strict-boolean-expressions": [
148
+ "ts/return-await": 2,
149
+ "ts/strict-boolean-expressions": [
150
150
  2,
151
151
  {
152
152
  allowNullableObject: false,
153
153
  allowString: false,
154
154
  },
155
155
  ],
156
- "@typescript-eslint/switch-exhaustiveness-check": 2,
157
- "@typescript-eslint/unbound-method": 2,
158
- "@typescript-eslint/unified-signatures": 2,
159
- "@typescript-eslint/use-unknown-in-catch-callback-variable": 2,
156
+ "ts/switch-exhaustiveness-check": 2,
157
+ "ts/unbound-method": 2,
158
+ "ts/unified-signatures": 2,
159
+ "ts/use-unknown-in-catch-callback-variable": 2,
160
160
  },
161
161
  };
162
162
  //# sourceMappingURL=ts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAGA,eAA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BAC3B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,kCAAkC,EAAE;;YAElC;gBACE,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,WAAW,EAAE,KAAK;aACnB;SACF;QACD,iBAAiB,GAAU;QAC3B,+BAA+B,EAAE;;YAE/B;gBACE,mBAAmB,EAAE,KAAK;gBAC1B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,gCAAgC,GAAU;QAG1C,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QACjC,2CAA2C,GAAU;KAC7C;CACX,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/defaults",
6
- "version": "17.0.0-rc.0",
6
+ "version": "17.0.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -4,9 +4,9 @@ import { State } from "./state";
4
4
  export default {
5
5
  name: "enable/stylistic",
6
6
  rules: {
7
- "@stylistic/array-bracket-newline": State.ON,
8
- "@stylistic/array-bracket-spacing": State.ON,
9
- "@stylistic/array-element-newline": [
7
+ "stylistic/array-bracket-newline": State.ON,
8
+ "stylistic/array-bracket-spacing": State.ON,
9
+ "stylistic/array-element-newline": [
10
10
  State.ON,
11
11
  {
12
12
  consistent: true,
@@ -14,44 +14,44 @@ export default {
14
14
  minItems: 3,
15
15
  } /* never | consistent | @default always | { ... } */,
16
16
  ],
17
- "@stylistic/arrow-parens": [
17
+ "stylistic/arrow-parens": [
18
18
  State.ON,
19
19
  "as-needed" /* as-needed | @default always */,
20
20
  ],
21
- "@stylistic/arrow-spacing": State.ON,
22
- "@stylistic/block-spacing": State.ON,
23
- "@stylistic/brace-style": [
21
+ "stylistic/arrow-spacing": State.ON,
22
+ "stylistic/block-spacing": State.ON,
23
+ "stylistic/brace-style": [
24
24
  State.ON,
25
25
  "stroustrup" /* stroustrup | allman | @default 1tbs */,
26
26
  {
27
27
  allowSingleLine: true /* @default false */,
28
28
  },
29
29
  ],
30
- "@stylistic/comma-dangle": [
30
+ "stylistic/comma-dangle": [
31
31
  State.ON,
32
32
  "always-multiline",
33
33
  ],
34
- "@stylistic/comma-spacing": State.ON,
35
- "@stylistic/comma-style": State.ON,
36
- "@stylistic/computed-property-spacing": State.ON,
37
- "@stylistic/curly-newline": State.ON,
38
- "@stylistic/dot-location": [
34
+ "stylistic/comma-spacing": State.ON,
35
+ "stylistic/comma-style": State.ON,
36
+ "stylistic/computed-property-spacing": State.ON,
37
+ "stylistic/curly-newline": State.ON,
38
+ "stylistic/dot-location": [
39
39
  State.ON,
40
40
  "property" /* property | @default object */,
41
41
  ],
42
- "@stylistic/eol-last": State.ON,
43
- "@stylistic/function-call-argument-newline": [
42
+ "stylistic/eol-last": State.ON,
43
+ "stylistic/function-call-argument-newline": [
44
44
  State.ON,
45
45
  "consistent" /* consistent | never | @default always */,
46
46
  ],
47
- "@stylistic/function-call-spacing": State.ON,
48
- "@stylistic/function-paren-newline": [
47
+ "stylistic/function-call-spacing": State.ON,
48
+ "stylistic/function-paren-newline": [
49
49
  State.ON,
50
50
  "multiline-arguments",
51
51
  ] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
52
- "@stylistic/generator-star-spacing": State.ON,
53
- "@stylistic/implicit-arrow-linebreak": State.ON,
54
- "@stylistic/indent": [
52
+ "stylistic/generator-star-spacing": State.ON,
53
+ "stylistic/implicit-arrow-linebreak": State.ON,
54
+ "stylistic/indent": [
55
55
  State.ON,
56
56
  2 /* tab | number | @default 4 */,
57
57
  {
@@ -65,15 +65,15 @@ export default {
65
65
  offsetTernaryExpressions: true,
66
66
  },
67
67
  ],
68
- "@stylistic/indent-binary-ops": [
68
+ "stylistic/indent-binary-ops": [
69
69
  State.ON,
70
- 2 /* MUST be same as `@stylistic/indent`[1] */,
70
+ 2 /* MUST be same as `stylistic/indent`[1] */,
71
71
  ],
72
- "@stylistic/key-spacing": State.ON,
73
- "@stylistic/keyword-spacing": State.ON,
74
- // "@stylistic/line-comment-position": State.OFF,
75
- // "@stylistic/lines-around-comment": State.OFF,
76
- "@stylistic/lines-between-class-members": [
72
+ "stylistic/key-spacing": State.ON,
73
+ "stylistic/keyword-spacing": State.ON,
74
+ // "stylistic/line-comment-position": State.OFF,
75
+ // "stylistic/lines-around-comment": State.OFF,
76
+ "stylistic/lines-between-class-members": [
77
77
  State.ON,
78
78
  {
79
79
  enforce: [
@@ -95,7 +95,7 @@ export default {
95
95
  ],
96
96
  },
97
97
  ],
98
- "@stylistic/max-len": [
98
+ "stylistic/max-len": [
99
99
  State.ON,
100
100
  {
101
101
  code: 300 /* @default 80 */,
@@ -108,22 +108,22 @@ export default {
108
108
  ignoreRegExpLiterals: true,
109
109
  },
110
110
  ],
111
- "@stylistic/max-statements-per-line": State.ON,
112
- "@stylistic/member-delimiter-style": State.ON,
113
- // "@stylistic/multiline-comment-style": State.OFF,
114
- "@stylistic/multiline-ternary": [
111
+ "stylistic/max-statements-per-line": State.ON,
112
+ "stylistic/member-delimiter-style": State.ON,
113
+ // "stylistic/multiline-comment-style": State.OFF,
114
+ "stylistic/multiline-ternary": [
115
115
  State.ON,
116
116
  "always-multiline" /* never | always-multiline | @default always */,
117
117
  ],
118
- // "@stylistic/new-parens": State.OFF,
119
- "@stylistic/newline-per-chained-call": State.ON,
120
- // "@stylistic/no-confusing-arrow": State.OFF,
121
- "@stylistic/no-extra-parens": State.ON,
122
- "@stylistic/no-extra-semi": State.ON,
123
- "@stylistic/no-floating-decimal": State.ON,
124
- // "@stylistic/no-mixed-operators": State.OFF,
125
- "@stylistic/no-mixed-spaces-and-tabs": State.ON,
126
- "@stylistic/no-multi-spaces": [
118
+ // "stylistic/new-parens": State.OFF,
119
+ "stylistic/newline-per-chained-call": State.ON,
120
+ // "stylistic/no-confusing-arrow": State.OFF,
121
+ "stylistic/no-extra-parens": State.ON,
122
+ "stylistic/no-extra-semi": State.ON,
123
+ "stylistic/no-floating-decimal": State.ON,
124
+ // "stylistic/no-mixed-operators": State.OFF,
125
+ "stylistic/no-mixed-spaces-and-tabs": State.ON,
126
+ "stylistic/no-multi-spaces": [
127
127
  State.ON,
128
128
  {
129
129
  exceptions: {
@@ -132,7 +132,7 @@ export default {
132
132
  },
133
133
  },
134
134
  ],
135
- "@stylistic/no-multiple-empty-lines": [
135
+ "stylistic/no-multiple-empty-lines": [
136
136
  State.ON,
137
137
  {
138
138
  max: 1 /* @default 2 */,
@@ -140,14 +140,14 @@ export default {
140
140
  maxEOF: 0 /* combine with `eol-last` to ensure file still ends with a single line-break (eol character) */,
141
141
  },
142
142
  ],
143
- "@stylistic/no-tabs": State.ON,
144
- "@stylistic/no-trailing-spaces": State.ON,
145
- "@stylistic/no-whitespace-before-property": State.ON,
146
- "@stylistic/nonblock-statement-body-position": [
143
+ "stylistic/no-tabs": State.ON,
144
+ "stylistic/no-trailing-spaces": State.ON,
145
+ "stylistic/no-whitespace-before-property": State.ON,
146
+ "stylistic/nonblock-statement-body-position": [
147
147
  State.ON,
148
148
  "below" /* any | below | @default beside */,
149
149
  ],
150
- "@stylistic/object-curly-newline": [
150
+ "stylistic/object-curly-newline": [
151
151
  State.ON,
152
152
  {
153
153
  consistent: true,
@@ -155,30 +155,30 @@ export default {
155
155
  minProperties: 3,
156
156
  },
157
157
  ],
158
- "@stylistic/object-curly-spacing": [
158
+ "stylistic/object-curly-spacing": [
159
159
  State.ON,
160
160
  "always" /* always | @default never */,
161
161
  {
162
162
  emptyObjects: "never",
163
163
  },
164
164
  ],
165
- "@stylistic/object-property-newline": State.ON,
166
- "@stylistic/one-var-declaration-per-line": [
165
+ "stylistic/object-property-newline": State.ON,
166
+ "stylistic/one-var-declaration-per-line": [
167
167
  State.ON,
168
168
  "always" /* always | @default initializations */,
169
169
  ],
170
- "@stylistic/operator-linebreak": [
170
+ "stylistic/operator-linebreak": [
171
171
  State.ON,
172
172
  "before" /* ignore | none | before | @default after */,
173
173
  ],
174
- "@stylistic/padded-blocks": [
174
+ "stylistic/padded-blocks": [
175
175
  State.ON,
176
176
  "never" /* never | start | end | @default always */,
177
177
  {
178
178
  allowSingleLineBlocks: true,
179
179
  },
180
180
  ],
181
- "@stylistic/padding-line-between-statements": [
181
+ "stylistic/padding-line-between-statements": [
182
182
  State.WARN,
183
183
  // #region *<
184
184
  {
@@ -378,14 +378,14 @@ export default {
378
378
  },
379
379
  // #endregion
380
380
  ],
381
- "@stylistic/quote-props": [
381
+ "stylistic/quote-props": [
382
382
  State.ON,
383
383
  "as-needed",
384
384
  {
385
385
  keywords: true,
386
386
  },
387
387
  ],
388
- "@stylistic/quotes": [
388
+ "stylistic/quotes": [
389
389
  State.ON,
390
390
  "double" /* @default double */,
391
391
  {
@@ -393,21 +393,21 @@ export default {
393
393
  allowTemplateLiterals: "always" /* always | avoidEscape | @default never */,
394
394
  },
395
395
  ],
396
- "@stylistic/rest-spread-spacing": State.ON,
397
- "@stylistic/semi": State.ON,
398
- "@stylistic/semi-spacing": State.ON,
399
- "@stylistic/semi-style": State.ON,
400
- "@stylistic/space-before-blocks": State.ON,
401
- "@stylistic/space-before-function-paren": [
396
+ "stylistic/rest-spread-spacing": State.ON,
397
+ "stylistic/semi": State.ON,
398
+ "stylistic/semi-spacing": State.ON,
399
+ "stylistic/semi-style": State.ON,
400
+ "stylistic/space-before-blocks": State.ON,
401
+ "stylistic/space-before-function-paren": [
402
402
  State.ON,
403
403
  {
404
404
  named: "never",
405
405
  },
406
406
  ],
407
- "@stylistic/space-in-parens": State.ON,
408
- "@stylistic/space-infix-ops": State.ON,
409
- "@stylistic/space-unary-ops": State.ON,
410
- "@stylistic/spaced-comment": [
407
+ "stylistic/space-in-parens": State.ON,
408
+ "stylistic/space-infix-ops": State.ON,
409
+ "stylistic/space-unary-ops": State.ON,
410
+ "stylistic/spaced-comment": [
411
411
  State.ON,
412
412
  "always",
413
413
  {
@@ -438,10 +438,10 @@ export default {
438
438
  },
439
439
  },
440
440
  ],
441
- "@stylistic/switch-colon-spacing": State.ON,
442
- "@stylistic/template-curly-spacing": State.ON,
443
- "@stylistic/template-tag-spacing": State.ON,
444
- "@stylistic/type-annotation-spacing": [
441
+ "stylistic/switch-colon-spacing": State.ON,
442
+ "stylistic/template-curly-spacing": State.ON,
443
+ "stylistic/template-tag-spacing": State.ON,
444
+ "stylistic/type-annotation-spacing": [
445
445
  State.ON,
446
446
  {
447
447
  before: true,
@@ -454,16 +454,16 @@ export default {
454
454
  },
455
455
  } /* non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
456
456
  ],
457
- "@stylistic/type-generic-spacing": State.ON,
458
- "@stylistic/type-named-tuple-spacing": State.ON,
459
- "@stylistic/wrap-iife": [
457
+ "stylistic/type-generic-spacing": State.ON,
458
+ "stylistic/type-named-tuple-spacing": State.ON,
459
+ "stylistic/wrap-iife": [
460
460
  State.ON,
461
461
  "inside",
462
462
  {
463
463
  functionPrototypeMethods: true,
464
464
  },
465
465
  ],
466
- "@stylistic/wrap-regex": State.ON,
467
- "@stylistic/yield-star-spacing": State.ON,
466
+ "stylistic/wrap-regex": State.ON,
467
+ "stylistic/yield-star-spacing": State.ON,
468
468
  } as const,
469
469
  };
@@ -4,19 +4,19 @@ import { State } from "../../state";
4
4
  export default {
5
5
  name: "jsonc/json/extend",
6
6
  rules: {
7
- // "jsonc/array-bracket-newline": State.OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match @stylistic/array-bracket-newline) */,
8
- "jsonc/array-bracket-spacing": State.ON /* MUST match @stylistic/array-bracket-spacing */,
7
+ // "jsonc/array-bracket-newline": State.OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match stylistic/array-bracket-newline) */,
8
+ "jsonc/array-bracket-spacing": State.ON /* MUST match stylistic/array-bracket-spacing */,
9
9
  "jsonc/array-element-newline": [
10
10
  State.ON,
11
11
  "consistent",
12
- ] /* WOULD match @stylistic/array-element-newline, but jsonc plugin has slightly different options */,
12
+ ] /* WOULD match stylistic/array-element-newline, but jsonc plugin has slightly different options */,
13
13
  "jsonc/comma-dangle": State.ON /* trailing commas are NOT allowed in JSState.ON */,
14
14
  "jsonc/comma-style": State.ON,
15
15
  "jsonc/indent": [
16
16
  State.ON,
17
17
  2,
18
18
  ],
19
- "jsonc/key-spacing": State.ON /* MUST match @stylistic/key-spacing */,
19
+ "jsonc/key-spacing": State.ON /* MUST match stylistic/key-spacing */,
20
20
  // "jsonc/no-dupe-keys": State.OFF /* ESLint: json/no-duplicate-keys */,
21
21
  "jsonc/no-floating-decimal": State.ON,
22
22
  "jsonc/no-irregular-whitespace": [
@@ -41,12 +41,12 @@ export default {
41
41
  multiline: true,
42
42
  minProperties: 2 /* instead of 3 in stylistic */,
43
43
  },
44
- ] /* @OVERRIDE @stylistic/object-curly-newline */,
44
+ ] /* @OVERRIDE stylistic/object-curly-newline */,
45
45
  "jsonc/object-curly-spacing": [
46
46
  State.ON,
47
47
  "always",
48
- ] /* MUST match @stylistic/object-curly-spacing (except unsupported 3rd options) */,
49
- "jsonc/object-property-newline": State.ON /* MUST match @stylistic/object-property-newline */,
48
+ ] /* MUST match stylistic/object-curly-spacing (except unsupported 3rd options) */,
49
+ "jsonc/object-property-newline": State.ON /* MUST match stylistic/object-property-newline */,
50
50
  "jsonc/quote-props": State.ON,
51
51
  "jsonc/quotes": State.ON,
52
52
  "jsonc/space-unary-ops": State.ON,
@@ -8,10 +8,10 @@ export default {
8
8
  "no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. INFO: also extended by svelte */,
9
9
  "no-self-assign": State.OFF /* Self assign is one of way to update reactive value in Svelte. */,
10
10
  "no-unused-vars": State.OFF /* breaks use of svelte global */,
11
- "@typescript-eslint/no-unused-vars": State.OFF /* TS: breaks use of svelte global */,
11
+ "ts/no-unused-vars": State.OFF /* TS: breaks use of svelte global */,
12
12
  "prefer-const": State.OFF /* svelte/prefer-const */,
13
13
  // My own
14
- "@stylistic/indent": State.OFF /* Conflicts with `svelte/indent` */,
15
- "@typescript-eslint/no-confusing-void-expression": State.OFF /* errors on render() */,
14
+ "stylistic/indent": State.OFF /* Conflicts with `svelte/indent` */,
15
+ "ts/no-confusing-void-expression": State.OFF /* errors on render() */,
16
16
  } as const,
17
17
  };
@@ -9,7 +9,7 @@ export default {
9
9
  State.ON,
10
10
  "both",
11
11
  ] /* same options: no-inner-declarations */,
12
- "@stylistic/no-trailing-spaces": State.OFF /* replaces `no-trailing-spaces` */,
13
- "svelte/no-trailing-spaces": State.ON /* same options: @stylistic/no-trailing-spaces */,
12
+ "stylistic/no-trailing-spaces": State.OFF /* replaces `no-trailing-spaces` */,
13
+ "svelte/no-trailing-spaces": State.ON /* same options: stylistic/no-trailing-spaces */,
14
14
  } as const,
15
15
  };
@@ -118,7 +118,7 @@ export default {
118
118
  "svelte/shorthand-attribute": State.ON,
119
119
  "svelte/shorthand-directive": State.ON,
120
120
  // "svelte/sort-attributes": State.OFF /* INVESTIGATE: */,
121
- "svelte/spaced-html-comment": State.ON /* INFO: does not have third object option (exceptions/markers), unlike @stylistic/spaced-comment */,
121
+ "svelte/spaced-html-comment": State.ON /* INFO: does not have third object option (exceptions/markers), unlike stylistic/spaced-comment */,
122
122
  // #endregion
123
123
 
124
124
  // #region SVELTE-KIT