linted 22.0.0 → 22.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{imports/index.d.ts → imports.d.ts} +1 -1
- package/dist/imports.d.ts.map +1 -0
- package/dist/imports.js +7 -0
- package/dist/imports.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/{imports/parsers.d.ts → parsers/index.d.ts} +1 -1
- package/dist/parsers/index.d.ts.map +1 -0
- package/dist/{imports/parsers.js → parsers/index.js} +1 -1
- package/dist/parsers/index.js.map +1 -0
- package/dist/{imports/plugins.d.ts → plugins/index.d.ts} +1 -1
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/{imports/plugins.js → plugins/index.js} +1 -1
- package/dist/plugins/index.js.map +1 -0
- package/package.json +2 -1
- package/src/index.ts +10 -18
- package/dist/_strings/id.d.ts +0 -2
- package/dist/_strings/id.d.ts.map +0 -1
- package/dist/_strings/id.js +0 -2
- package/dist/_strings/id.js.map +0 -1
- package/dist/_strings/index.d.ts +0 -7
- package/dist/_strings/index.d.ts.map +0 -1
- package/dist/_strings/index.js +0 -7
- package/dist/_strings/index.js.map +0 -1
- package/dist/_strings/level.d.ts +0 -2
- package/dist/_strings/level.d.ts.map +0 -1
- package/dist/_strings/level.js +0 -2
- package/dist/_strings/level.js.map +0 -1
- package/dist/_strings/level.spec.d.ts +0 -2
- package/dist/_strings/level.spec.d.ts.map +0 -1
- package/dist/_strings/level.spec.js +0 -31
- package/dist/_strings/level.spec.js.map +0 -1
- package/dist/_strings/state.d.ts +0 -2
- package/dist/_strings/state.d.ts.map +0 -1
- package/dist/_strings/state.js +0 -2
- package/dist/_strings/state.js.map +0 -1
- package/dist/files/index.d.ts +0 -13
- package/dist/files/index.d.ts.map +0 -1
- package/dist/files/index.js +0 -20
- package/dist/files/index.js.map +0 -1
- package/dist/files/scopes/html.d.ts +0 -3
- package/dist/files/scopes/html.d.ts.map +0 -1
- package/dist/files/scopes/html.js +0 -2
- package/dist/files/scopes/html.js.map +0 -1
- package/dist/files/scopes/js.d.ts +0 -3
- package/dist/files/scopes/js.d.ts.map +0 -1
- package/dist/files/scopes/js.js +0 -5
- package/dist/files/scopes/js.js.map +0 -1
- package/dist/files/scopes/json.d.ts +0 -3
- package/dist/files/scopes/json.d.ts.map +0 -1
- package/dist/files/scopes/json.js +0 -2
- package/dist/files/scopes/json.js.map +0 -1
- package/dist/files/scopes/jsonc.d.ts +0 -3
- package/dist/files/scopes/jsonc.d.ts.map +0 -1
- package/dist/files/scopes/jsonc.js +0 -6
- package/dist/files/scopes/jsonc.js.map +0 -1
- package/dist/files/scopes/mocha.d.ts +0 -3
- package/dist/files/scopes/mocha.d.ts.map +0 -1
- package/dist/files/scopes/mocha.js +0 -5
- package/dist/files/scopes/mocha.js.map +0 -1
- package/dist/files/scopes/svelte.d.ts +0 -3
- package/dist/files/scopes/svelte.d.ts.map +0 -1
- package/dist/files/scopes/svelte.js +0 -2
- package/dist/files/scopes/svelte.js.map +0 -1
- package/dist/files/scopes/ts.d.ts +0 -3
- package/dist/files/scopes/ts.d.ts.map +0 -1
- package/dist/files/scopes/ts.js +0 -2
- package/dist/files/scopes/ts.js.map +0 -1
- package/dist/files/scopes/yml.d.ts +0 -3
- package/dist/files/scopes/yml.d.ts.map +0 -1
- package/dist/files/scopes/yml.js +0 -2
- package/dist/files/scopes/yml.js.map +0 -1
- package/dist/ignores/index.d.ts +0 -13
- package/dist/ignores/index.d.ts.map +0 -1
- package/dist/ignores/index.js +0 -29
- package/dist/ignores/index.js.map +0 -1
- package/dist/ignores/scopes/html.d.ts +0 -3
- package/dist/ignores/scopes/html.d.ts.map +0 -1
- package/dist/ignores/scopes/html.js +0 -2
- package/dist/ignores/scopes/html.js.map +0 -1
- package/dist/ignores/scopes/js.d.ts +0 -3
- package/dist/ignores/scopes/js.d.ts.map +0 -1
- package/dist/ignores/scopes/js.js +0 -2
- package/dist/ignores/scopes/js.js.map +0 -1
- package/dist/ignores/scopes/json.d.ts +0 -3
- package/dist/ignores/scopes/json.d.ts.map +0 -1
- package/dist/ignores/scopes/json.js +0 -2
- package/dist/ignores/scopes/json.js.map +0 -1
- package/dist/ignores/scopes/jsonc.d.ts +0 -3
- package/dist/ignores/scopes/jsonc.d.ts.map +0 -1
- package/dist/ignores/scopes/jsonc.js +0 -2
- package/dist/ignores/scopes/jsonc.js.map +0 -1
- package/dist/ignores/scopes/mocha.d.ts +0 -3
- package/dist/ignores/scopes/mocha.d.ts.map +0 -1
- package/dist/ignores/scopes/mocha.js +0 -2
- package/dist/ignores/scopes/mocha.js.map +0 -1
- package/dist/ignores/scopes/svelte.d.ts +0 -3
- package/dist/ignores/scopes/svelte.d.ts.map +0 -1
- package/dist/ignores/scopes/svelte.js +0 -2
- package/dist/ignores/scopes/svelte.js.map +0 -1
- package/dist/ignores/scopes/ts.d.ts +0 -3
- package/dist/ignores/scopes/ts.d.ts.map +0 -1
- package/dist/ignores/scopes/ts.js +0 -2
- package/dist/ignores/scopes/ts.js.map +0 -1
- package/dist/ignores/scopes/yml.d.ts +0 -3
- package/dist/ignores/scopes/yml.d.ts.map +0 -1
- package/dist/ignores/scopes/yml.js +0 -2
- package/dist/ignores/scopes/yml.js.map +0 -1
- package/dist/imports/index.d.ts.map +0 -1
- package/dist/imports/index.js +0 -7
- package/dist/imports/index.js.map +0 -1
- package/dist/imports/parsers.d.ts.map +0 -1
- package/dist/imports/parsers.js.map +0 -1
- package/dist/imports/plugins.d.ts.map +0 -1
- package/dist/imports/plugins.js.map +0 -1
- package/dist/rules/html/enable.d.ts +0 -3
- package/dist/rules/html/enable.d.ts.map +0 -1
- package/dist/rules/html/enable.js +0 -94
- package/dist/rules/html/enable.js.map +0 -1
- package/dist/rules/html/index.d.ts +0 -3
- package/dist/rules/html/index.d.ts.map +0 -1
- package/dist/rules/html/index.js +0 -3
- package/dist/rules/html/index.js.map +0 -1
- package/dist/rules/index.d.ts +0 -4563
- package/dist/rules/index.d.ts.map +0 -1
- package/dist/rules/index.js +0 -19
- package/dist/rules/index.js.map +0 -1
- package/dist/rules/js/enable.d.ts +0 -348
- package/dist/rules/js/enable.d.ts.map +0 -1
- package/dist/rules/js/enable.js +0 -519
- package/dist/rules/js/enable.js.map +0 -1
- package/dist/rules/js/index.d.ts +0 -766
- package/dist/rules/js/index.d.ts.map +0 -1
- package/dist/rules/js/index.js +0 -7
- package/dist/rules/js/index.js.map +0 -1
- package/dist/rules/js/stylistic.d.ts +0 -421
- package/dist/rules/js/stylistic.d.ts.map +0 -1
- package/dist/rules/js/stylistic.js +0 -641
- package/dist/rules/js/stylistic.js.map +0 -1
- package/dist/rules/json/enable.d.ts +0 -27
- package/dist/rules/json/enable.d.ts.map +0 -1
- package/dist/rules/json/enable.js +0 -30
- package/dist/rules/json/enable.js.map +0 -1
- package/dist/rules/json/enable_x.d.ts +0 -50
- package/dist/rules/json/enable_x.d.ts.map +0 -1
- package/dist/rules/json/enable_x.js +0 -80
- package/dist/rules/json/enable_x.js.map +0 -1
- package/dist/rules/json/index.d.ts +0 -74
- package/dist/rules/json/index.d.ts.map +0 -1
- package/dist/rules/json/index.js +0 -7
- package/dist/rules/json/index.js.map +0 -1
- package/dist/rules/jsonc/index.d.ts +0 -77
- package/dist/rules/jsonc/index.d.ts.map +0 -1
- package/dist/rules/jsonc/index.js +0 -7
- package/dist/rules/jsonc/index.js.map +0 -1
- package/dist/rules/jsonc/override.d.ts +0 -6
- package/dist/rules/jsonc/override.d.ts.map +0 -1
- package/dist/rules/jsonc/override.js +0 -12
- package/dist/rules/jsonc/override.js.map +0 -1
- package/dist/rules/mocha/disable.d.ts +0 -5
- package/dist/rules/mocha/disable.d.ts.map +0 -1
- package/dist/rules/mocha/disable.js +0 -8
- package/dist/rules/mocha/disable.js.map +0 -1
- package/dist/rules/mocha/enable.d.ts +0 -35
- package/dist/rules/mocha/enable.d.ts.map +0 -1
- package/dist/rules/mocha/enable.js +0 -47
- package/dist/rules/mocha/enable.js.map +0 -1
- package/dist/rules/mocha/index.d.ts +0 -1171
- package/dist/rules/mocha/index.d.ts.map +0 -1
- package/dist/rules/mocha/index.js +0 -9
- package/dist/rules/mocha/index.js.map +0 -1
- package/dist/rules/svelte/disable.d.ts +0 -5
- package/dist/rules/svelte/disable.d.ts.map +0 -1
- package/dist/rules/svelte/disable.js +0 -8
- package/dist/rules/svelte/disable.js.map +0 -1
- package/dist/rules/svelte/disable_js.d.ts +0 -6
- package/dist/rules/svelte/disable_js.d.ts.map +0 -1
- package/dist/rules/svelte/disable_js.js +0 -9
- package/dist/rules/svelte/disable_js.js.map +0 -1
- package/dist/rules/svelte/disable_ts.d.ts +0 -6
- package/dist/rules/svelte/disable_ts.d.ts.map +0 -1
- package/dist/rules/svelte/disable_ts.js +0 -9
- package/dist/rules/svelte/disable_ts.js.map +0 -1
- package/dist/rules/svelte/enable.d.ts +0 -127
- package/dist/rules/svelte/enable.d.ts.map +0 -1
- package/dist/rules/svelte/enable.js +0 -193
- package/dist/rules/svelte/enable.js.map +0 -1
- package/dist/rules/svelte/enable_x.d.ts +0 -8
- package/dist/rules/svelte/enable_x.d.ts.map +0 -1
- package/dist/rules/svelte/enable_x.js +0 -15
- package/dist/rules/svelte/enable_x.js.map +0 -1
- package/dist/rules/svelte/index.d.ts +0 -1274
- package/dist/rules/svelte/index.d.ts.map +0 -1
- package/dist/rules/svelte/index.js +0 -15
- package/dist/rules/svelte/index.js.map +0 -1
- package/dist/rules/ts/disable.d.ts +0 -18
- package/dist/rules/ts/disable.d.ts.map +0 -1
- package/dist/rules/ts/disable.js +0 -21
- package/dist/rules/ts/disable.js.map +0 -1
- package/dist/rules/ts/disable_x.d.ts +0 -28
- package/dist/rules/ts/disable_x.d.ts.map +0 -1
- package/dist/rules/ts/disable_x.js +0 -31
- package/dist/rules/ts/disable_x.js.map +0 -1
- package/dist/rules/ts/enable.d.ts +0 -265
- package/dist/rules/ts/enable.d.ts.map +0 -1
- package/dist/rules/ts/enable.js +0 -520
- package/dist/rules/ts/enable.js.map +0 -1
- package/dist/rules/ts/enable_x.d.ts +0 -72
- package/dist/rules/ts/enable_x.d.ts.map +0 -1
- package/dist/rules/ts/enable_x.js +0 -108
- package/dist/rules/ts/enable_x.js.map +0 -1
- package/dist/rules/ts/index.d.ts +0 -1137
- package/dist/rules/ts/index.d.ts.map +0 -1
- package/dist/rules/ts/index.js +0 -13
- package/dist/rules/ts/index.js.map +0 -1
- package/dist/rules/yml/enable.d.ts +0 -39
- package/dist/rules/yml/enable.d.ts.map +0 -1
- package/dist/rules/yml/enable.js +0 -68
- package/dist/rules/yml/enable.js.map +0 -1
- package/dist/rules/yml/enable_x.d.ts +0 -37
- package/dist/rules/yml/enable_x.d.ts.map +0 -1
- package/dist/rules/yml/enable_x.js +0 -66
- package/dist/rules/yml/enable_x.js.map +0 -1
- package/dist/rules/yml/index.d.ts +0 -73
- package/dist/rules/yml/index.d.ts.map +0 -1
- package/dist/rules/yml/index.js +0 -7
- package/dist/rules/yml/index.js.map +0 -1
- package/dist/settings.d.ts +0 -7
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js +0 -7
- package/dist/settings.js.map +0 -1
- package/src/_strings/id.ts +0 -8
- package/src/_strings/index.ts +0 -6
- package/src/_strings/level.spec.ts +0 -31
- package/src/_strings/level.ts +0 -4
- package/src/_strings/state.ts +0 -28
- package/src/files/index.ts +0 -20
- package/src/files/scopes/html.ts +0 -1
- package/src/files/scopes/js.ts +0 -4
- package/src/files/scopes/json.ts +0 -1
- package/src/files/scopes/jsonc.ts +0 -5
- package/src/files/scopes/mocha.ts +0 -4
- package/src/files/scopes/svelte.ts +0 -1
- package/src/files/scopes/ts.ts +0 -1
- package/src/files/scopes/yml.ts +0 -1
- package/src/ignores/index.ts +0 -31
- package/src/ignores/scopes/html.ts +0 -1
- package/src/ignores/scopes/js.ts +0 -1
- package/src/ignores/scopes/json.ts +0 -1
- package/src/ignores/scopes/jsonc.ts +0 -1
- package/src/ignores/scopes/mocha.ts +0 -1
- package/src/ignores/scopes/svelte.ts +0 -1
- package/src/ignores/scopes/ts.ts +0 -1
- package/src/ignores/scopes/yml.ts +0 -1
- package/src/rules/html/enable.ts +0 -121
- package/src/rules/html/index.ts +0 -3
- package/src/rules/index.ts +0 -19
- package/src/rules/js/enable.ts +0 -547
- package/src/rules/js/index.ts +0 -7
- package/src/rules/js/stylistic.ts +0 -664
- package/src/rules/json/enable.ts +0 -35
- package/src/rules/json/enable_x.ts +0 -91
- package/src/rules/json/index.ts +0 -7
- package/src/rules/jsonc/index.ts +0 -7
- package/src/rules/jsonc/override.ts +0 -18
- package/src/rules/mocha/disable.ts +0 -11
- package/src/rules/mocha/enable.ts +0 -53
- package/src/rules/mocha/index.ts +0 -9
- package/src/rules/svelte/disable.ts +0 -12
- package/src/rules/svelte/disable_js.ts +0 -11
- package/src/rules/svelte/disable_ts.ts +0 -9
- package/src/rules/svelte/enable.ts +0 -232
- package/src/rules/svelte/enable_x.ts +0 -22
- package/src/rules/svelte/index.ts +0 -15
- package/src/rules/ts/disable.ts +0 -25
- package/src/rules/ts/disable_x.ts +0 -35
- package/src/rules/ts/enable.ts +0 -569
- package/src/rules/ts/enable_x.ts +0 -117
- package/src/rules/ts/index.ts +0 -13
- package/src/rules/yml/enable.ts +0 -76
- package/src/rules/yml/enable_x.ts +0 -73
- package/src/rules/yml/index.ts +0 -7
- package/src/settings.ts +0 -6
- /package/src/{imports/index.ts → imports.ts} +0 -0
- /package/src/{imports/parsers.ts → parsers/index.ts} +0 -0
- /package/src/{imports/plugins.ts → plugins/index.ts} +0 -0
package/src/rules/ts/enable.ts
DELETED
@@ -1,569 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
Never,
|
6
|
-
Explicit,
|
7
|
-
} from "../../_strings";
|
8
|
-
|
9
|
-
export default [
|
10
|
-
enable,
|
11
|
-
{
|
12
|
-
// https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
13
|
-
"@typescript-eslint/adjacent-overload-signatures": OFF,
|
14
|
-
"@typescript-eslint/array-type": [
|
15
|
-
ERROR,
|
16
|
-
{
|
17
|
-
"default": "array",
|
18
|
-
readonly: "array",
|
19
|
-
},
|
20
|
-
],
|
21
|
-
"@typescript-eslint/await-thenable": ERROR,
|
22
|
-
"@typescript-eslint/ban-ts-comment": [
|
23
|
-
ERROR,
|
24
|
-
{
|
25
|
-
"ts-check": false,
|
26
|
-
"ts-expect-error": {
|
27
|
-
descriptionFormat: "^: BUG: .+$",
|
28
|
-
},
|
29
|
-
"ts-ignore": true,
|
30
|
-
"ts-nocheck": true,
|
31
|
-
minimumDescriptionLength: 32,
|
32
|
-
},
|
33
|
-
],
|
34
|
-
"@typescript-eslint/ban-tslint-comment": ERROR,
|
35
|
-
"@typescript-eslint/class-literal-property-style": [
|
36
|
-
ERROR,
|
37
|
-
"fields",
|
38
|
-
],
|
39
|
-
"@typescript-eslint/consistent-generic-constructors": [
|
40
|
-
ERROR,
|
41
|
-
"constructor",
|
42
|
-
],
|
43
|
-
"@typescript-eslint/consistent-indexed-object-style": [
|
44
|
-
ERROR,
|
45
|
-
"record",
|
46
|
-
],
|
47
|
-
"@typescript-eslint/consistent-type-assertions": [
|
48
|
-
ERROR,
|
49
|
-
{
|
50
|
-
assertionStyle: "as",
|
51
|
-
objectLiteralTypeAssertions: Never,
|
52
|
-
},
|
53
|
-
],
|
54
|
-
"@typescript-eslint/consistent-type-definitions": OFF,
|
55
|
-
"@typescript-eslint/consistent-type-exports": [
|
56
|
-
ERROR,
|
57
|
-
{
|
58
|
-
fixMixedExportsWithInlineTypeSpecifier: false,
|
59
|
-
},
|
60
|
-
],
|
61
|
-
"@typescript-eslint/consistent-type-imports": [
|
62
|
-
ERROR,
|
63
|
-
{
|
64
|
-
disallowTypeAnnotations: true,
|
65
|
-
fixStyle: "separate-type-imports",
|
66
|
-
prefer: "type-imports",
|
67
|
-
},
|
68
|
-
],
|
69
|
-
"@typescript-eslint/explicit-function-return-type": OFF,
|
70
|
-
"@typescript-eslint/explicit-member-accessibility": [
|
71
|
-
ERROR,
|
72
|
-
{
|
73
|
-
accessibility: Explicit,
|
74
|
-
ignoredMethodNames: [],
|
75
|
-
overrides: {
|
76
|
-
properties: Explicit,
|
77
|
-
constructors: "no-public",
|
78
|
-
accessors: Explicit,
|
79
|
-
methods: Explicit,
|
80
|
-
parameterProperties: Explicit,
|
81
|
-
},
|
82
|
-
},
|
83
|
-
],
|
84
|
-
"@typescript-eslint/explicit-module-boundary-types": OFF,
|
85
|
-
"@typescript-eslint/member-ordering": [
|
86
|
-
ERROR,
|
87
|
-
{
|
88
|
-
"default": {
|
89
|
-
memberTypes: [
|
90
|
-
// Index signature
|
91
|
-
"signature",
|
92
|
-
"call-signature",
|
93
|
-
|
94
|
-
// Fields
|
95
|
-
"public-static-field",
|
96
|
-
"protected-static-field",
|
97
|
-
"private-static-field",
|
98
|
-
"#private-static-field",
|
99
|
-
|
100
|
-
"public-decorated-field",
|
101
|
-
"protected-decorated-field",
|
102
|
-
"private-decorated-field",
|
103
|
-
|
104
|
-
"public-instance-field",
|
105
|
-
"protected-instance-field",
|
106
|
-
"private-instance-field",
|
107
|
-
"#private-instance-field",
|
108
|
-
|
109
|
-
"public-abstract-field",
|
110
|
-
"protected-abstract-field",
|
111
|
-
|
112
|
-
"public-field",
|
113
|
-
"protected-field",
|
114
|
-
"private-field",
|
115
|
-
"#private-field",
|
116
|
-
|
117
|
-
"static-field",
|
118
|
-
"instance-field",
|
119
|
-
"abstract-field",
|
120
|
-
"decorated-field",
|
121
|
-
"field",
|
122
|
-
|
123
|
-
// Static initialization
|
124
|
-
"static-initialization",
|
125
|
-
|
126
|
-
// Constructors
|
127
|
-
"public-constructor",
|
128
|
-
"protected-constructor",
|
129
|
-
"private-constructor",
|
130
|
-
"constructor",
|
131
|
-
|
132
|
-
// Accessors
|
133
|
-
"public-static-accessor",
|
134
|
-
"protected-static-accessor",
|
135
|
-
"private-static-accessor",
|
136
|
-
"#private-static-accessor",
|
137
|
-
|
138
|
-
"public-decorated-accessor",
|
139
|
-
"protected-decorated-accessor",
|
140
|
-
"private-decorated-accessor",
|
141
|
-
|
142
|
-
"public-instance-accessor",
|
143
|
-
"protected-instance-accessor",
|
144
|
-
"private-instance-accessor",
|
145
|
-
"#private-instance-accessor",
|
146
|
-
|
147
|
-
"public-abstract-accessor",
|
148
|
-
"protected-abstract-accessor",
|
149
|
-
|
150
|
-
"public-accessor",
|
151
|
-
"protected-accessor",
|
152
|
-
"private-accessor",
|
153
|
-
"#private-accessor",
|
154
|
-
|
155
|
-
"static-accessor",
|
156
|
-
"instance-accessor",
|
157
|
-
"abstract-accessor",
|
158
|
-
"decorated-accessor",
|
159
|
-
"accessor",
|
160
|
-
|
161
|
-
// Getters
|
162
|
-
"public-static-get",
|
163
|
-
"protected-static-get",
|
164
|
-
"private-static-get",
|
165
|
-
"#private-static-get",
|
166
|
-
|
167
|
-
"public-decorated-get",
|
168
|
-
"protected-decorated-get",
|
169
|
-
"private-decorated-get",
|
170
|
-
|
171
|
-
"public-instance-get",
|
172
|
-
"protected-instance-get",
|
173
|
-
"private-instance-get",
|
174
|
-
"#private-instance-get",
|
175
|
-
|
176
|
-
"public-abstract-get",
|
177
|
-
"protected-abstract-get",
|
178
|
-
|
179
|
-
"public-get",
|
180
|
-
"protected-get",
|
181
|
-
"private-get",
|
182
|
-
"#private-get",
|
183
|
-
|
184
|
-
"static-get",
|
185
|
-
"instance-get",
|
186
|
-
"abstract-get",
|
187
|
-
"decorated-get",
|
188
|
-
"get",
|
189
|
-
|
190
|
-
// Setters
|
191
|
-
"public-static-set",
|
192
|
-
"protected-static-set",
|
193
|
-
"private-static-set",
|
194
|
-
"#private-static-set",
|
195
|
-
|
196
|
-
"public-decorated-set",
|
197
|
-
"protected-decorated-set",
|
198
|
-
"private-decorated-set",
|
199
|
-
|
200
|
-
"public-instance-set",
|
201
|
-
"protected-instance-set",
|
202
|
-
"private-instance-set",
|
203
|
-
"#private-instance-set",
|
204
|
-
|
205
|
-
"public-abstract-set",
|
206
|
-
"protected-abstract-set",
|
207
|
-
|
208
|
-
"public-set",
|
209
|
-
"protected-set",
|
210
|
-
"private-set",
|
211
|
-
"#private-set",
|
212
|
-
|
213
|
-
"static-set",
|
214
|
-
"instance-set",
|
215
|
-
"abstract-set",
|
216
|
-
"decorated-set",
|
217
|
-
"set",
|
218
|
-
|
219
|
-
// Methods
|
220
|
-
"public-static-method",
|
221
|
-
"protected-static-method",
|
222
|
-
"private-static-method",
|
223
|
-
"#private-static-method",
|
224
|
-
|
225
|
-
"public-decorated-method",
|
226
|
-
"protected-decorated-method",
|
227
|
-
"private-decorated-method",
|
228
|
-
|
229
|
-
"public-instance-method",
|
230
|
-
"protected-instance-method",
|
231
|
-
"private-instance-method",
|
232
|
-
"#private-instance-method",
|
233
|
-
|
234
|
-
"public-abstract-method",
|
235
|
-
"protected-abstract-method",
|
236
|
-
|
237
|
-
"public-method",
|
238
|
-
"protected-method",
|
239
|
-
"private-method",
|
240
|
-
"#private-method",
|
241
|
-
|
242
|
-
"static-method",
|
243
|
-
"instance-method",
|
244
|
-
"abstract-method",
|
245
|
-
"decorated-method",
|
246
|
-
"method",
|
247
|
-
],
|
248
|
-
optionalityOrder: "required-first",
|
249
|
-
order: "as-written",
|
250
|
-
},
|
251
|
-
|
252
|
-
},
|
253
|
-
],
|
254
|
-
"@typescript-eslint/method-signature-style": [
|
255
|
-
ERROR,
|
256
|
-
"property",
|
257
|
-
],
|
258
|
-
"@typescript-eslint/naming-convention": OFF,
|
259
|
-
"@typescript-eslint/no-array-delete": ERROR,
|
260
|
-
"@typescript-eslint/no-base-to-string": [
|
261
|
-
ERROR,
|
262
|
-
{
|
263
|
-
ignoredTypeNames: [
|
264
|
-
"Error",
|
265
|
-
"RegExp",
|
266
|
-
"URL",
|
267
|
-
"URLSearchParams",
|
268
|
-
],
|
269
|
-
},
|
270
|
-
],
|
271
|
-
"@typescript-eslint/no-confusing-non-null-assertion": ERROR,
|
272
|
-
"@typescript-eslint/no-confusing-void-expression": [
|
273
|
-
ERROR,
|
274
|
-
{
|
275
|
-
ignoreArrowShorthand: true,
|
276
|
-
ignoreVoidOperator: true,
|
277
|
-
ignoreVoidReturningFunctions: true,
|
278
|
-
},
|
279
|
-
],
|
280
|
-
"@typescript-eslint/no-duplicate-enum-values": ERROR,
|
281
|
-
"@typescript-eslint/no-duplicate-type-constituents": [
|
282
|
-
ERROR,
|
283
|
-
{
|
284
|
-
ignoreIntersections: false,
|
285
|
-
ignoreUnions: false,
|
286
|
-
},
|
287
|
-
],
|
288
|
-
"@typescript-eslint/no-dynamic-delete": ERROR,
|
289
|
-
"@typescript-eslint/no-empty-object-type": [
|
290
|
-
ERROR,
|
291
|
-
{
|
292
|
-
// allowWithName: /regex/,
|
293
|
-
allowInterfaces: Never,
|
294
|
-
allowObjectTypes: Never,
|
295
|
-
},
|
296
|
-
],
|
297
|
-
"@typescript-eslint/no-explicit-any": [
|
298
|
-
ERROR,
|
299
|
-
{
|
300
|
-
fixToUnknown: true,
|
301
|
-
ignoreRestArgs: false,
|
302
|
-
},
|
303
|
-
],
|
304
|
-
"@typescript-eslint/no-extra-non-null-assertion": ERROR,
|
305
|
-
"@typescript-eslint/no-extraneous-class": [
|
306
|
-
ERROR,
|
307
|
-
{
|
308
|
-
allowConstructorOnly: false,
|
309
|
-
allowEmpty: true,
|
310
|
-
allowStaticOnly: false,
|
311
|
-
allowWithDecorator: false,
|
312
|
-
},
|
313
|
-
],
|
314
|
-
"@typescript-eslint/no-floating-promises": [
|
315
|
-
ERROR,
|
316
|
-
{
|
317
|
-
checkThenables: true,
|
318
|
-
ignoreVoid: true,
|
319
|
-
ignoreIIFE: false,
|
320
|
-
},
|
321
|
-
],
|
322
|
-
"@typescript-eslint/no-for-in-array": ERROR,
|
323
|
-
"@typescript-eslint/no-import-type-side-effects": ERROR,
|
324
|
-
"@typescript-eslint/no-inferrable-types": [
|
325
|
-
ERROR,
|
326
|
-
{
|
327
|
-
ignoreParameters: false,
|
328
|
-
ignoreProperties: false,
|
329
|
-
},
|
330
|
-
],
|
331
|
-
"@typescript-eslint/no-invalid-void-type": [
|
332
|
-
ERROR,
|
333
|
-
{
|
334
|
-
allowInGenericTypeArguments: true,
|
335
|
-
allowAsThisParameter: false,
|
336
|
-
},
|
337
|
-
],
|
338
|
-
"@typescript-eslint/no-meaningless-void-operator": [
|
339
|
-
ERROR,
|
340
|
-
{
|
341
|
-
checkNever: true,
|
342
|
-
},
|
343
|
-
],
|
344
|
-
"@typescript-eslint/no-misused-new": ERROR,
|
345
|
-
"@typescript-eslint/no-misused-promises": [
|
346
|
-
ERROR,
|
347
|
-
{
|
348
|
-
checksConditionals: true,
|
349
|
-
checksSpreads: true,
|
350
|
-
checksVoidReturn: {
|
351
|
-
arguments: true,
|
352
|
-
attributes: true,
|
353
|
-
properties: true,
|
354
|
-
returns: true,
|
355
|
-
variables: true,
|
356
|
-
},
|
357
|
-
},
|
358
|
-
],
|
359
|
-
"@typescript-eslint/no-mixed-enums": ERROR,
|
360
|
-
"@typescript-eslint/no-namespace": OFF,
|
361
|
-
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": ERROR,
|
362
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": ERROR,
|
363
|
-
"@typescript-eslint/no-non-null-assertion": ERROR,
|
364
|
-
"@typescript-eslint/no-redundant-type-constituents": ERROR,
|
365
|
-
"@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban*/,
|
366
|
-
"@typescript-eslint/no-require-imports": [
|
367
|
-
ERROR,
|
368
|
-
{
|
369
|
-
allow: [],
|
370
|
-
},
|
371
|
-
],
|
372
|
-
"@typescript-eslint/no-this-alias": [
|
373
|
-
ERROR,
|
374
|
-
{
|
375
|
-
allowDestructuring: true,
|
376
|
-
allowedNames: [],
|
377
|
-
},
|
378
|
-
],
|
379
|
-
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [
|
380
|
-
ERROR,
|
381
|
-
{
|
382
|
-
allowComparingNullableBooleansToTrue: true,
|
383
|
-
allowComparingNullableBooleansToFalse: true,
|
384
|
-
},
|
385
|
-
],
|
386
|
-
"@typescript-eslint/no-unnecessary-condition": [
|
387
|
-
ERROR,
|
388
|
-
{
|
389
|
-
allowConstantLoopConditions: false,
|
390
|
-
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
391
|
-
},
|
392
|
-
],
|
393
|
-
"@typescript-eslint/no-unnecessary-qualifier": ERROR,
|
394
|
-
"@typescript-eslint/no-unnecessary-template-expression": ERROR,
|
395
|
-
"@typescript-eslint/no-unnecessary-type-arguments": ERROR,
|
396
|
-
"@typescript-eslint/no-unnecessary-type-assertion": [
|
397
|
-
ERROR,
|
398
|
-
{
|
399
|
-
typesToIgnore: [],
|
400
|
-
},
|
401
|
-
],
|
402
|
-
"@typescript-eslint/no-unnecessary-type-constraint": ERROR,
|
403
|
-
"@typescript-eslint/no-unnecessary-type-parameters": ERROR,
|
404
|
-
"@typescript-eslint/no-unsafe-argument": ERROR,
|
405
|
-
"@typescript-eslint/no-unsafe-assignment": ERROR,
|
406
|
-
"@typescript-eslint/no-unsafe-call": ERROR,
|
407
|
-
"@typescript-eslint/no-unsafe-declaration-merging": ERROR,
|
408
|
-
"@typescript-eslint/no-unsafe-enum-comparison": ERROR,
|
409
|
-
"@typescript-eslint/no-unsafe-function-type": ERROR,
|
410
|
-
"@typescript-eslint/no-unsafe-member-access": ERROR,
|
411
|
-
"@typescript-eslint/no-unsafe-return": ERROR,
|
412
|
-
"@typescript-eslint/no-unsafe-unary-minus": ERROR,
|
413
|
-
"@typescript-eslint/no-useless-empty-export": ERROR,
|
414
|
-
"@typescript-eslint/no-wrapper-object-types": ERROR,
|
415
|
-
"@typescript-eslint/non-nullable-type-assertion-style": OFF,
|
416
|
-
"@typescript-eslint/parameter-properties": [
|
417
|
-
ERROR,
|
418
|
-
{
|
419
|
-
prefer: "parameter-property" /* "parameter-property" | "class-property" */,
|
420
|
-
},
|
421
|
-
],
|
422
|
-
"@typescript-eslint/prefer-as-const": ERROR,
|
423
|
-
"@typescript-eslint/prefer-enum-initializers": ERROR,
|
424
|
-
"@typescript-eslint/prefer-find": ERROR,
|
425
|
-
"@typescript-eslint/prefer-for-of": ERROR,
|
426
|
-
"@typescript-eslint/prefer-function-type": ERROR,
|
427
|
-
"@typescript-eslint/prefer-includes": ERROR,
|
428
|
-
"@typescript-eslint/prefer-literal-enum-member": [
|
429
|
-
ERROR,
|
430
|
-
{
|
431
|
-
allowBitwiseExpressions: false,
|
432
|
-
},
|
433
|
-
],
|
434
|
-
"@typescript-eslint/prefer-namespace-keyword": ERROR,
|
435
|
-
"@typescript-eslint/prefer-nullish-coalescing": [
|
436
|
-
ERROR,
|
437
|
-
{
|
438
|
-
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
439
|
-
ignoreBooleanCoercion: false,
|
440
|
-
ignoreConditionalTests: false,
|
441
|
-
ignoreMixedLogicalExpressions: false,
|
442
|
-
ignorePrimitives: {
|
443
|
-
bigint: false,
|
444
|
-
"boolean": false,
|
445
|
-
number: false,
|
446
|
-
string: false,
|
447
|
-
},
|
448
|
-
ignoreTernaryTests: false,
|
449
|
-
},
|
450
|
-
], /* requires tsconfig: strictNullChecks */
|
451
|
-
"@typescript-eslint/prefer-optional-chain": [
|
452
|
-
ERROR,
|
453
|
-
{
|
454
|
-
allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,
|
455
|
-
checkAny: true,
|
456
|
-
checkBigInt: true,
|
457
|
-
checkBoolean: true,
|
458
|
-
checkNumber: true,
|
459
|
-
checkString: true,
|
460
|
-
checkUnknown: true,
|
461
|
-
requireNullish: false,
|
462
|
-
},
|
463
|
-
],
|
464
|
-
"@typescript-eslint/prefer-readonly": [
|
465
|
-
ERROR,
|
466
|
-
{
|
467
|
-
onlyInlineLambdas: false,
|
468
|
-
},
|
469
|
-
],
|
470
|
-
"@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
|
471
|
-
"@typescript-eslint/prefer-reduce-type-parameter": ERROR,
|
472
|
-
"@typescript-eslint/prefer-regexp-exec": ERROR,
|
473
|
-
"@typescript-eslint/prefer-return-this-type": ERROR,
|
474
|
-
"@typescript-eslint/prefer-string-starts-ends-with": [
|
475
|
-
ERROR,
|
476
|
-
{
|
477
|
-
allowSingleElementEquality: Never,
|
478
|
-
},
|
479
|
-
],
|
480
|
-
"@typescript-eslint/promise-function-async": [
|
481
|
-
ERROR,
|
482
|
-
{
|
483
|
-
allowAny: false,
|
484
|
-
allowedPromiseNames: [],
|
485
|
-
checkArrowFunctions: true,
|
486
|
-
checkFunctionDeclarations: true,
|
487
|
-
checkFunctionExpressions: true,
|
488
|
-
checkMethodDeclarations: true,
|
489
|
-
},
|
490
|
-
],
|
491
|
-
"@typescript-eslint/require-array-sort-compare": [
|
492
|
-
ERROR,
|
493
|
-
{
|
494
|
-
ignoreStringArrays: true,
|
495
|
-
},
|
496
|
-
],
|
497
|
-
"@typescript-eslint/restrict-plus-operands": [
|
498
|
-
ERROR,
|
499
|
-
{
|
500
|
-
allowAny: false,
|
501
|
-
allowBoolean: false,
|
502
|
-
allowNullish: false,
|
503
|
-
allowNumberAndString: false,
|
504
|
-
allowRegExp: false,
|
505
|
-
skipCompoundAssignments: false,
|
506
|
-
},
|
507
|
-
],
|
508
|
-
"@typescript-eslint/restrict-template-expressions": [
|
509
|
-
ERROR,
|
510
|
-
{
|
511
|
-
allowAny: true,
|
512
|
-
allowArray: true,
|
513
|
-
allowBoolean: true,
|
514
|
-
allowNullish: false,
|
515
|
-
allowNumber: true,
|
516
|
-
allowNever: false,
|
517
|
-
allowRegExp: false,
|
518
|
-
}, /* investigate: make stricter */
|
519
|
-
],
|
520
|
-
"@typescript-eslint/return-await": [
|
521
|
-
ERROR,
|
522
|
-
"in-try-catch",
|
523
|
-
] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
|
524
|
-
"@typescript-eslint/strict-boolean-expressions": [
|
525
|
-
ERROR,
|
526
|
-
{
|
527
|
-
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
528
|
-
allowAny: false,
|
529
|
-
allowNumber: true,
|
530
|
-
allowString: false,
|
531
|
-
allowNullableBoolean: false,
|
532
|
-
allowNullableEnum: false,
|
533
|
-
allowNullableNumber: false,
|
534
|
-
allowNullableObject: false,
|
535
|
-
allowNullableString: false,
|
536
|
-
},
|
537
|
-
], /* requires tsconfig: strictNullChecks */
|
538
|
-
"@typescript-eslint/switch-exhaustiveness-check": [
|
539
|
-
ERROR,
|
540
|
-
{
|
541
|
-
allowDefaultCaseForExhaustiveSwitch: false,
|
542
|
-
considerDefaultExhaustiveForUnions: true,
|
543
|
-
requireDefaultForNonUnion: true,
|
544
|
-
},
|
545
|
-
],
|
546
|
-
"@typescript-eslint/triple-slash-reference": [
|
547
|
-
ERROR,
|
548
|
-
{
|
549
|
-
lib: Never /** always | never */,
|
550
|
-
path: Never /** always | never */,
|
551
|
-
types: Never /** always | never | prefer-import */,
|
552
|
-
},
|
553
|
-
],
|
554
|
-
"@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
555
|
-
"@typescript-eslint/unbound-method": [
|
556
|
-
ERROR,
|
557
|
-
{
|
558
|
-
ignoreStatic: false,
|
559
|
-
},
|
560
|
-
],
|
561
|
-
"@typescript-eslint/unified-signatures": [
|
562
|
-
ERROR,
|
563
|
-
{
|
564
|
-
ignoreDifferentlyNamedParameters: false,
|
565
|
-
},
|
566
|
-
],
|
567
|
-
"@typescript-eslint/use-unknown-in-catch-callback-variable": ERROR,
|
568
|
-
},
|
569
|
-
] as const;
|
package/src/rules/ts/enable_x.ts
DELETED
@@ -1,117 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable_x,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
Always,
|
6
|
-
All,
|
7
|
-
} from "../../_strings";
|
8
|
-
|
9
|
-
export default [
|
10
|
-
enable_x,
|
11
|
-
{
|
12
|
-
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
13
|
-
"@typescript-eslint/class-methods-use-this": OFF /* preference -- eslint:off */,
|
14
|
-
"@typescript-eslint/consistent-return": OFF /* tsconfig: noImplicitReturns */,
|
15
|
-
"@typescript-eslint/default-param-last": ERROR,
|
16
|
-
"@typescript-eslint/dot-notation": [
|
17
|
-
ERROR,
|
18
|
-
{
|
19
|
-
allowKeywords: true,
|
20
|
-
|
21
|
-
// TS-only
|
22
|
-
allowPrivateClassPropertyAccess: true,
|
23
|
-
allowProtectedClassPropertyAccess: true,
|
24
|
-
allowIndexSignaturePropertyAccess: true,
|
25
|
-
},
|
26
|
-
],
|
27
|
-
"@typescript-eslint/init-declarations": [
|
28
|
-
ERROR,
|
29
|
-
Always,
|
30
|
-
],
|
31
|
-
"@typescript-eslint/max-params": OFF /* preference */,
|
32
|
-
"@typescript-eslint/no-array-constructor": ERROR,
|
33
|
-
"@typescript-eslint/no-dupe-class-members": OFF /* tsc */,
|
34
|
-
"@typescript-eslint/no-empty-function": [
|
35
|
-
ERROR,
|
36
|
-
{
|
37
|
-
allow: [
|
38
|
-
"constructors",
|
39
|
-
"private-constructors",
|
40
|
-
"protected-constructors",
|
41
|
-
"decoratedFunctions",
|
42
|
-
],
|
43
|
-
}, /* functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */
|
44
|
-
],
|
45
|
-
"@typescript-eslint/no-implied-eval": ERROR,
|
46
|
-
"@typescript-eslint/no-invalid-this": OFF /* tsconfig: { strict, noImplicitThis } */,
|
47
|
-
"@typescript-eslint/no-loop-func": ERROR,
|
48
|
-
"@typescript-eslint/no-magic-numbers": OFF,
|
49
|
-
"@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
50
|
-
"@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
51
|
-
"@typescript-eslint/no-shadow": OFF /* investigate */,
|
52
|
-
"@typescript-eslint/no-unused-expressions": [
|
53
|
-
ERROR,
|
54
|
-
{
|
55
|
-
allowShortCircuit: true,
|
56
|
-
allowTernary: true,
|
57
|
-
allowTaggedTemplates: true,
|
58
|
-
enforceForJSX: false,
|
59
|
-
},
|
60
|
-
],
|
61
|
-
"@typescript-eslint/no-unused-vars": [
|
62
|
-
ERROR,
|
63
|
-
{
|
64
|
-
vars: All,
|
65
|
-
args: All,
|
66
|
-
caughtErrors: All,
|
67
|
-
ignoreRestSiblings: false,
|
68
|
-
ignoreClassWithStaticInitBlock: false,
|
69
|
-
reportUsedIgnorePattern: true,
|
70
|
-
},
|
71
|
-
],
|
72
|
-
"@typescript-eslint/no-use-before-define": [
|
73
|
-
ERROR,
|
74
|
-
{
|
75
|
-
functions: true,
|
76
|
-
classes: true,
|
77
|
-
variables: true,
|
78
|
-
allowNamedExports: false,
|
79
|
-
enums: true,
|
80
|
-
typedefs: false /* changed 14.2.2 (still questionable) */,
|
81
|
-
ignoreTypeReferences: true,
|
82
|
-
},
|
83
|
-
],
|
84
|
-
"@typescript-eslint/no-useless-constructor": ERROR,
|
85
|
-
"@typescript-eslint/only-throw-error": [
|
86
|
-
ERROR,
|
87
|
-
{
|
88
|
-
allowThrowingAny: false,
|
89
|
-
allowThrowingUnknown: false,
|
90
|
-
},
|
91
|
-
],
|
92
|
-
"@typescript-eslint/prefer-destructuring": [
|
93
|
-
ERROR,
|
94
|
-
{
|
95
|
-
VariableDeclarator: {
|
96
|
-
array: true,
|
97
|
-
object: true,
|
98
|
-
},
|
99
|
-
AssignmentExpression: {
|
100
|
-
array: false,
|
101
|
-
object: false,
|
102
|
-
},
|
103
|
-
},
|
104
|
-
{
|
105
|
-
enforceForRenamedProperties: false,
|
106
|
-
enforceForDeclarationWithTypeAnnotation: false,
|
107
|
-
},
|
108
|
-
],
|
109
|
-
"@typescript-eslint/prefer-promise-reject-errors": [
|
110
|
-
ERROR,
|
111
|
-
{
|
112
|
-
allowEmptyReject: false,
|
113
|
-
},
|
114
|
-
],
|
115
|
-
"@typescript-eslint/require-await": ERROR,
|
116
|
-
},
|
117
|
-
] as const;
|
package/src/rules/ts/index.ts
DELETED