@eslinted/defaults 20.4.0 → 21.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.
Files changed (100) hide show
  1. package/dist/index.d.ts +48 -67
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/rules/css/index.d.ts +1 -1
  4. package/dist/rules/css/index.d.ts.map +1 -1
  5. package/dist/rules/css/index.js +15 -17
  6. package/dist/rules/css/index.js.map +1 -1
  7. package/dist/rules/html/index.d.ts +1 -1
  8. package/dist/rules/html/index.d.ts.map +1 -1
  9. package/dist/rules/html/index.js +39 -41
  10. package/dist/rules/html/index.js.map +1 -1
  11. package/dist/rules/index.d.ts +48 -67
  12. package/dist/rules/index.d.ts.map +1 -1
  13. package/dist/rules/js.d.ts +219 -221
  14. package/dist/rules/js.d.ts.map +1 -1
  15. package/dist/rules/js.js +545 -7
  16. package/dist/rules/js.js.map +1 -1
  17. package/dist/rules/json/index.d.ts +15 -17
  18. package/dist/rules/json/index.d.ts.map +1 -1
  19. package/dist/rules/json/index.js +29 -7
  20. package/dist/rules/json/index.js.map +1 -1
  21. package/dist/rules/jsonc/index.d.ts +1 -1
  22. package/dist/rules/jsonc/index.d.ts.map +1 -1
  23. package/dist/rules/jsonc/index.js +8 -10
  24. package/dist/rules/jsonc/index.js.map +1 -1
  25. package/dist/rules/svelte/index.d.ts +75 -81
  26. package/dist/rules/svelte/index.d.ts.map +1 -1
  27. package/dist/rules/svelte/index.js +103 -9
  28. package/dist/rules/svelte/index.js.map +1 -1
  29. package/dist/rules/ts/index.d.ts +135 -140
  30. package/dist/rules/ts/index.d.ts.map +1 -1
  31. package/dist/rules/ts/index.js +235 -9
  32. package/dist/rules/ts/index.js.map +1 -1
  33. package/dist/rules/yml/index.d.ts +1 -1
  34. package/dist/rules/yml/index.d.ts.map +1 -1
  35. package/dist/rules/yml/index.js +30 -32
  36. package/dist/rules/yml/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/rules/css/index.ts +18 -20
  39. package/src/rules/html/index.ts +72 -74
  40. package/src/rules/js.ts +621 -6
  41. package/src/rules/json/index.ts +68 -6
  42. package/src/rules/jsonc/index.ts +9 -11
  43. package/src/rules/svelte/index.ts +163 -11
  44. package/src/rules/ts/index.ts +275 -9
  45. package/src/rules/yml/index.ts +52 -54
  46. package/dist/rules/js.eslint.d.ts +0 -289
  47. package/dist/rules/js.eslint.d.ts.map +0 -1
  48. package/dist/rules/js.eslint.js +0 -285
  49. package/dist/rules/js.eslint.js.map +0 -1
  50. package/dist/rules/js.stylistic.d.ts +0 -271
  51. package/dist/rules/js.stylistic.d.ts.map +0 -1
  52. package/dist/rules/js.stylistic.js +0 -265
  53. package/dist/rules/js.stylistic.js.map +0 -1
  54. package/dist/rules/json/json.d.ts +0 -9
  55. package/dist/rules/json/json.d.ts.map +0 -1
  56. package/dist/rules/json/json.js +0 -7
  57. package/dist/rules/json/json.js.map +0 -1
  58. package/dist/rules/json/jsonc.d.ts +0 -29
  59. package/dist/rules/json/jsonc.d.ts.map +0 -1
  60. package/dist/rules/json/jsonc.js +0 -27
  61. package/dist/rules/json/jsonc.js.map +0 -1
  62. package/dist/rules/svelte/disable.d.ts +0 -17
  63. package/dist/rules/svelte/disable.d.ts.map +0 -1
  64. package/dist/rules/svelte/disable.js +0 -15
  65. package/dist/rules/svelte/disable.js.map +0 -1
  66. package/dist/rules/svelte/extend.d.ts +0 -13
  67. package/dist/rules/svelte/extend.d.ts.map +0 -1
  68. package/dist/rules/svelte/extend.js +0 -11
  69. package/dist/rules/svelte/extend.js.map +0 -1
  70. package/dist/rules/svelte/html.d.ts +0 -14
  71. package/dist/rules/svelte/html.d.ts.map +0 -1
  72. package/dist/rules/svelte/html.js +0 -12
  73. package/dist/rules/svelte/html.js.map +0 -1
  74. package/dist/rules/svelte/svelte.d.ts +0 -94
  75. package/dist/rules/svelte/svelte.d.ts.map +0 -1
  76. package/dist/rules/svelte/svelte.js +0 -88
  77. package/dist/rules/svelte/svelte.js.map +0 -1
  78. package/dist/rules/ts/disable.d.ts +0 -26
  79. package/dist/rules/ts/disable.d.ts.map +0 -1
  80. package/dist/rules/ts/disable.js +0 -24
  81. package/dist/rules/ts/disable.js.map +0 -1
  82. package/dist/rules/ts/extend.d.ts +0 -38
  83. package/dist/rules/ts/extend.d.ts.map +0 -1
  84. package/dist/rules/ts/extend.js +0 -36
  85. package/dist/rules/ts/extend.js.map +0 -1
  86. package/dist/rules/ts/ts.d.ts +0 -187
  87. package/dist/rules/ts/ts.d.ts.map +0 -1
  88. package/dist/rules/ts/ts.js +0 -185
  89. package/dist/rules/ts/ts.js.map +0 -1
  90. package/src/rules/js.eslint.ts +0 -348
  91. package/src/rules/js.stylistic.ts +0 -279
  92. package/src/rules/json/json.ts +0 -13
  93. package/src/rules/json/jsonc.ts +0 -63
  94. package/src/rules/svelte/disable.ts +0 -21
  95. package/src/rules/svelte/extend.ts +0 -14
  96. package/src/rules/svelte/html.ts +0 -14
  97. package/src/rules/svelte/svelte.ts +0 -126
  98. package/src/rules/ts/disable.ts +0 -26
  99. package/src/rules/ts/extend.ts +0 -42
  100. package/src/rules/ts/ts.ts +0 -210
