@ts-type/package-dts 1.0.59 → 2.0.2
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/CHANGELOG.md +50 -0
- package/package.json +11 -16
- package/schema/eslintrc.json +32 -35
- package/schema/lerna.json +4 -4
- package/schema/package.json +83 -9
- package/schema/travis.json +483 -477
- package/schema/tsconfig.json +72 -49
- package/tsconfig.check.tsbuildinfo +1 -1
- package/types/eslintrc.json.d.ts +251 -524
- package/types/package.json.d.ts +20509 -359
- package/types/travis.json.d.ts +121 -322
- package/types/tsconfig.json.d.ts +626 -1186
package/types/eslintrc.json.d.ts
CHANGED
|
@@ -5,257 +5,77 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* ESLint supports the use of third-party plugins. Before using the plugin, you have to install it using npm.
|
|
10
|
+
*/
|
|
11
|
+
export type Plugins = string[];
|
|
12
|
+
/**
|
|
13
|
+
* ESLint comes with a large number of rules. You can modify which rules your project uses either using configuration comments or configuration files.
|
|
14
|
+
*/
|
|
15
|
+
export type Rules = PossibleErrors &
|
|
16
|
+
BestPractices &
|
|
17
|
+
StrictMode &
|
|
18
|
+
Variables &
|
|
19
|
+
NodeAndCommonJs &
|
|
20
|
+
StylisticIssues &
|
|
21
|
+
EcmaScript6 &
|
|
22
|
+
Legacy;
|
|
8
23
|
/**
|
|
9
24
|
* This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema
|
|
10
25
|
* via the `definition` "rule".
|
|
11
26
|
*/
|
|
12
27
|
export type Rule = number | ("off" | "warn" | "error") | unknown[];
|
|
13
|
-
|
|
14
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Allows to override configuration for files and folders, specified by glob patterns
|
|
30
|
+
*/
|
|
31
|
+
export type Overrides = {
|
|
15
32
|
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
arrowFunctions?: boolean;
|
|
20
|
-
binaryLiterals?: boolean;
|
|
21
|
-
blockBindings?: boolean;
|
|
22
|
-
classes?: boolean;
|
|
23
|
-
defaultParams?: boolean;
|
|
24
|
-
destructuring?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It’s recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.)
|
|
27
|
-
*/
|
|
28
|
-
experimentalObjectRestSpread?: boolean;
|
|
29
|
-
forOf?: boolean;
|
|
30
|
-
generators?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* allow return statements in the global scope
|
|
33
|
-
*/
|
|
34
|
-
globalReturn?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* enable global strict mode (if ecmaVersion is 5 or greater)
|
|
37
|
-
*/
|
|
38
|
-
impliedStrict?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* enable JSX
|
|
41
|
-
*/
|
|
42
|
-
jsx?: boolean;
|
|
43
|
-
modules?: boolean;
|
|
44
|
-
objectLiteralComputedProperties?: boolean;
|
|
45
|
-
objectLiteralDuplicateProperties?: boolean;
|
|
46
|
-
objectLiteralShorthandMethods?: boolean;
|
|
47
|
-
objectLiteralShorthandProperties?: boolean;
|
|
48
|
-
octalLiterals?: boolean;
|
|
49
|
-
regexUFlag?: boolean;
|
|
50
|
-
regexYFlag?: boolean;
|
|
51
|
-
restParams?: boolean;
|
|
52
|
-
spread?: boolean;
|
|
53
|
-
superInFunctions?: boolean;
|
|
54
|
-
templateStrings?: boolean;
|
|
55
|
-
unicodeCodePointEscapes?: boolean;
|
|
56
|
-
[k: string]: unknown;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* An environment defines global variables that are predefined.
|
|
60
|
-
*/
|
|
61
|
-
env?: {
|
|
62
|
-
/**
|
|
63
|
-
* defines require() and define() as global variables as per the amd spec
|
|
64
|
-
*/
|
|
65
|
-
amd?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* AppleScript global variables
|
|
68
|
-
*/
|
|
69
|
-
applescript?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Atom test helper globals
|
|
72
|
-
*/
|
|
73
|
-
atomtest?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* browser global variables
|
|
76
|
-
*/
|
|
77
|
-
browser?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack)
|
|
80
|
-
*/
|
|
81
|
-
commonjs?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Globals common to both Node and Browser
|
|
84
|
-
*/
|
|
85
|
-
"shared-node-browser"?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Ember test helper globals
|
|
88
|
-
*/
|
|
89
|
-
embertest?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* enable all ECMAScript 6 features except for modules
|
|
92
|
-
*/
|
|
93
|
-
es6?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* GreaseMonkey globals
|
|
96
|
-
*/
|
|
97
|
-
greasemonkey?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* adds all of the Jasmine testing global variables for version 1.3 and 2.0
|
|
100
|
-
*/
|
|
101
|
-
jasmine?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Jest global variables
|
|
104
|
-
*/
|
|
105
|
-
jest?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* jQuery global variables
|
|
108
|
-
*/
|
|
109
|
-
jquery?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Meteor global variables
|
|
112
|
-
*/
|
|
113
|
-
meteor?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* adds all of the Mocha test global variables
|
|
116
|
-
*/
|
|
117
|
-
mocha?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* MongoDB global variables
|
|
120
|
-
*/
|
|
121
|
-
mongo?: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Java 8 Nashorn global variables
|
|
124
|
-
*/
|
|
125
|
-
nashorn?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Node.js global variables and Node.js scoping
|
|
128
|
-
*/
|
|
129
|
-
node?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* PhantomJS global variables
|
|
132
|
-
*/
|
|
133
|
-
phantomjs?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Prototype.js global variables
|
|
136
|
-
*/
|
|
137
|
-
prototypejs?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Protractor global variables
|
|
140
|
-
*/
|
|
141
|
-
protractor?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* QUnit global variables
|
|
144
|
-
*/
|
|
145
|
-
qunit?: boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Service Worker global variables
|
|
148
|
-
*/
|
|
149
|
-
serviceworker?: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* ShellJS global variables
|
|
152
|
-
*/
|
|
153
|
-
shelljs?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* WebExtensions globals
|
|
156
|
-
*/
|
|
157
|
-
webextensions?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* web workers global variables
|
|
160
|
-
*/
|
|
161
|
-
worker?: boolean;
|
|
162
|
-
[k: string]: unknown;
|
|
163
|
-
};
|
|
33
|
+
* Glob pattern for files to apply 'overrides' configuration, relative to the directory of the config file
|
|
34
|
+
*/
|
|
35
|
+
files: string | [string, ...string[]];
|
|
164
36
|
/**
|
|
165
37
|
* If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute.
|
|
166
38
|
*/
|
|
167
39
|
extends?: string | string[];
|
|
168
40
|
/**
|
|
169
|
-
*
|
|
41
|
+
* If a file matches any of the 'excludedFiles' glob patterns, the 'overrides' configuration won’t apply
|
|
170
42
|
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
43
|
+
excludedFiles?: string | string[];
|
|
44
|
+
ecmaFeatures?: EcmaFeatures;
|
|
45
|
+
env?: Env;
|
|
46
|
+
globals?: Globals;
|
|
47
|
+
parser?: string;
|
|
48
|
+
parserOptions?: ParserOptions;
|
|
49
|
+
plugins?: Plugins;
|
|
50
|
+
/**
|
|
51
|
+
* To specify a processor, specify the plugin name and processor name joined by a forward slash
|
|
52
|
+
*/
|
|
53
|
+
processor?: string;
|
|
54
|
+
rules?: Rules;
|
|
55
|
+
settings?: Settings;
|
|
56
|
+
overrides?: Overrides;
|
|
57
|
+
}[];
|
|
58
|
+
/**
|
|
59
|
+
* This interface was referenced by `JSONSchemaForESLintConfigurationFiles`'s JSON-Schema
|
|
60
|
+
* via the `definition` "stringOrStringArray".
|
|
61
|
+
*/
|
|
62
|
+
export type StringOrStringArray = string | string[];
|
|
63
|
+
|
|
64
|
+
export interface JSONSchemaForESLintConfigurationFiles {
|
|
65
|
+
ecmaFeatures?: EcmaFeatures;
|
|
66
|
+
env?: Env;
|
|
67
|
+
/**
|
|
68
|
+
* If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute.
|
|
69
|
+
*/
|
|
70
|
+
extends?: string | string[];
|
|
71
|
+
globals?: Globals;
|
|
174
72
|
/**
|
|
175
73
|
* Prevent comments from changing config or rules
|
|
176
74
|
*/
|
|
177
75
|
noInlineConfig?: boolean;
|
|
178
76
|
parser?: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
*/
|
|
182
|
-
parserOptions?: {
|
|
183
|
-
/**
|
|
184
|
-
* By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings.
|
|
185
|
-
*/
|
|
186
|
-
ecmaFeatures?: {
|
|
187
|
-
arrowFunctions?: boolean;
|
|
188
|
-
binaryLiterals?: boolean;
|
|
189
|
-
blockBindings?: boolean;
|
|
190
|
-
classes?: boolean;
|
|
191
|
-
defaultParams?: boolean;
|
|
192
|
-
destructuring?: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It’s recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.)
|
|
195
|
-
*/
|
|
196
|
-
experimentalObjectRestSpread?: boolean;
|
|
197
|
-
forOf?: boolean;
|
|
198
|
-
generators?: boolean;
|
|
199
|
-
/**
|
|
200
|
-
* allow return statements in the global scope
|
|
201
|
-
*/
|
|
202
|
-
globalReturn?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* enable global strict mode (if ecmaVersion is 5 or greater)
|
|
205
|
-
*/
|
|
206
|
-
impliedStrict?: boolean;
|
|
207
|
-
/**
|
|
208
|
-
* enable JSX
|
|
209
|
-
*/
|
|
210
|
-
jsx?: boolean;
|
|
211
|
-
modules?: boolean;
|
|
212
|
-
objectLiteralComputedProperties?: boolean;
|
|
213
|
-
objectLiteralDuplicateProperties?: boolean;
|
|
214
|
-
objectLiteralShorthandMethods?: boolean;
|
|
215
|
-
objectLiteralShorthandProperties?: boolean;
|
|
216
|
-
octalLiterals?: boolean;
|
|
217
|
-
regexUFlag?: boolean;
|
|
218
|
-
regexYFlag?: boolean;
|
|
219
|
-
restParams?: boolean;
|
|
220
|
-
spread?: boolean;
|
|
221
|
-
superInFunctions?: boolean;
|
|
222
|
-
templateStrings?: boolean;
|
|
223
|
-
unicodeCodePointEscapes?: boolean;
|
|
224
|
-
[k: string]: unknown;
|
|
225
|
-
};
|
|
226
|
-
/**
|
|
227
|
-
* Set to 3, 5, 6, 7, 8, 9, 10, 11 (default), 12, 13 or "latest" to specify the version of ECMAScript syntax you want to use. You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11) or 2021 (same as 12) or 2022 (same as 13) to use the year-based naming. "latest" always enables the latest supported ECMAScript version.
|
|
228
|
-
*/
|
|
229
|
-
ecmaVersion?:
|
|
230
|
-
| 3
|
|
231
|
-
| 5
|
|
232
|
-
| 6
|
|
233
|
-
| 2015
|
|
234
|
-
| 7
|
|
235
|
-
| 2016
|
|
236
|
-
| 8
|
|
237
|
-
| 2017
|
|
238
|
-
| 9
|
|
239
|
-
| 2018
|
|
240
|
-
| 10
|
|
241
|
-
| 2019
|
|
242
|
-
| 11
|
|
243
|
-
| 2020
|
|
244
|
-
| 12
|
|
245
|
-
| 2021
|
|
246
|
-
| 13
|
|
247
|
-
| 2022
|
|
248
|
-
| "latest";
|
|
249
|
-
/**
|
|
250
|
-
* set to "script" (default) or "module" if your code is in ECMAScript modules
|
|
251
|
-
*/
|
|
252
|
-
sourceType?: "script" | "module";
|
|
253
|
-
[k: string]: unknown;
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* ESLint supports the use of third-party plugins. Before using the plugin, you have to install it using npm.
|
|
257
|
-
*/
|
|
258
|
-
plugins?: string[];
|
|
77
|
+
parserOptions?: ParserOptions;
|
|
78
|
+
plugins?: Plugins;
|
|
259
79
|
/**
|
|
260
80
|
* By default, ESLint will look for configuration files in all parent folders up to the root directory. This can be useful if you want all of your projects to follow a certain convention, but can sometimes lead to unexpected results. To limit ESLint to a specific project, set this to `true` in a configuration in the root of your project.
|
|
261
81
|
*/
|
|
@@ -264,297 +84,198 @@ export interface JSONSchemaForESLintConfigurationFiles {
|
|
|
264
84
|
* Tell ESLint to ignore specific files and directories. Each value uses the same pattern as the `.eslintignore` file.
|
|
265
85
|
*/
|
|
266
86
|
ignorePatterns?: string | string[];
|
|
87
|
+
rules?: Rules;
|
|
88
|
+
settings?: Settings;
|
|
89
|
+
overrides?: Overrides;
|
|
90
|
+
[k: string]: unknown;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings.
|
|
94
|
+
*/
|
|
95
|
+
export interface EcmaFeatures {
|
|
96
|
+
arrowFunctions?: boolean;
|
|
97
|
+
binaryLiterals?: boolean;
|
|
98
|
+
blockBindings?: boolean;
|
|
99
|
+
classes?: boolean;
|
|
100
|
+
defaultParams?: boolean;
|
|
101
|
+
destructuring?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It’s recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.)
|
|
104
|
+
*/
|
|
105
|
+
experimentalObjectRestSpread?: boolean;
|
|
106
|
+
forOf?: boolean;
|
|
107
|
+
generators?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* allow return statements in the global scope
|
|
110
|
+
*/
|
|
111
|
+
globalReturn?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* enable global strict mode (if ecmaVersion is 5 or greater)
|
|
114
|
+
*/
|
|
115
|
+
impliedStrict?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* enable JSX
|
|
118
|
+
*/
|
|
119
|
+
jsx?: boolean;
|
|
120
|
+
modules?: boolean;
|
|
121
|
+
objectLiteralComputedProperties?: boolean;
|
|
122
|
+
objectLiteralDuplicateProperties?: boolean;
|
|
123
|
+
objectLiteralShorthandMethods?: boolean;
|
|
124
|
+
objectLiteralShorthandProperties?: boolean;
|
|
125
|
+
octalLiterals?: boolean;
|
|
126
|
+
regexUFlag?: boolean;
|
|
127
|
+
regexYFlag?: boolean;
|
|
128
|
+
restParams?: boolean;
|
|
129
|
+
spread?: boolean;
|
|
130
|
+
superInFunctions?: boolean;
|
|
131
|
+
templateStrings?: boolean;
|
|
132
|
+
unicodeCodePointEscapes?: boolean;
|
|
133
|
+
[k: string]: unknown;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* An environment defines global variables that are predefined.
|
|
137
|
+
*/
|
|
138
|
+
export interface Env {
|
|
139
|
+
/**
|
|
140
|
+
* defines require() and define() as global variables as per the amd spec
|
|
141
|
+
*/
|
|
142
|
+
amd?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* AppleScript global variables
|
|
145
|
+
*/
|
|
146
|
+
applescript?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Atom test helper globals
|
|
149
|
+
*/
|
|
150
|
+
atomtest?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* browser global variables
|
|
153
|
+
*/
|
|
154
|
+
browser?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack)
|
|
157
|
+
*/
|
|
158
|
+
commonjs?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Globals common to both Node and Browser
|
|
161
|
+
*/
|
|
162
|
+
"shared-node-browser"?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Ember test helper globals
|
|
165
|
+
*/
|
|
166
|
+
embertest?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* enable all ECMAScript 6 features except for modules
|
|
169
|
+
*/
|
|
170
|
+
es6?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* GreaseMonkey globals
|
|
173
|
+
*/
|
|
174
|
+
greasemonkey?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* adds all of the Jasmine testing global variables for version 1.3 and 2.0
|
|
177
|
+
*/
|
|
178
|
+
jasmine?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Jest global variables
|
|
181
|
+
*/
|
|
182
|
+
jest?: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* jQuery global variables
|
|
185
|
+
*/
|
|
186
|
+
jquery?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Meteor global variables
|
|
189
|
+
*/
|
|
190
|
+
meteor?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* adds all of the Mocha test global variables
|
|
193
|
+
*/
|
|
194
|
+
mocha?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* MongoDB global variables
|
|
197
|
+
*/
|
|
198
|
+
mongo?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Java 8 Nashorn global variables
|
|
201
|
+
*/
|
|
202
|
+
nashorn?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Node.js global variables and Node.js scoping
|
|
205
|
+
*/
|
|
206
|
+
node?: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* PhantomJS global variables
|
|
209
|
+
*/
|
|
210
|
+
phantomjs?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Prototype.js global variables
|
|
213
|
+
*/
|
|
214
|
+
prototypejs?: boolean;
|
|
267
215
|
/**
|
|
268
|
-
*
|
|
269
|
-
*/
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
objectLiteralShorthandMethods?: boolean;
|
|
332
|
-
objectLiteralShorthandProperties?: boolean;
|
|
333
|
-
octalLiterals?: boolean;
|
|
334
|
-
regexUFlag?: boolean;
|
|
335
|
-
regexYFlag?: boolean;
|
|
336
|
-
restParams?: boolean;
|
|
337
|
-
spread?: boolean;
|
|
338
|
-
superInFunctions?: boolean;
|
|
339
|
-
templateStrings?: boolean;
|
|
340
|
-
unicodeCodePointEscapes?: boolean;
|
|
341
|
-
[k: string]: unknown;
|
|
342
|
-
};
|
|
343
|
-
/**
|
|
344
|
-
* An environment defines global variables that are predefined.
|
|
345
|
-
*/
|
|
346
|
-
env?: {
|
|
347
|
-
/**
|
|
348
|
-
* defines require() and define() as global variables as per the amd spec
|
|
349
|
-
*/
|
|
350
|
-
amd?: boolean;
|
|
351
|
-
/**
|
|
352
|
-
* AppleScript global variables
|
|
353
|
-
*/
|
|
354
|
-
applescript?: boolean;
|
|
355
|
-
/**
|
|
356
|
-
* Atom test helper globals
|
|
357
|
-
*/
|
|
358
|
-
atomtest?: boolean;
|
|
359
|
-
/**
|
|
360
|
-
* browser global variables
|
|
361
|
-
*/
|
|
362
|
-
browser?: boolean;
|
|
363
|
-
/**
|
|
364
|
-
* CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack)
|
|
365
|
-
*/
|
|
366
|
-
commonjs?: boolean;
|
|
367
|
-
/**
|
|
368
|
-
* Globals common to both Node and Browser
|
|
369
|
-
*/
|
|
370
|
-
"shared-node-browser"?: boolean;
|
|
371
|
-
/**
|
|
372
|
-
* Ember test helper globals
|
|
373
|
-
*/
|
|
374
|
-
embertest?: boolean;
|
|
375
|
-
/**
|
|
376
|
-
* enable all ECMAScript 6 features except for modules
|
|
377
|
-
*/
|
|
378
|
-
es6?: boolean;
|
|
379
|
-
/**
|
|
380
|
-
* GreaseMonkey globals
|
|
381
|
-
*/
|
|
382
|
-
greasemonkey?: boolean;
|
|
383
|
-
/**
|
|
384
|
-
* adds all of the Jasmine testing global variables for version 1.3 and 2.0
|
|
385
|
-
*/
|
|
386
|
-
jasmine?: boolean;
|
|
387
|
-
/**
|
|
388
|
-
* Jest global variables
|
|
389
|
-
*/
|
|
390
|
-
jest?: boolean;
|
|
391
|
-
/**
|
|
392
|
-
* jQuery global variables
|
|
393
|
-
*/
|
|
394
|
-
jquery?: boolean;
|
|
395
|
-
/**
|
|
396
|
-
* Meteor global variables
|
|
397
|
-
*/
|
|
398
|
-
meteor?: boolean;
|
|
399
|
-
/**
|
|
400
|
-
* adds all of the Mocha test global variables
|
|
401
|
-
*/
|
|
402
|
-
mocha?: boolean;
|
|
403
|
-
/**
|
|
404
|
-
* MongoDB global variables
|
|
405
|
-
*/
|
|
406
|
-
mongo?: boolean;
|
|
407
|
-
/**
|
|
408
|
-
* Java 8 Nashorn global variables
|
|
409
|
-
*/
|
|
410
|
-
nashorn?: boolean;
|
|
411
|
-
/**
|
|
412
|
-
* Node.js global variables and Node.js scoping
|
|
413
|
-
*/
|
|
414
|
-
node?: boolean;
|
|
415
|
-
/**
|
|
416
|
-
* PhantomJS global variables
|
|
417
|
-
*/
|
|
418
|
-
phantomjs?: boolean;
|
|
419
|
-
/**
|
|
420
|
-
* Prototype.js global variables
|
|
421
|
-
*/
|
|
422
|
-
prototypejs?: boolean;
|
|
423
|
-
/**
|
|
424
|
-
* Protractor global variables
|
|
425
|
-
*/
|
|
426
|
-
protractor?: boolean;
|
|
427
|
-
/**
|
|
428
|
-
* QUnit global variables
|
|
429
|
-
*/
|
|
430
|
-
qunit?: boolean;
|
|
431
|
-
/**
|
|
432
|
-
* Service Worker global variables
|
|
433
|
-
*/
|
|
434
|
-
serviceworker?: boolean;
|
|
435
|
-
/**
|
|
436
|
-
* ShellJS global variables
|
|
437
|
-
*/
|
|
438
|
-
shelljs?: boolean;
|
|
439
|
-
/**
|
|
440
|
-
* WebExtensions globals
|
|
441
|
-
*/
|
|
442
|
-
webextensions?: boolean;
|
|
443
|
-
/**
|
|
444
|
-
* web workers global variables
|
|
445
|
-
*/
|
|
446
|
-
worker?: boolean;
|
|
447
|
-
[k: string]: unknown;
|
|
448
|
-
};
|
|
449
|
-
/**
|
|
450
|
-
* Set each global variable name equal to true to allow the variable to be overwritten or false to disallow overwriting.
|
|
451
|
-
*/
|
|
452
|
-
globals?: {
|
|
453
|
-
[k: string]: ("readonly" | "writable" | "off") | boolean;
|
|
454
|
-
};
|
|
455
|
-
parser?: string;
|
|
456
|
-
/**
|
|
457
|
-
* The JavaScript language options to be supported
|
|
458
|
-
*/
|
|
459
|
-
parserOptions?: {
|
|
460
|
-
/**
|
|
461
|
-
* By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings.
|
|
462
|
-
*/
|
|
463
|
-
ecmaFeatures?: {
|
|
464
|
-
arrowFunctions?: boolean;
|
|
465
|
-
binaryLiterals?: boolean;
|
|
466
|
-
blockBindings?: boolean;
|
|
467
|
-
classes?: boolean;
|
|
468
|
-
defaultParams?: boolean;
|
|
469
|
-
destructuring?: boolean;
|
|
470
|
-
/**
|
|
471
|
-
* Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It’s recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.)
|
|
472
|
-
*/
|
|
473
|
-
experimentalObjectRestSpread?: boolean;
|
|
474
|
-
forOf?: boolean;
|
|
475
|
-
generators?: boolean;
|
|
476
|
-
/**
|
|
477
|
-
* allow return statements in the global scope
|
|
478
|
-
*/
|
|
479
|
-
globalReturn?: boolean;
|
|
480
|
-
/**
|
|
481
|
-
* enable global strict mode (if ecmaVersion is 5 or greater)
|
|
482
|
-
*/
|
|
483
|
-
impliedStrict?: boolean;
|
|
484
|
-
/**
|
|
485
|
-
* enable JSX
|
|
486
|
-
*/
|
|
487
|
-
jsx?: boolean;
|
|
488
|
-
modules?: boolean;
|
|
489
|
-
objectLiteralComputedProperties?: boolean;
|
|
490
|
-
objectLiteralDuplicateProperties?: boolean;
|
|
491
|
-
objectLiteralShorthandMethods?: boolean;
|
|
492
|
-
objectLiteralShorthandProperties?: boolean;
|
|
493
|
-
octalLiterals?: boolean;
|
|
494
|
-
regexUFlag?: boolean;
|
|
495
|
-
regexYFlag?: boolean;
|
|
496
|
-
restParams?: boolean;
|
|
497
|
-
spread?: boolean;
|
|
498
|
-
superInFunctions?: boolean;
|
|
499
|
-
templateStrings?: boolean;
|
|
500
|
-
unicodeCodePointEscapes?: boolean;
|
|
501
|
-
[k: string]: unknown;
|
|
502
|
-
};
|
|
503
|
-
/**
|
|
504
|
-
* Set to 3, 5, 6, 7, 8, 9, 10, 11 (default), 12, 13 or "latest" to specify the version of ECMAScript syntax you want to use. You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11) or 2021 (same as 12) or 2022 (same as 13) to use the year-based naming. "latest" always enables the latest supported ECMAScript version.
|
|
505
|
-
*/
|
|
506
|
-
ecmaVersion?:
|
|
507
|
-
| 3
|
|
508
|
-
| 5
|
|
509
|
-
| 6
|
|
510
|
-
| 2015
|
|
511
|
-
| 7
|
|
512
|
-
| 2016
|
|
513
|
-
| 8
|
|
514
|
-
| 2017
|
|
515
|
-
| 9
|
|
516
|
-
| 2018
|
|
517
|
-
| 10
|
|
518
|
-
| 2019
|
|
519
|
-
| 11
|
|
520
|
-
| 2020
|
|
521
|
-
| 12
|
|
522
|
-
| 2021
|
|
523
|
-
| 13
|
|
524
|
-
| 2022
|
|
525
|
-
| "latest";
|
|
526
|
-
/**
|
|
527
|
-
* set to "script" (default) or "module" if your code is in ECMAScript modules
|
|
528
|
-
*/
|
|
529
|
-
sourceType?: "script" | "module";
|
|
530
|
-
[k: string]: unknown;
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* ESLint supports the use of third-party plugins. Before using the plugin, you have to install it using npm.
|
|
534
|
-
*/
|
|
535
|
-
plugins?: string[];
|
|
536
|
-
/**
|
|
537
|
-
* To specify a processor, specify the plugin name and processor name joined by a forward slash
|
|
538
|
-
*/
|
|
539
|
-
processor?: string;
|
|
540
|
-
/**
|
|
541
|
-
* ESLint comes with a large number of rules. You can modify which rules your project uses either using configuration comments or configuration files.
|
|
542
|
-
*/
|
|
543
|
-
rules?: PossibleErrors &
|
|
544
|
-
BestPractices &
|
|
545
|
-
StrictMode &
|
|
546
|
-
Variables &
|
|
547
|
-
NodeAndCommonJs &
|
|
548
|
-
StylisticIssues &
|
|
549
|
-
EcmaScript6 &
|
|
550
|
-
Legacy;
|
|
551
|
-
/**
|
|
552
|
-
* ESLint supports adding shared settings into configuration file. You can add settings object to ESLint configuration file and it will be supplied to every rule that will be executed. This may be useful if you are adding custom rules and want them to have access to the same information and be easily configurable.
|
|
553
|
-
*/
|
|
554
|
-
settings?: {
|
|
555
|
-
[k: string]: unknown;
|
|
556
|
-
};
|
|
557
|
-
}[];
|
|
216
|
+
* Protractor global variables
|
|
217
|
+
*/
|
|
218
|
+
protractor?: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* QUnit global variables
|
|
221
|
+
*/
|
|
222
|
+
qunit?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Service Worker global variables
|
|
225
|
+
*/
|
|
226
|
+
serviceworker?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* ShellJS global variables
|
|
229
|
+
*/
|
|
230
|
+
shelljs?: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* WebExtensions globals
|
|
233
|
+
*/
|
|
234
|
+
webextensions?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* web workers global variables
|
|
237
|
+
*/
|
|
238
|
+
worker?: boolean;
|
|
239
|
+
[k: string]: unknown;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Set each global variable name equal to true to allow the variable to be overwritten or false to disallow overwriting.
|
|
243
|
+
*/
|
|
244
|
+
export interface Globals {
|
|
245
|
+
[k: string]: ("readonly" | "writable" | "off") | boolean;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* The JavaScript language options to be supported
|
|
249
|
+
*/
|
|
250
|
+
export interface ParserOptions {
|
|
251
|
+
ecmaFeatures?: EcmaFeatures;
|
|
252
|
+
/**
|
|
253
|
+
* Set to 3, 5, 6, 7, 8, 9, 10, 11 (default), 12, 13 or "latest" to specify the version of ECMAScript syntax you want to use. You can also set to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11) or 2021 (same as 12) or 2022 (same as 13) to use the year-based naming. "latest" always enables the latest supported ECMAScript version.
|
|
254
|
+
*/
|
|
255
|
+
ecmaVersion?:
|
|
256
|
+
| 3
|
|
257
|
+
| 5
|
|
258
|
+
| 6
|
|
259
|
+
| 2015
|
|
260
|
+
| 7
|
|
261
|
+
| 2016
|
|
262
|
+
| 8
|
|
263
|
+
| 2017
|
|
264
|
+
| 9
|
|
265
|
+
| 2018
|
|
266
|
+
| 10
|
|
267
|
+
| 2019
|
|
268
|
+
| 11
|
|
269
|
+
| 2020
|
|
270
|
+
| 12
|
|
271
|
+
| 2021
|
|
272
|
+
| 13
|
|
273
|
+
| 2022
|
|
274
|
+
| "latest";
|
|
275
|
+
/**
|
|
276
|
+
* set to "script" (default) or "module" if your code is in ECMAScript modules
|
|
277
|
+
*/
|
|
278
|
+
sourceType?: "script" | "module";
|
|
558
279
|
[k: string]: unknown;
|
|
559
280
|
}
|
|
560
281
|
/**
|
|
@@ -1650,3 +1371,9 @@ export interface Legacy {
|
|
|
1650
1371
|
"no-plusplus"?: Rule;
|
|
1651
1372
|
[k: string]: unknown;
|
|
1652
1373
|
}
|
|
1374
|
+
/**
|
|
1375
|
+
* ESLint supports adding shared settings into configuration file. You can add settings object to ESLint configuration file and it will be supplied to every rule that will be executed. This may be useful if you are adding custom rules and want them to have access to the same information and be easily configurable.
|
|
1376
|
+
*/
|
|
1377
|
+
export interface Settings {
|
|
1378
|
+
[k: string]: unknown;
|
|
1379
|
+
}
|