generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheslintrc.d.ts
1346 lines (1344 loc) · 42.8 KB
/
eslintrc.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
**
** Copyright (c) 2024, Oracle and/or its affiliates.
** All rights reserved
** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
*/
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
/**
* ESLint supports the use of third-party plugins. Before using the plugin, you have to install it using npm.
*/
export type Plugins = string[];
/**
* ESLint comes with a large number of rules. You can modify which rules your project uses either using configuration comments or configuration files.
*/
export type Rules = PossibleErrors &
BestPractices &
StrictMode &
Variables &
NodeAndCommonJs &
StylisticIssues &
EcmaScript6 &
Legacy;
export type Rule = number | ("off" | "warn" | "error") | unknown[];
/**
* Allows to override configuration for files and folders, specified by glob patterns
*/
export type Overrides = {
/**
* Glob pattern for files to apply 'overrides' configuration, relative to the directory of the config file
*/
files: string | [string, ...string[]];
/**
* 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.
*/
extends?: string | string[];
/**
* If a file matches any of the 'excludedFiles' glob patterns, the 'overrides' configuration won't apply
*/
excludedFiles?: string | string[];
ecmaFeatures?: EcmaFeatures;
env?: Env;
globals?: Globals;
parser?: string;
parserOptions?: ParserOptions;
plugins?: Plugins;
/**
* To specify a processor, specify the plugin name and processor name joined by a forward slash
*/
processor?: string;
rules?: Rules;
settings?: Settings;
overrides?: Overrides;
}[];
export interface JSONSchemaForESLintConfigurationFiles {
ecmaFeatures?: EcmaFeatures;
env?: Env;
/**
* 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.
*/
extends?: string | string[];
globals?: Globals;
/**
* Prevent comments from changing config or rules
*/
noInlineConfig?: boolean;
parser?: string;
parserOptions?: ParserOptions;
plugins?: Plugins;
/**
* 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.
*/
root?: boolean;
/**
* Tell ESLint to ignore specific files and directories. Each value uses the same pattern as the `.eslintignore` file.
*/
ignorePatterns?: string | string[];
rules?: Rules;
settings?: Settings;
overrides?: Overrides;
[k: string]: unknown;
}
/**
* 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.
*/
export interface EcmaFeatures {
arrowFunctions?: boolean;
binaryLiterals?: boolean;
blockBindings?: boolean;
classes?: boolean;
defaultParams?: boolean;
destructuring?: boolean;
/**
* 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.)
*/
experimentalObjectRestSpread?: boolean;
forOf?: boolean;
generators?: boolean;
/**
* allow return statements in the global scope
*/
globalReturn?: boolean;
/**
* enable global strict mode (if ecmaVersion is 5 or greater)
*/
impliedStrict?: boolean;
/**
* enable JSX
*/
jsx?: boolean;
modules?: boolean;
objectLiteralComputedProperties?: boolean;
objectLiteralDuplicateProperties?: boolean;
objectLiteralShorthandMethods?: boolean;
objectLiteralShorthandProperties?: boolean;
octalLiterals?: boolean;
regexUFlag?: boolean;
regexYFlag?: boolean;
restParams?: boolean;
spread?: boolean;
superInFunctions?: boolean;
templateStrings?: boolean;
unicodeCodePointEscapes?: boolean;
[k: string]: unknown;
}
/**
* An environment defines global variables that are predefined.
*/
export interface Env {
/**
* defines require() and define() as global variables as per the amd spec
*/
amd?: boolean;
/**
* AppleScript global variables
*/
applescript?: boolean;
/**
* Atom test helper globals
*/
atomtest?: boolean;
/**
* browser global variables
*/
browser?: boolean;
/**
* CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack)
*/
commonjs?: boolean;
/**
* Globals common to both Node and Browser
*/
"shared-node-browser"?: boolean;
/**
* Ember test helper globals
*/
embertest?: boolean;
/**
* enable all ECMAScript 6 features except for modules
*/
es6?: boolean;
/**
* GreaseMonkey globals
*/
greasemonkey?: boolean;
/**
* adds all of the Jasmine testing global variables for version 1.3 and 2.0
*/
jasmine?: boolean;
/**
* Jest global variables
*/
jest?: boolean;
/**
* jQuery global variables
*/
jquery?: boolean;
/**
* Meteor global variables
*/
meteor?: boolean;
/**
* adds all of the Mocha test global variables
*/
mocha?: boolean;
/**
* MongoDB global variables
*/
mongo?: boolean;
/**
* Java 8 Nashorn global variables
*/
nashorn?: boolean;
/**
* Node.js global variables and Node.js scoping
*/
node?: boolean;
/**
* PhantomJS global variables
*/
phantomjs?: boolean;
/**
* Prototype.js global variables
*/
prototypejs?: boolean;
/**
* Protractor global variables
*/
protractor?: boolean;
/**
* QUnit global variables
*/
qunit?: boolean;
/**
* Service Worker global variables
*/
serviceworker?: boolean;
/**
* ShellJS global variables
*/
shelljs?: boolean;
/**
* WebExtensions globals
*/
webextensions?: boolean;
/**
* web workers global variables
*/
worker?: boolean;
[k: string]: unknown;
}
/**
* Set each global variable name equal to true to allow the variable to be overwritten or false to disallow overwriting.
*/
export interface Globals {
[k: string]: ("readonly" | "writable" | "off") | boolean;
}
/**
* The JavaScript language options to be supported
*/
export interface ParserOptions {
ecmaFeatures?: EcmaFeatures;
/**
* Set to 3, 5, 6, 7, 8, 9, 10, 11 (default), 12, 13, 14 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), 2021 (same as 12), 2022 (same as 13) or 2023 (same as 14) to use the year-based naming. "latest" always enables the latest supported ECMAScript version.
*/
ecmaVersion?:
| 3
| 5
| 6
| 2015
| 7
| 2016
| 8
| 2017
| 9
| 2018
| 10
| 2019
| 11
| 2020
| 12
| 2021
| 13
| 2022
| 14
| 2023
| "latest";
/**
* set to "script" (default) or "module" if your code is in ECMAScript modules
*/
sourceType?: "script" | "module";
[k: string]: unknown;
}
export interface PossibleErrors {
/**
* Require or disallow trailing commas
*/
"comma-dangle"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce "for" loop update clause moving the counter in the right direction
*/
"for-direction"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce return statements in getters
*/
"getter-return"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow await inside of loops
*/
"no-await-in-loop"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow comparing against -0
*/
"no-compare-neg-zero"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow assignment operators in conditional expressions
*/
"no-cond-assign"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of console
*/
"no-console"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow constant expressions in conditions
*/
"no-constant-condition"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow control characters in regular expressions
*/
"no-control-regex"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of debugger
*/
"no-debugger"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow duplicate arguments in function definitions
*/
"no-dupe-args"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow duplicate keys in object literals
*/
"no-dupe-keys"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow duplicate case labels
*/
"no-duplicate-case"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow empty block statements
*/
"no-empty"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow empty character classes in regular expressions
*/
"no-empty-character-class"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow reassigning exceptions in catch clauses
*/
"no-ex-assign"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary boolean casts
*/
"no-extra-boolean-cast"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary parentheses
*/
"no-extra-parens"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary semicolons
*/
"no-extra-semi"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow reassigning function declarations
*/
"no-func-assign"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow function or var declarations in nested blocks
*/
"no-inner-declarations"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow invalid regular expression strings in RegExp constructors
*/
"no-invalid-regexp"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow irregular whitespace outside of strings and comments
*/
"no-irregular-whitespace"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow negating the left operand in in expressions (deprecated)
*/
"no-negated-in-lhs"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow calling global object properties as functions
*/
"no-obj-calls"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow calling some Object.prototype methods directly on objects
*/
"no-prototype-builtins"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow multiple spaces in regular expressions
*/
"no-regex-spaces"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow sparse arrays
*/
"no-sparse-arrays"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow template literal placeholder syntax in regular strings
*/
"no-template-curly-in-string"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow confusing multiline expressions
*/
"no-unexpected-multiline"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unreachable code after return, throw, continue, and break statements
*/
"no-unreachable"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow control flow statements in finally blocks
*/
"no-unsafe-finally"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow negating the left operand of relational operators
*/
"no-unsafe-negation"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require calls to isNaN() when checking for NaN
*/
"use-isnan"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce valid JSDoc comments
*/
"valid-jsdoc"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce comparing typeof expressions against valid strings
*/
"valid-typeof"?: number | ("off" | "warn" | "error") | unknown[];
[k: string]: unknown;
}
export interface BestPractices {
/**
* Enforce getter and setter pairs in objects
*/
"accessor-pairs"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce return statements in callbacks of array methods
*/
"array-callback-return"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce the use of variables within the scope they are defined
*/
"block-scoped-var"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce that class methods utilize this
*/
"class-methods-use-this"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum cyclomatic complexity allowed in a program
*/
complexity?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require return statements to either always or never specify values
*/
"consistent-return"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent brace style for all control statements
*/
curly?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require default cases in switch statements
*/
"default-case"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent newlines before and after dots
*/
"dot-location"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce dot notation whenever possible
*/
"dot-notation"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require the use of === and !==
*/
eqeqeq?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require for-in loops to include an if statement
*/
"guard-for-in"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of alert, confirm, and prompt
*/
"no-alert"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of arguments.caller or arguments.callee
*/
"no-caller"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow lexical declarations in case clauses
*/
"no-case-declarations"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow division operators explicitly at the beginning of regular expressions
*/
"no-div-regex"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow else blocks after return statements in if statements
*/
"no-else-return"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow empty functions
*/
"no-empty-function"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow empty destructuring patterns
*/
"no-empty-pattern"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow null comparisons without type-checking operators
*/
"no-eq-null"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of eval()
*/
"no-eval"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow extending native types
*/
"no-extend-native"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary calls to .bind()
*/
"no-extra-bind"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary labels
*/
"no-extra-label"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow fallthrough of case statements
*/
"no-fallthrough"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow leading or trailing decimal points in numeric literals
*/
"no-floating-decimal"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow assignments to native objects or read-only global variables
*/
"no-global-assign"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow shorthand type conversions
*/
"no-implicit-coercion"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow var and named function declarations in the global scope
*/
"no-implicit-globals"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of eval()-like methods
*/
"no-implied-eval"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow this keywords outside of classes or class-like objects
*/
"no-invalid-this"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of the __iterator__ property
*/
"no-iterator"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow labeled statements
*/
"no-labels"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary nested blocks
*/
"no-lone-blocks"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow function declarations and expressions inside loop statements
*/
"no-loop-func"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow magic numbers
*/
"no-magic-numbers"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow multiple spaces
*/
"no-multi-spaces"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow multiline strings
*/
"no-multi-str"?: number | ("off" | "warn" | "error") | unknown[];
"no-native-reassign"?: Rule;
/**
* Disallow new operators outside of assignments or comparisons
*/
"no-new"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow new operators with the Function object
*/
"no-new-func"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow new operators with the String, Number, and Boolean objects
*/
"no-new-wrappers"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow octal literals
*/
"no-octal"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow octal escape sequences in string literals
*/
"no-octal-escape"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow reassigning function parameters
*/
"no-param-reassign"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of the __proto__ property
*/
"no-proto"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow var redeclaration
*/
"no-redeclare"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow certain properties on certain objects
*/
"no-restricted-properties"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow assignment operators in return statements
*/
"no-return-assign"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary return await
*/
"no-return-await"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow javascript: urls
*/
"no-script-url"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow assignments where both sides are exactly the same
*/
"no-self-assign"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow comparisons where both sides are exactly the same
*/
"no-self-compare"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow comma operators
*/
"no-sequences"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow throwing literals as exceptions
*/
"no-throw-literal"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unmodified loop conditions
*/
"no-unmodified-loop-condition"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unused expressions
*/
"no-unused-expressions"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unused labels
*/
"no-unused-labels"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary calls to .call() and .apply()
*/
"no-useless-call"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary concatenation of literals or template literals
*/
"no-useless-concat"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unnecessary escape characters
*/
"no-useless-escape"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow redundant return statements
*/
"no-useless-return"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow void operators
*/
"no-void"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow specified warning terms in comments
*/
"no-warning-comments"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow with statements
*/
"no-with"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require using Error objects as Promise rejection reasons
*/
"prefer-promise-reject-errors"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce the consistent use of the radix argument when using parseInt()
*/
radix?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow async functions which have no await expression
*/
"require-await"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require var declarations be placed at the top of their containing scope
*/
"vars-on-top"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require parentheses around immediate function invocations
*/
"wrap-iife"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require or Disallow "Yoda" conditions
*/
yoda?: number | ("off" | "warn" | "error") | unknown[];
[k: string]: unknown;
}
export interface StrictMode {
/**
* require or disallow strict mode directives
*/
strict?: number | ("off" | "warn" | "error") | unknown[];
[k: string]: unknown;
}
export interface Variables {
/**
* Require or disallow initialization in var declarations
*/
"init-declarations"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow catch clause parameters from shadowing variables in the outer scope
*/
"no-catch-shadow"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow deleting variables
*/
"no-delete-var"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow labels that share a name with a variable
*/
"no-label-var"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow specified global variables
*/
"no-restricted-globals"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow var declarations from shadowing variables in the outer scope
*/
"no-shadow"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow identifiers from shadowing restricted names
*/
"no-shadow-restricted-names"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of undeclared variables unless mentioned in /*global * / comments
*/
"no-undef"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of undefined as an identifier
*/
"no-undefined"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow initializing variables to undefined
*/
"no-undef-init"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow unused variables
*/
"no-unused-vars"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of variables before they are defined
*/
"no-use-before-define"?: number | ("off" | "warn" | "error") | unknown[];
[k: string]: unknown;
}
export interface NodeAndCommonJs {
/**
* Require return statements after callbacks
*/
"callback-return"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require require() calls to be placed at top-level module scope
*/
"global-require"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require error handling in callbacks
*/
"handle-callback-err"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow use of the Buffer() constructor
*/
"no-buffer-constructor"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow require calls to be mixed with regular var declarations
*/
"no-mixed-requires"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow new operators with calls to require
*/
"no-new-require"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow string concatenation with __dirname and __filename
*/
"no-path-concat"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of process.env
*/
"no-process-env"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow the use of process.exit()
*/
"no-process-exit"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow specified modules when loaded by require
*/
"no-restricted-modules"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow synchronous methods
*/
"no-sync"?: number | ("off" | "warn" | "error") | unknown[];
[k: string]: unknown;
}
export interface StylisticIssues {
/**
* Enforce line breaks after opening and before closing array brackets
*/
"array-bracket-newline"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent spacing inside array brackets
*/
"array-bracket-spacing"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce line breaks after each array element
*/
"array-element-newline"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent spacing inside single-line blocks
*/
"block-spacing"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent brace style for blocks
*/
"brace-style"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce camelcase naming convention
*/
camelcase?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce or disallow capitalization of the first letter of a comment
*/
"capitalized-comments"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require or disallow trailing commas
*/
"comma-dangle"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent spacing before and after commas
*/
"comma-spacing"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent comma style
*/
"comma-style"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent spacing inside computed property brackets
*/
"computed-property-spacing"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent naming when capturing the current execution context
*/
"consistent-this"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce at least one newline at the end of files
*/
"eol-last"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require or disallow spacing between function identifiers and their invocations
*/
"func-call-spacing"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require function names to match the name of the variable or property to which they are assigned
*/
"func-name-matching"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require or disallow named function expressions
*/
"func-names"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce the consistent use of either function declarations or expressions
*/
"func-style"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce line breaks between arguments of a function call
*/
"function-call-argument-newline"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent line breaks inside function parentheses
*/
"function-paren-newline"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Disallow specified identifiers
*/
"id-blacklist"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce minimum and maximum identifier lengths
*/
"id-length"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require identifiers to match a specified regular expression
*/
"id-match"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce the location of arrow function bodies
*/
"implicit-arrow-linebreak"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent indentation
*/
indent?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent indentation (legacy, deprecated)
*/
"indent-legacy"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce the consistent use of either double or single quotes in JSX attributes
*/
"jsx-quotes"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent spacing between keys and values in object literal properties
*/
"key-spacing"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent spacing before and after keywords
*/
"keyword-spacing"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce position of line comments
*/
"line-comment-position"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require or disallow an empty line between class members
*/
"lines-between-class-members"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce consistent linebreak style
*/
"linebreak-style"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require empty lines around comments
*/
"lines-around-comment"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require or disallow newlines around directives
*/
"lines-around-directive"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum depth that blocks can be nested
*/
"max-depth"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum line length
*/
"max-len"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum number of lines per file
*/
"max-lines"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum depth that callbacks can be nested
*/
"max-nested-callbacks"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum number of parameters in function definitions
*/
"max-params"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum number of statements allowed in function blocks
*/
"max-statements"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a maximum number of statements allowed per line
*/
"max-statements-per-line"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce a particular style for multiline comments
*/
"multiline-comment-style"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Enforce newlines between operands of ternary expressions
*/
"multiline-ternary"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require constructor function names to begin with a capital letter
*/
"new-cap"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require or disallow an empty line after var declarations
*/
"newline-after-var"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require an empty line before return statements
*/
"newline-before-return"?: number | ("off" | "warn" | "error") | unknown[];
/**
* Require a newline after each call in a method chain
*/
"newline-per-chained-call"?: number | ("off" | "warn" | "error") | unknown[];