@@ -1,43 +1,72 @@
1
- declare const _default: ({
1
+ import { State } from "../state.js";
2
+ declare const _default: {
2
3
  rules: {
3
- readonly "consistent-return": import("../state.js").State.OFF;
4
- readonly "constructor-super": import("../state.js").State.OFF;
5
- readonly "getter-return": import("../state.js").State.OFF;
6
- readonly "no-class-assign": import("../state.js").State.OFF;
7
- readonly "no-const-assign": import("../state.js").State.OFF;
8
- readonly "no-dupe-args": import("../state.js").State.OFF;
9
- readonly "no-dupe-class-members": import("../state.js").State.OFF;
10
- readonly "no-dupe-keys": import("../state.js").State.OFF;
11
- readonly "no-func-assign": import("../state.js").State.OFF;
12
- readonly "no-import-assign": import("../state.js").State.OFF;
13
- readonly "no-invalid-this": import("../state.js").State.OFF;
14
- readonly "no-new-native-nonconstructor": import("../state.js").State.OFF;
15
- readonly "no-obj-calls": import("../state.js").State.OFF;
16
- readonly "no-redeclare": import("../state.js").State.OFF;
17
- readonly "no-setter-return": import("../state.js").State.OFF;
18
- readonly "no-this-before-super": import("../state.js").State.OFF;
19
- readonly "no-undef": import("../state.js").State.OFF;
20
- readonly "no-unreachable": import("../state.js").State.OFF;
21
- readonly "no-unsafe-negation": import("../state.js").State.OFF;
22
- };
23
- } | {
24
- rules: {
25
- readonly "ts/await-thenable": import("../state.js").State.ON;
26
- readonly "ts/ban-ts-comment": import("../state.js").State.WARN;
27
- readonly "ts/ban-tslint-comment": import("../state.js").State.WARN;
28
- readonly "ts/class-literal-property-style": import("../state.js").State.WARN;
29
- readonly "ts/consistent-generic-constructors": import("../state.js").State.WARN;
4
+ readonly "consistent-return": State.OFF;
5
+ readonly "constructor-super": State.OFF;
6
+ readonly "getter-return": State.OFF;
7
+ readonly "no-class-assign": State.OFF;
8
+ readonly "no-const-assign": State.OFF;
9
+ readonly "no-dupe-args": State.OFF;
10
+ readonly "no-dupe-class-members": State.OFF;
11
+ readonly "no-dupe-keys": State.OFF;
12
+ readonly "no-func-assign": State.OFF;
13
+ readonly "no-import-assign": State.OFF;
14
+ readonly "no-invalid-this": State.OFF;
15
+ readonly "no-new-native-nonconstructor": State.OFF;
16
+ readonly "no-obj-calls": State.OFF;
17
+ readonly "no-redeclare": State.OFF;
18
+ readonly "no-setter-return": State.OFF;
19
+ readonly "no-this-before-super": State.OFF;
20
+ readonly "no-undef": State.OFF;
21
+ readonly "no-unreachable": State.OFF;
22
+ readonly "no-unsafe-negation": State.OFF;
23
+ readonly "dot-notation": State.OFF;
24
+ readonly "ts/dot-notation": readonly [
25
+ State.WARN,
26
+ {
27
+ readonly allowPrivateClassPropertyAccess: true;
28
+ readonly allowProtectedClassPropertyAccess: true;
29
+ readonly allowIndexSignaturePropertyAccess: true;
30
+ }
31
+ ];
32
+ readonly "no-implied-eval": State.OFF;
33
+ readonly "ts/no-implied-eval": State.ON;
34
+ readonly "no-restricted-imports": State.OFF;
35
+ readonly "no-unused-vars": State.OFF;
36
+ readonly "ts/no-unused-vars": State.WARN;
37
+ readonly "no-throw-literal": State.OFF;
38
+ readonly "ts/only-throw-error": readonly [
39
+ State.WARN,
40
+ {
41
+ readonly allowThrowingAny: false;
42
+ }
43
+ ];
44
+ readonly "prefer-destructuring": State.OFF;
45
+ readonly "prefer-promise-reject-errors": State.OFF;
46
+ readonly "ts/prefer-promise-reject-errors": readonly [
47
+ State.WARN,
48
+ {
49
+ readonly allowThrowingUnknown: true;
50
+ }
51
+ ];
52
+ readonly "require-await": State.OFF;
53
+ readonly "ts/require-await": State.ON;
54
+ readonly "ts/await-thenable": State.ON;
55
+ readonly "ts/ban-ts-comment": State.WARN;
56
+ readonly "ts/ban-tslint-comment": State.WARN;
57
+ readonly "ts/class-literal-property-style": State.WARN;
58
+ readonly "ts/consistent-generic-constructors": State.WARN;
30
59
  readonly "ts/consistent-type-assertions": readonly [
31
- import("../state.js").State.WARN,
60
+ State.WARN,
32
61
  {
33
62
  readonly arrayLiteralTypeAssertions: "never";
34
63
  readonly objectLiteralTypeAssertions: "never";
35
64
  }
36
65
  ];
37
- readonly "ts/consistent-type-exports": import("../state.js").State.WARN;
38
- readonly "ts/consistent-type-imports": import("../state.js").State.WARN;
66
+ readonly "ts/consistent-type-exports": State.WARN;
67
+ readonly "ts/consistent-type-imports": State.WARN;
39
68
  readonly "ts/explicit-member-accessibility": readonly [
40
- import("../state.js").State.WARN,
69
+ State.WARN,
41
70
  {
42
71
  readonly overrides: {
43
72
  readonly constructors: "no-public";
@@ -45,107 +74,107 @@ declare const _default: ({
45
74
  }
46
75
  ];
47
76
  readonly "ts/member-ordering": readonly [
48
- import("../state.js").State.WARN,
77
+ State.WARN,
49
78
  {
50
79
  readonly default: {
51
80
  readonly optionalityOrder: "required-first";
52
81
  };
53
82
  }
54
83
  ];
55
- readonly "ts/method-signature-style": import("../state.js").State.WARN;
56
- readonly "ts/no-array-delete": import("../state.js").State.ON;
57
- readonly "ts/no-base-to-string": import("../state.js").State.ON;
58
- readonly "ts/no-confusing-non-null-assertion": import("../state.js").State.ON;
59
- readonly "ts/no-confusing-void-expression": import("../state.js").State.ON;
60
- readonly "ts/no-duplicate-enum-values": import("../state.js").State.ON;
61
- readonly "ts/no-duplicate-type-constituents": import("../state.js").State.ON;
62
- readonly "ts/no-dynamic-delete": import("../state.js").State.ON;
63
- readonly "ts/no-empty-object-type": import("../state.js").State.ON;
84
+ readonly "ts/method-signature-style": State.WARN;
85
+ readonly "ts/no-array-delete": State.ON;
86
+ readonly "ts/no-base-to-string": State.ON;
87
+ readonly "ts/no-confusing-non-null-assertion": State.ON;
88
+ readonly "ts/no-confusing-void-expression": State.ON;
89
+ readonly "ts/no-duplicate-enum-values": State.ON;
90
+ readonly "ts/no-duplicate-type-constituents": State.ON;
91
+ readonly "ts/no-dynamic-delete": State.ON;
92
+ readonly "ts/no-empty-object-type": State.ON;
64
93
  readonly "ts/no-explicit-any": readonly [
65
- import("../state.js").State.ON,
94
+ State.ON,
66
95
  {
67
96
  readonly fixToUnknown: true;
68
97
  }
69
98
  ];
70
- readonly "ts/no-extra-non-null-assertion": import("../state.js").State.ON;
99
+ readonly "ts/no-extra-non-null-assertion": State.ON;
71
100
  readonly "ts/no-extraneous-class": readonly [
72
- import("../state.js").State.ON,
101
+ State.ON,
73
102
  {
74
103
  readonly allowEmpty: true;
75
104
  }
76
105
  ];
77
106
  readonly "ts/no-floating-promises": readonly [
78
- import("../state.js").State.ON,
107
+ State.ON,
79
108
  {
80
109
  readonly checkThenables: true;
81
110
  }
82
111
  ];
83
- readonly "ts/no-for-in-array": import("../state.js").State.ON;
84
- readonly "ts/no-import-type-side-effects": import("../state.js").State.ON;
85
- readonly "ts/no-inferrable-types": import("../state.js").State.ON;
112
+ readonly "ts/no-for-in-array": State.ON;
113
+ readonly "ts/no-import-type-side-effects": State.ON;
114
+ readonly "ts/no-inferrable-types": State.ON;
86
115
  readonly "ts/no-meaningless-void-operator": readonly [
87
- import("../state.js").State.ON,
116
+ State.ON,
88
117
  {
89
118
  readonly checkNever: true;
90
119
  }
91
120
  ];
92
- readonly "ts/no-misused-new": import("../state.js").State.ON;
93
- readonly "ts/no-misused-promises": import("../state.js").State.ON;
94
- readonly "ts/no-misused-spread": import("../state.js").State.ON;
95
- readonly "ts/no-mixed-enums": import("../state.js").State.ON;
96
- readonly "ts/no-namespace": import("../state.js").State.ON;
97
- readonly "ts/no-non-null-asserted-nullish-coalescing": import("../state.js").State.ON;
98
- readonly "ts/no-non-null-asserted-optional-chain": import("../state.js").State.ON;
99
- readonly "ts/no-redundant-type-constituents": import("../state.js").State.ON;
100
- readonly "ts/no-require-imports": import("../state.js").State.ON;
101
- readonly "ts/no-this-alias": import("../state.js").State.ON;
102
- readonly "ts/no-unnecessary-boolean-literal-compare": import("../state.js").State.ON;
103
- readonly "ts/no-unnecessary-condition": import("../state.js").State.ON;
104
- readonly "ts/no-unnecessary-parameter-property-assignment": import("../state.js").State.ON;
105
- readonly "ts/no-unnecessary-qualifier": import("../state.js").State.ON;
106
- readonly "ts/no-unnecessary-template-expression": import("../state.js").State.ON;
107
- readonly "ts/no-unnecessary-type-arguments": import("../state.js").State.ON;
108
- readonly "ts/no-unnecessary-type-assertion": import("../state.js").State.ON;
109
- readonly "ts/no-unnecessary-type-constraint": import("../state.js").State.ON;
110
- readonly "ts/no-unnecessary-type-conversion": import("../state.js").State.ON;
111
- readonly "ts/no-unsafe-argument": import("../state.js").State.ON;
112
- readonly "ts/no-unsafe-assignment": import("../state.js").State.ON;
113
- readonly "ts/no-unsafe-call": import("../state.js").State.ON;
114
- readonly "ts/no-unsafe-declaration-merging": import("../state.js").State.ON;
115
- readonly "ts/no-unsafe-function-type": import("../state.js").State.ON;
121
+ readonly "ts/no-misused-new": State.ON;
122
+ readonly "ts/no-misused-promises": State.ON;
123
+ readonly "ts/no-misused-spread": State.ON;
124
+ readonly "ts/no-mixed-enums": State.ON;
125
+ readonly "ts/no-namespace": State.ON;
126
+ readonly "ts/no-non-null-asserted-nullish-coalescing": State.ON;
127
+ readonly "ts/no-non-null-asserted-optional-chain": State.ON;
128
+ readonly "ts/no-redundant-type-constituents": State.ON;
129
+ readonly "ts/no-require-imports": State.ON;
130
+ readonly "ts/no-this-alias": State.ON;
131
+ readonly "ts/no-unnecessary-boolean-literal-compare": State.ON;
132
+ readonly "ts/no-unnecessary-condition": State.ON;
133
+ readonly "ts/no-unnecessary-parameter-property-assignment": State.ON;
134
+ readonly "ts/no-unnecessary-qualifier": State.ON;
135
+ readonly "ts/no-unnecessary-template-expression": State.ON;
136
+ readonly "ts/no-unnecessary-type-arguments": State.ON;
137
+ readonly "ts/no-unnecessary-type-assertion": State.ON;
138
+ readonly "ts/no-unnecessary-type-constraint": State.ON;
139
+ readonly "ts/no-unnecessary-type-conversion": State.ON;
140
+ readonly "ts/no-unsafe-argument": State.ON;
141
+ readonly "ts/no-unsafe-assignment": State.ON;
142
+ readonly "ts/no-unsafe-call": State.ON;
143
+ readonly "ts/no-unsafe-declaration-merging": State.ON;
144
+ readonly "ts/no-unsafe-function-type": State.ON;
116
145
  readonly "ts/no-unsafe-member-access": readonly [
117
- import("../state.js").State.ON,
146
+ State.ON,
118
147
  {
119
148
  readonly allowOptionalChaining: true;
120
149
  }
121
150
  ];
122
- readonly "ts/no-unsafe-return": import("../state.js").State.ON;
123
- readonly "ts/no-unsafe-unary-minus": import("../state.js").State.ON;
124
- readonly "ts/no-unused-private-class-members": import("../state.js").State.WARN;
125
- readonly "ts/no-useless-default-assignment": import("../state.js").State.WARN;
126
- readonly "ts/no-useless-empty-export": import("../state.js").State.WARN;
127
- readonly "ts/no-wrapper-object-types": import("../state.js").State.ON;
151
+ readonly "ts/no-unsafe-return": State.ON;
152
+ readonly "ts/no-unsafe-unary-minus": State.ON;
153
+ readonly "ts/no-unused-private-class-members": State.WARN;
154
+ readonly "ts/no-useless-default-assignment": State.WARN;
155
+ readonly "ts/no-useless-empty-export": State.WARN;
156
+ readonly "ts/no-wrapper-object-types": State.ON;
128
157
  readonly "ts/parameter-properties": readonly [
129
- import("../state.js").State.WARN,
158
+ State.WARN,
130
159
  {
131
160
  readonly prefer: "parameter-property";
132
161
  }
133
162
  ];
134
- readonly "ts/prefer-as-const": import("../state.js").State.WARN;
135
- readonly "ts/prefer-find": import("../state.js").State.WARN;
136
- readonly "ts/prefer-for-of": import("../state.js").State.WARN;
137
- readonly "ts/prefer-function-type": import("../state.js").State.WARN;
138
- readonly "ts/prefer-includes": import("../state.js").State.WARN;
139
- readonly "ts/prefer-namespace-keyword": import("../state.js").State.WARN;
163
+ readonly "ts/prefer-as-const": State.WARN;
164
+ readonly "ts/prefer-find": State.WARN;
165
+ readonly "ts/prefer-for-of": State.WARN;
166
+ readonly "ts/prefer-function-type": State.WARN;
167
+ readonly "ts/prefer-includes": State.WARN;
168
+ readonly "ts/prefer-namespace-keyword": State.WARN;
140
169
  readonly "ts/prefer-nullish-coalescing": readonly [
141
- import("../state.js").State.WARN,
170
+ State.WARN,
142
171
  {
143
172
  readonly ignoreMixedLogicalExpressions: true;
144
173
  readonly ignorePrimitives: true;
145
174
  }
146
175
  ];
147
176
  readonly "ts/prefer-optional-chain": readonly [
148
- import("../state.js").State.WARN,
177
+ State.WARN,
149
178
  {
150
179
  readonly checkBigInt: false;
151
180
  readonly checkBoolean: false;
@@ -153,15 +182,15 @@ declare const _default: ({
153
182
  readonly checkString: false;
154
183
  }
155
184
  ];
156
- readonly "ts/prefer-readonly": import("../state.js").State.WARN;
157
- readonly "ts/prefer-reduce-type-parameter": import("../state.js").State.WARN;
158
- readonly "ts/prefer-regexp-exec": import("../state.js").State.WARN;
159
- readonly "ts/prefer-return-this-type": import("../state.js").State.WARN;
160
- readonly "ts/prefer-string-starts-ends-with": import("../state.js").State.WARN;
161
- readonly "ts/promise-function-async": import("../state.js").State.ON;
162
- readonly "ts/require-array-sort-compare": import("../state.js").State.WARN;
185
+ readonly "ts/prefer-readonly": State.WARN;
186
+ readonly "ts/prefer-reduce-type-parameter": State.WARN;
187
+ readonly "ts/prefer-regexp-exec": State.WARN;
188
+ readonly "ts/prefer-return-this-type": State.WARN;
189
+ readonly "ts/prefer-string-starts-ends-with": State.WARN;
190
+ readonly "ts/promise-function-async": State.ON;
191
+ readonly "ts/require-array-sort-compare": State.WARN;
163
192
  readonly "ts/restrict-plus-operands": readonly [
164
- import("../state.js").State.ON,
193
+ State.ON,
165
194
  {
166
195
  readonly allowAny: false;
167
196
  readonly allowBoolean: false;
@@ -170,16 +199,16 @@ declare const _default: ({
170
199
  }
171
200
  ];
172
201
  readonly "ts/restrict-template-expressions": readonly [
173
- import("../state.js").State.ON,
202
+ State.ON,
174
203
  {
175
204
  readonly allowAny: false;
176
205
  readonly allowNullish: false;
177
206
  readonly allowRegExp: false;
178
207
  }
179
208
  ];
180
- readonly "ts/return-await": import("../state.js").State.ON;
209
+ readonly "ts/return-await": State.ON;
181
210
  readonly "ts/strict-boolean-expressions": readonly [
182
- import("../state.js").State.ON,
211
+ State.ON,
183
212
  {
184
213
  readonly allowNullableBoolean: true;
185
214
  readonly allowNullableEnum: true;
@@ -187,56 +216,22 @@ declare const _default: ({
187
216
  readonly allowNullableString: true;
188
217
  }
189
218
  ];
190
- readonly "ts/strict-void-return": import("../state.js").State.ON;
219
+ readonly "ts/strict-void-return": State.ON;
191
220
  readonly "ts/switch-exhaustiveness-check": readonly [
192
- import("../state.js").State.ON,
221
+ State.ON,
193
222
  {
194
223
  readonly requireDefaultForNonUnion: true;
195
224
  readonly considerDefaultExhaustiveForUnions: true;
196
225
  }
197
226
  ];
198
227
  readonly "ts/unbound-method": readonly [
199
- import("../state.js").State.ON,
228
+ State.ON,
200
229
  {
201
230
  readonly ignoreStatic: true;
202
231
  }
203
232
  ];
204
- readonly "ts/use-unknown-in-catch-callback-variable": import("../state.js").State.ON;
205
- };
206
- } | {
207
- rules: {
208
- readonly "dot-notation": import("../state.js").State.OFF;
209
- readonly "ts/dot-notation": readonly [
210
- import("../state.js").State.WARN,
211
- {
212
- readonly allowPrivateClassPropertyAccess: true;
213
- readonly allowProtectedClassPropertyAccess: true;
214
- readonly allowIndexSignaturePropertyAccess: true;
215
- }
216
- ];
217
- readonly "no-implied-eval": import("../state.js").State.OFF;
218
- readonly "ts/no-implied-eval": import("../state.js").State.ON;
219
- readonly "no-restricted-imports": import("../state.js").State.OFF;
220
- readonly "no-unused-vars": import("../state.js").State.OFF;
221
- readonly "ts/no-unused-vars": import("../state.js").State.WARN;
222
- readonly "no-throw-literal": import("../state.js").State.OFF;
223
- readonly "ts/only-throw-error": readonly [
224
- import("../state.js").State.WARN,
225
- {
226
- readonly allowThrowingAny: false;
227
- }
228
- ];
229
- readonly "prefer-destructuring": import("../state.js").State.OFF;
230
- readonly "prefer-promise-reject-errors": import("../state.js").State.OFF;
231
- readonly "ts/prefer-promise-reject-errors": readonly [
232
- import("../state.js").State.WARN,
233
- {
234
- readonly allowThrowingUnknown: true;
235
- }
236
- ];
237
- readonly "require-await": import("../state.js").State.OFF;
238
- readonly "ts/require-await": import("../state.js").State.ON;
233
+ readonly "ts/use-unknown-in-catch-callback-variable": State.ON;
239
234
  };
240
- })[];
235
+ };
241
236
  export default _default;
242
237
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,wBAgRE"}
@@ -1,9 +1,235 @@
1
- import disable from "./disable.js";
2
- import ts from "./ts.js";
3
- import extend from "./extend.js";
4
- export default [
5
- disable,
6
- ts,
7
- extend,
8
- ];
9
- //# sourceMappingURL=index.js.map
1
+ export default {
2
+ rules: {
3
+ "consistent-return": 0,
4
+ "constructor-super": 0,
5
+ "getter-return": 0,
6
+ "no-class-assign": 0,
7
+ "no-const-assign": 0,
8
+ "no-dupe-args": 0,
9
+ "no-dupe-class-members": 0,
10
+ "no-dupe-keys": 0,
11
+ "no-func-assign": 0,
12
+ "no-import-assign": 0,
13
+ "no-invalid-this": 0,
14
+ "no-new-native-nonconstructor": 0,
15
+ "no-obj-calls": 0,
16
+ "no-redeclare": 0,
17
+ "no-setter-return": 0,
18
+ "no-this-before-super": 0,
19
+ "no-undef": 0,
20
+ "no-unreachable": 0,
21
+ "no-unsafe-negation": 0,
22
+ "dot-notation": 0,
23
+ "ts/dot-notation": [
24
+ 1,
25
+ {
26
+ allowPrivateClassPropertyAccess: true,
27
+ allowProtectedClassPropertyAccess: true,
28
+ allowIndexSignaturePropertyAccess: true,
29
+ },
30
+ ],
31
+ "no-implied-eval": 0,
32
+ "ts/no-implied-eval": 2,
33
+ "no-restricted-imports": 0,
34
+ "no-unused-vars": 0,
35
+ "ts/no-unused-vars": 1,
36
+ "no-throw-literal": 0,
37
+ "ts/only-throw-error": [
38
+ 1,
39
+ {
40
+ allowThrowingAny: false,
41
+ },
42
+ ],
43
+ "prefer-destructuring": 0,
44
+ "prefer-promise-reject-errors": 0,
45
+ "ts/prefer-promise-reject-errors": [
46
+ 1,
47
+ {
48
+ allowThrowingUnknown: true,
49
+ },
50
+ ],
51
+ "require-await": 0,
52
+ "ts/require-await": 2,
53
+ "ts/await-thenable": 2,
54
+ "ts/ban-ts-comment": 1,
55
+ "ts/ban-tslint-comment": 1,
56
+ "ts/class-literal-property-style": 1,
57
+ "ts/consistent-generic-constructors": 1,
58
+ "ts/consistent-type-assertions": [
59
+ 1,
60
+ {
61
+ arrayLiteralTypeAssertions: "never",
62
+ objectLiteralTypeAssertions: "never",
63
+ },
64
+ ],
65
+ "ts/consistent-type-exports": 1,
66
+ "ts/consistent-type-imports": 1,
67
+ "ts/explicit-member-accessibility": [
68
+ 1,
69
+ {
70
+ overrides: {
71
+ constructors: "no-public",
72
+ },
73
+ },
74
+ ],
75
+ "ts/member-ordering": [
76
+ 1,
77
+ {
78
+ "default": {
79
+ optionalityOrder: "required-first",
80
+ },
81
+ },
82
+ ],
83
+ "ts/method-signature-style": 1,
84
+ "ts/no-array-delete": 2,
85
+ "ts/no-base-to-string": 2,
86
+ "ts/no-confusing-non-null-assertion": 2,
87
+ "ts/no-confusing-void-expression": 2,
88
+ "ts/no-duplicate-enum-values": 2,
89
+ "ts/no-duplicate-type-constituents": 2,
90
+ "ts/no-dynamic-delete": 2,
91
+ "ts/no-empty-object-type": 2,
92
+ "ts/no-explicit-any": [
93
+ 2,
94
+ {
95
+ fixToUnknown: true,
96
+ },
97
+ ],
98
+ "ts/no-extra-non-null-assertion": 2,
99
+ "ts/no-extraneous-class": [
100
+ 2,
101
+ {
102
+ allowEmpty: true,
103
+ },
104
+ ],
105
+ "ts/no-floating-promises": [
106
+ 2,
107
+ {
108
+ checkThenables: true,
109
+ },
110
+ ],
111
+ "ts/no-for-in-array": 2,
112
+ "ts/no-import-type-side-effects": 2,
113
+ "ts/no-inferrable-types": 2,
114
+ "ts/no-meaningless-void-operator": [
115
+ 2,
116
+ {
117
+ checkNever: true,
118
+ },
119
+ ],
120
+ "ts/no-misused-new": 2,
121
+ "ts/no-misused-promises": 2,
122
+ "ts/no-misused-spread": 2,
123
+ "ts/no-mixed-enums": 2,
124
+ "ts/no-namespace": 2,
125
+ "ts/no-non-null-asserted-nullish-coalescing": 2,
126
+ "ts/no-non-null-asserted-optional-chain": 2,
127
+ "ts/no-redundant-type-constituents": 2,
128
+ "ts/no-require-imports": 2,
129
+ "ts/no-this-alias": 2,
130
+ "ts/no-unnecessary-boolean-literal-compare": 2,
131
+ "ts/no-unnecessary-condition": 2,
132
+ "ts/no-unnecessary-parameter-property-assignment": 2,
133
+ "ts/no-unnecessary-qualifier": 2,
134
+ "ts/no-unnecessary-template-expression": 2,
135
+ "ts/no-unnecessary-type-arguments": 2,
136
+ "ts/no-unnecessary-type-assertion": 2,
137
+ "ts/no-unnecessary-type-constraint": 2,
138
+ "ts/no-unnecessary-type-conversion": 2,
139
+ "ts/no-unsafe-argument": 2,
140
+ "ts/no-unsafe-assignment": 2,
141
+ "ts/no-unsafe-call": 2,
142
+ "ts/no-unsafe-declaration-merging": 2,
143
+ "ts/no-unsafe-function-type": 2,
144
+ "ts/no-unsafe-member-access": [
145
+ 2,
146
+ {
147
+ allowOptionalChaining: true,
148
+ },
149
+ ],
150
+ "ts/no-unsafe-return": 2,
151
+ "ts/no-unsafe-unary-minus": 2,
152
+ "ts/no-unused-private-class-members": 1,
153
+ "ts/no-useless-default-assignment": 1,
154
+ "ts/no-useless-empty-export": 1,
155
+ "ts/no-wrapper-object-types": 2,
156
+ "ts/parameter-properties": [
157
+ 1,
158
+ {
159
+ prefer: "parameter-property",
160
+ },
161
+ ],
162
+ "ts/prefer-as-const": 1,
163
+ "ts/prefer-find": 1,
164
+ "ts/prefer-for-of": 1,
165
+ "ts/prefer-function-type": 1,
166
+ "ts/prefer-includes": 1,
167
+ "ts/prefer-namespace-keyword": 1,
168
+ "ts/prefer-nullish-coalescing": [
169
+ 1,
170
+ {
171
+ ignoreMixedLogicalExpressions: true,
172
+ ignorePrimitives: true,
173
+ },
174
+ ],
175
+ "ts/prefer-optional-chain": [
176
+ 1,
177
+ {
178
+ checkBigInt: false,
179
+ checkBoolean: false,
180
+ checkNumber: false,
181
+ checkString: false,
182
+ },
183
+ ],
184
+ "ts/prefer-readonly": 1,
185
+ "ts/prefer-reduce-type-parameter": 1,
186
+ "ts/prefer-regexp-exec": 1,
187
+ "ts/prefer-return-this-type": 1,
188
+ "ts/prefer-string-starts-ends-with": 1,
189
+ "ts/promise-function-async": 2,
190
+ "ts/require-array-sort-compare": 1,
191
+ "ts/restrict-plus-operands": [
192
+ 2,
193
+ {
194
+ allowAny: false,
195
+ allowBoolean: false,
196
+ allowNullish: false,
197
+ allowRegExp: false,
198
+ },
199
+ ],
200
+ "ts/restrict-template-expressions": [
201
+ 2,
202
+ {
203
+ allowAny: false,
204
+ allowNullish: false,
205
+ allowRegExp: false,
206
+ },
207
+ ],
208
+ "ts/return-await": 2,
209
+ "ts/strict-boolean-expressions": [
210
+ 2,
211
+ {
212
+ allowNullableBoolean: true,
213
+ allowNullableEnum: true,
214
+ allowNullableNumber: true,
215
+ allowNullableString: true,
216
+ },
217
+ ],
218
+ "ts/strict-void-return": 2,
219
+ "ts/switch-exhaustiveness-check": [
220
+ 2,
221
+ {
222
+ requireDefaultForNonUnion: true,
223
+ considerDefaultExhaustiveForUnions: true,
224
+ },
225
+ ],
226
+ "ts/unbound-method": [
227
+ 2,
228
+ {
229
+ ignoreStatic: true,
230
+ },
231
+ ],
232
+ "ts/use-unknown-in-catch-callback-variable": 2,
233
+ },
234
+ };
235
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe;IACb,OAAO;IACP,EAAE;IACF,MAAM;CACP,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"AAEA,eAAe;IACb,KAAK,EAAE;QAG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;KAE7C;CACX,CAAC"}
@@ -31,6 +31,6 @@ declare const _default: {
31
31
  }
32
32
  ];
33
33
  };
34
- }[];
34
+ };
35
35
  export default _default;
36
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;AAGjC,wBAsDE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;AAGjC,wBAoDE"}