@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.
- package/dist/index.d.ts +1139 -792
- package/dist/rules/css/index.d.ts +2 -1
- package/dist/rules/css/index.d.ts.map +1 -1
- package/dist/rules/css/index.js.map +1 -1
- package/dist/rules/disable.d.ts +2 -1
- package/dist/rules/disable.d.ts.map +1 -1
- package/dist/rules/disable.js.map +1 -1
- package/dist/rules/html/index.d.ts +37 -17
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/html/index.js.map +1 -1
- package/dist/rules/index.d.ts +1139 -792
- package/dist/rules/js.d.ts +560 -357
- package/dist/rules/js.eslint.d.ts +184 -90
- package/dist/rules/js.eslint.d.ts.map +1 -1
- package/dist/rules/js.eslint.js.map +1 -1
- package/dist/rules/js.stylistic.d.ts +219 -108
- package/dist/rules/js.stylistic.d.ts.map +1 -1
- package/dist/rules/js.stylistic.js.map +1 -1
- package/dist/rules/json/index.d.ts +68 -53
- package/dist/rules/json/json.d.ts +2 -1
- package/dist/rules/json/json.d.ts.map +1 -1
- package/dist/rules/json/json.js.map +1 -1
- package/dist/rules/json/plugin/extend.d.ts +32 -16
- package/dist/rules/json/plugin/extend.d.ts.map +1 -1
- package/dist/rules/json/plugin/extend.js.map +1 -1
- package/dist/rules/json/plugin/index.d.ts +2 -1
- package/dist/rules/json/plugin/index.d.ts.map +1 -1
- package/dist/rules/json/plugin/index.js.map +1 -1
- package/dist/rules/jsonc/index.d.ts +2 -1
- package/dist/rules/jsonc/index.d.ts.map +1 -1
- package/dist/rules/jsonc/index.js.map +1 -1
- package/dist/rules/jsoncc/index.d.ts +6 -2
- package/dist/rules/jsoncc/index.d.ts.map +1 -1
- package/dist/rules/jsoncc/index.js.map +1 -1
- package/dist/rules/mocha/chai/expect.d.ts +2 -1
- package/dist/rules/mocha/chai/expect.d.ts.map +1 -1
- package/dist/rules/mocha/chai/expect.js.map +1 -1
- package/dist/rules/mocha/chai/index.d.ts +9 -5
- package/dist/rules/mocha/chai/index.d.ts.map +1 -1
- package/dist/rules/mocha/chai/index.js.map +1 -1
- package/dist/rules/mocha/index.d.ts +29 -26
- package/dist/rules/mocha/mocha.d.ts +2 -1
- package/dist/rules/mocha/mocha.d.ts.map +1 -1
- package/dist/rules/mocha/mocha.js.map +1 -1
- package/dist/rules/state.d.ts +6 -0
- package/dist/rules/state.d.ts.map +1 -0
- package/dist/rules/state.js +2 -0
- package/dist/rules/state.js.map +1 -0
- package/dist/rules/svelte/disable.d.ts +2 -1
- package/dist/rules/svelte/disable.d.ts.map +1 -1
- package/dist/rules/svelte/disable.js.map +1 -1
- package/dist/rules/svelte/extend.d.ts +6 -2
- package/dist/rules/svelte/extend.d.ts.map +1 -1
- package/dist/rules/svelte/extend.js.map +1 -1
- package/dist/rules/svelte/index.d.ts +121 -93
- package/dist/rules/svelte/svelte.d.ts +49 -23
- package/dist/rules/svelte/svelte.d.ts.map +1 -1
- package/dist/rules/svelte/svelte.js.map +1 -1
- package/dist/rules/ts/disable.d.ts +2 -1
- package/dist/rules/ts/disable.d.ts.map +1 -1
- package/dist/rules/ts/disable.js.map +1 -1
- package/dist/rules/ts/extend.d.ts +31 -18
- package/dist/rules/ts/extend.d.ts.map +1 -1
- package/dist/rules/ts/extend.js.map +1 -1
- package/dist/rules/ts/index.d.ts +220 -169
- package/dist/rules/ts/ts.d.ts +93 -53
- package/dist/rules/ts/ts.d.ts.map +1 -1
- package/dist/rules/ts/ts.js.map +1 -1
- package/dist/rules/yml/extend.d.ts +44 -18
- package/dist/rules/yml/extend.d.ts.map +1 -1
- package/dist/rules/yml/extend.js.map +1 -1
- package/dist/rules/yml/index.d.ts +58 -33
- package/dist/rules/yml/yml.d.ts +2 -1
- package/dist/rules/yml/yml.d.ts.map +1 -1
- package/dist/rules/yml/yml.js.map +1 -1
- package/package.json +1 -1
- package/src/_pattern/tsconfig.json +3 -3
- package/src/rules/css/index.ts +2 -0
- package/src/rules/disable.ts +2 -0
- package/src/rules/html/index.ts +2 -0
- package/src/rules/js.eslint.ts +2 -0
- package/src/rules/js.stylistic.ts +2 -0
- package/src/rules/json/json.ts +2 -0
- package/src/rules/json/plugin/extend.ts +2 -0
- package/src/rules/json/plugin/index.ts +2 -0
- package/src/rules/jsonc/index.ts +2 -0
- package/src/rules/jsoncc/index.ts +2 -0
- package/src/rules/mocha/chai/expect.ts +2 -0
- package/src/rules/mocha/chai/index.ts +2 -0
- package/src/rules/mocha/mocha.ts +2 -0
- package/src/rules/state.ts +5 -0
- package/src/rules/svelte/disable.ts +2 -0
- package/src/rules/svelte/extend.ts +2 -0
- package/src/rules/svelte/svelte.ts +2 -0
- package/src/rules/ts/disable.ts +2 -0
- package/src/rules/ts/extend.ts +2 -0
- package/src/rules/ts/ts.ts +2 -0
- package/src/rules/tsconfig.json +0 -1
- package/src/rules/yml/extend.ts +2 -0
- package/src/rules/yml/yml.ts +2 -0
- package/src/tsconfig.json +0 -1
- package/typings/index.d.ts +0 -5
package/dist/rules/ts/index.d.ts
CHANGED
|
@@ -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 [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
readonly "ts/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
readonly "ts/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
readonly "ts/no-
|
|
59
|
-
readonly "ts/no-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
readonly "ts/no-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
readonly "ts/no-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
readonly "ts/no-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
readonly "ts/no-
|
|
84
|
-
readonly "ts/no-
|
|
85
|
-
readonly "ts/no-
|
|
86
|
-
readonly "ts/no-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
readonly "ts/no-
|
|
93
|
-
readonly "ts/no-
|
|
94
|
-
readonly "ts/no-
|
|
95
|
-
readonly "ts/no-
|
|
96
|
-
readonly "ts/no-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
readonly "ts/no-
|
|
100
|
-
readonly "ts/no-
|
|
101
|
-
readonly "ts/no-
|
|
102
|
-
readonly "ts/no-
|
|
103
|
-
readonly "ts/parameter-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
readonly "ts/
|
|
107
|
-
readonly "ts/
|
|
108
|
-
readonly "ts/
|
|
109
|
-
readonly "ts/
|
|
110
|
-
readonly "ts/
|
|
111
|
-
readonly "ts/
|
|
112
|
-
readonly "ts/
|
|
113
|
-
readonly "ts/
|
|
114
|
-
readonly "ts/
|
|
115
|
-
readonly "ts/
|
|
116
|
-
readonly "ts/
|
|
117
|
-
readonly "ts/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
readonly "ts/
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
readonly "ts/
|
|
136
|
-
readonly "ts/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
readonly "ts/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
readonly "ts/
|
|
145
|
-
readonly "ts/
|
|
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 [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
readonly "no-
|
|
159
|
-
readonly "ts/no-
|
|
160
|
-
readonly "no-
|
|
161
|
-
readonly "
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
readonly "
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
readonly
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
readonly "prefer-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
package/dist/rules/ts/ts.d.ts
CHANGED
|
@@ -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 [
|
|
9
|
-
|
|
10
|
-
|
|
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 [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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 [
|
|
34
|
-
|
|
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 [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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 [
|
|
47
|
-
|
|
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 [
|
|
75
|
-
|
|
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 [
|
|
82
|
-
|
|
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 [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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 [
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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":"
|
|
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"}
|
package/dist/rules/ts/ts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAGL,mBAAmB,GAAU;QAC7B,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QACjC,iCAAiC,GAAU;QAC3C,oCAAoC,GAAU;QAE9C,+BAA+B,EAAE;;YAE/B;gBACE,0BAA0B,EAAE,OAAO;gBACnC,2BAA2B,EAAE,OAAO;aACrC;SACF;QAED,4BAA4B,GAAU;QACtC,4BAA4B,GAAU;QAEtC,kCAAkC,EAAE;;YAElC;gBACE,SAAS,EAAE;oBACT,YAAY,EAAE,WAAW;iBAC1B;aACF;SACF;QAED,oBAAoB,EAAE;;YA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