@eslinted/defaults 17.2.9 → 17.2.11

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