@eslinted/defaults 3.0.0
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/.github/workflows/RELEASE.yml +36 -0
- package/.github/workflows/rc.yml +36 -0
- package/.markdownlint.jsonc +122 -0
- package/LICENSE +21 -0
- package/README.md +5 -0
- package/SECURITY.md +9 -0
- package/dist/_strings/id.d.ts +2 -0
- package/dist/_strings/id.d.ts.map +1 -0
- package/dist/_strings/id.js +2 -0
- package/dist/_strings/id.js.map +1 -0
- package/dist/_strings/index.d.ts +4 -0
- package/dist/_strings/index.d.ts.map +1 -0
- package/dist/_strings/index.js +4 -0
- package/dist/_strings/index.js.map +1 -0
- package/dist/_strings/option.d.ts +2 -0
- package/dist/_strings/option.d.ts.map +1 -0
- package/dist/_strings/option.js +2 -0
- package/dist/_strings/option.js.map +1 -0
- package/dist/_strings/state.d.ts +2 -0
- package/dist/_strings/state.d.ts.map +1 -0
- package/dist/_strings/state.js +2 -0
- package/dist/_strings/state.js.map +1 -0
- package/dist/_strings/state.spec.d.ts +2 -0
- package/dist/_strings/state.spec.d.ts.map +1 -0
- package/dist/_strings/state.spec.js +31 -0
- package/dist/_strings/state.spec.js.map +1 -0
- package/dist/files/index.d.ts +12 -0
- package/dist/files/index.d.ts.map +1 -0
- package/dist/files/index.js +20 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/scopes/html.d.ts +3 -0
- package/dist/files/scopes/html.d.ts.map +1 -0
- package/dist/files/scopes/html.js +2 -0
- package/dist/files/scopes/html.js.map +1 -0
- package/dist/files/scopes/js.d.ts +3 -0
- package/dist/files/scopes/js.d.ts.map +1 -0
- package/dist/files/scopes/js.js +5 -0
- package/dist/files/scopes/js.js.map +1 -0
- package/dist/files/scopes/json.d.ts +3 -0
- package/dist/files/scopes/json.d.ts.map +1 -0
- package/dist/files/scopes/json.js +2 -0
- package/dist/files/scopes/json.js.map +1 -0
- package/dist/files/scopes/jsonc.d.ts +3 -0
- package/dist/files/scopes/jsonc.d.ts.map +1 -0
- package/dist/files/scopes/jsonc.js +6 -0
- package/dist/files/scopes/jsonc.js.map +1 -0
- package/dist/files/scopes/mocha.d.ts +3 -0
- package/dist/files/scopes/mocha.d.ts.map +1 -0
- package/dist/files/scopes/mocha.js +5 -0
- package/dist/files/scopes/mocha.js.map +1 -0
- package/dist/files/scopes/svelte.d.ts +3 -0
- package/dist/files/scopes/svelte.d.ts.map +1 -0
- package/dist/files/scopes/svelte.js +2 -0
- package/dist/files/scopes/svelte.js.map +1 -0
- package/dist/files/scopes/ts.d.ts +3 -0
- package/dist/files/scopes/ts.d.ts.map +1 -0
- package/dist/files/scopes/ts.js +2 -0
- package/dist/files/scopes/ts.js.map +1 -0
- package/dist/files/scopes/yml.d.ts +3 -0
- package/dist/files/scopes/yml.d.ts.map +1 -0
- package/dist/files/scopes/yml.js +2 -0
- package/dist/files/scopes/yml.js.map +1 -0
- package/dist/ignores/index.d.ts +12 -0
- package/dist/ignores/index.d.ts.map +1 -0
- package/dist/ignores/index.js +29 -0
- package/dist/ignores/index.js.map +1 -0
- package/dist/ignores/scopes/html.d.ts +3 -0
- package/dist/ignores/scopes/html.d.ts.map +1 -0
- package/dist/ignores/scopes/html.js +2 -0
- package/dist/ignores/scopes/html.js.map +1 -0
- package/dist/ignores/scopes/js.d.ts +3 -0
- package/dist/ignores/scopes/js.d.ts.map +1 -0
- package/dist/ignores/scopes/js.js +2 -0
- package/dist/ignores/scopes/js.js.map +1 -0
- package/dist/ignores/scopes/json.d.ts +3 -0
- package/dist/ignores/scopes/json.d.ts.map +1 -0
- package/dist/ignores/scopes/json.js +2 -0
- package/dist/ignores/scopes/json.js.map +1 -0
- package/dist/ignores/scopes/jsonc.d.ts +3 -0
- package/dist/ignores/scopes/jsonc.d.ts.map +1 -0
- package/dist/ignores/scopes/jsonc.js +2 -0
- package/dist/ignores/scopes/jsonc.js.map +1 -0
- package/dist/ignores/scopes/mocha.d.ts +3 -0
- package/dist/ignores/scopes/mocha.d.ts.map +1 -0
- package/dist/ignores/scopes/mocha.js +2 -0
- package/dist/ignores/scopes/mocha.js.map +1 -0
- package/dist/ignores/scopes/svelte.d.ts +3 -0
- package/dist/ignores/scopes/svelte.d.ts.map +1 -0
- package/dist/ignores/scopes/svelte.js +2 -0
- package/dist/ignores/scopes/svelte.js.map +1 -0
- package/dist/ignores/scopes/ts.d.ts +3 -0
- package/dist/ignores/scopes/ts.d.ts.map +1 -0
- package/dist/ignores/scopes/ts.js +2 -0
- package/dist/ignores/scopes/ts.js.map +1 -0
- package/dist/ignores/scopes/yml.d.ts +3 -0
- package/dist/ignores/scopes/yml.d.ts.map +1 -0
- package/dist/ignores/scopes/yml.js +2 -0
- package/dist/ignores/scopes/yml.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/rules/html/enable.d.ts +62 -0
- package/dist/rules/html/enable.d.ts.map +1 -0
- package/dist/rules/html/enable.js +93 -0
- package/dist/rules/html/enable.js.map +1 -0
- package/dist/rules/html/index.d.ts +63 -0
- package/dist/rules/html/index.d.ts.map +1 -0
- package/dist/rules/html/index.js +3 -0
- package/dist/rules/html/index.js.map +1 -0
- package/dist/rules/index.d.ts +1521 -0
- package/dist/rules/index.d.ts.map +1 -0
- package/dist/rules/index.js +19 -0
- package/dist/rules/index.js.map +1 -0
- package/dist/rules/js/enable-stylistic.d.ts +420 -0
- package/dist/rules/js/enable-stylistic.d.ts.map +1 -0
- package/dist/rules/js/enable-stylistic.js +641 -0
- package/dist/rules/js/enable-stylistic.js.map +1 -0
- package/dist/rules/js/enable.d.ts +347 -0
- package/dist/rules/js/enable.d.ts.map +1 -0
- package/dist/rules/js/enable.js +519 -0
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/rules/js/index.d.ts +766 -0
- package/dist/rules/js/index.d.ts.map +1 -0
- package/dist/rules/js/index.js +7 -0
- package/dist/rules/js/index.js.map +1 -0
- package/dist/rules/json/enable-ext.d.ts +49 -0
- package/dist/rules/json/enable-ext.d.ts.map +1 -0
- package/dist/rules/json/enable-ext.js +80 -0
- package/dist/rules/json/enable-ext.js.map +1 -0
- package/dist/rules/json/enable.d.ts +26 -0
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/rules/json/enable.js +30 -0
- package/dist/rules/json/enable.js.map +1 -0
- package/dist/rules/json/index.d.ts +74 -0
- package/dist/rules/json/index.d.ts.map +1 -0
- package/dist/rules/json/index.js +7 -0
- package/dist/rules/json/index.js.map +1 -0
- package/dist/rules/jsonc/index.d.ts +6 -0
- package/dist/rules/jsonc/index.d.ts.map +1 -0
- package/dist/rules/jsonc/index.js +3 -0
- package/dist/rules/jsonc/index.js.map +1 -0
- package/dist/rules/jsonc/override.d.ts +5 -0
- package/dist/rules/jsonc/override.d.ts.map +1 -0
- package/dist/rules/jsonc/override.js +12 -0
- package/dist/rules/jsonc/override.js.map +1 -0
- package/dist/rules/mocha/disable.d.ts +4 -0
- package/dist/rules/mocha/disable.d.ts.map +1 -0
- package/dist/rules/mocha/disable.js +8 -0
- package/dist/rules/mocha/disable.js.map +1 -0
- package/dist/rules/mocha/enable.d.ts +34 -0
- package/dist/rules/mocha/enable.d.ts.map +1 -0
- package/dist/rules/mocha/enable.js +47 -0
- package/dist/rules/mocha/enable.js.map +1 -0
- package/dist/rules/mocha/index.d.ts +37 -0
- package/dist/rules/mocha/index.d.ts.map +1 -0
- package/dist/rules/mocha/index.js +7 -0
- package/dist/rules/mocha/index.js.map +1 -0
- package/dist/rules/svelte/disable-ext.d.ts +5 -0
- package/dist/rules/svelte/disable-ext.d.ts.map +1 -0
- package/dist/rules/svelte/disable-ext.js +9 -0
- package/dist/rules/svelte/disable-ext.js.map +1 -0
- package/dist/rules/svelte/disable-ts.d.ts +5 -0
- package/dist/rules/svelte/disable-ts.d.ts.map +1 -0
- package/dist/rules/svelte/disable-ts.js +9 -0
- package/dist/rules/svelte/disable-ts.js.map +1 -0
- package/dist/rules/svelte/disable.d.ts +5 -0
- package/dist/rules/svelte/disable.d.ts.map +1 -0
- package/dist/rules/svelte/disable.js +9 -0
- package/dist/rules/svelte/disable.js.map +1 -0
- package/dist/rules/svelte/enable-ext.d.ts +7 -0
- package/dist/rules/svelte/enable-ext.d.ts.map +1 -0
- package/dist/rules/svelte/enable-ext.js +15 -0
- package/dist/rules/svelte/enable-ext.js.map +1 -0
- package/dist/rules/svelte/enable.d.ts +126 -0
- package/dist/rules/svelte/enable.d.ts.map +1 -0
- package/dist/rules/svelte/enable.js +193 -0
- package/dist/rules/svelte/enable.js.map +1 -0
- package/dist/rules/svelte/index.d.ts +141 -0
- package/dist/rules/svelte/index.d.ts.map +1 -0
- package/dist/rules/svelte/index.js +13 -0
- package/dist/rules/svelte/index.js.map +1 -0
- package/dist/rules/ts/disable-ext.d.ts +27 -0
- package/dist/rules/ts/disable-ext.d.ts.map +1 -0
- package/dist/rules/ts/disable-ext.js +31 -0
- package/dist/rules/ts/disable-ext.js.map +1 -0
- package/dist/rules/ts/disable.d.ts +17 -0
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/rules/ts/disable.js +21 -0
- package/dist/rules/ts/disable.js.map +1 -0
- package/dist/rules/ts/enable-ext.d.ts +71 -0
- package/dist/rules/ts/enable-ext.d.ts.map +1 -0
- package/dist/rules/ts/enable-ext.js +108 -0
- package/dist/rules/ts/enable-ext.js.map +1 -0
- package/dist/rules/ts/enable.d.ts +264 -0
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/rules/ts/enable.js +520 -0
- package/dist/rules/ts/enable.js.map +1 -0
- package/dist/rules/ts/index.d.ts +374 -0
- package/dist/rules/ts/index.d.ts.map +1 -0
- package/dist/rules/ts/index.js +11 -0
- package/dist/rules/ts/index.js.map +1 -0
- package/dist/rules/yml/enable-ext.d.ts +36 -0
- package/dist/rules/yml/enable-ext.d.ts.map +1 -0
- package/dist/rules/yml/enable-ext.js +66 -0
- package/dist/rules/yml/enable-ext.js.map +1 -0
- package/dist/rules/yml/enable.d.ts +38 -0
- package/dist/rules/yml/enable.d.ts.map +1 -0
- package/dist/rules/yml/enable.js +68 -0
- package/dist/rules/yml/enable.js.map +1 -0
- package/dist/rules/yml/index.d.ts +73 -0
- package/dist/rules/yml/index.d.ts.map +1 -0
- package/dist/rules/yml/index.js +7 -0
- package/dist/rules/yml/index.js.map +1 -0
- package/dist/settings.d.ts +7 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/settings.js +7 -0
- package/dist/settings.js.map +1 -0
- package/eslint.config.js +3 -0
- package/package.json +94 -0
- package/src/_strings/id.ts +8 -0
- package/src/_strings/index.ts +3 -0
- package/src/_strings/option.ts +29 -0
- package/src/_strings/state.spec.ts +31 -0
- package/src/_strings/state.ts +4 -0
- package/src/files/index.ts +20 -0
- package/src/files/scopes/html.ts +1 -0
- package/src/files/scopes/js.ts +4 -0
- package/src/files/scopes/json.ts +1 -0
- package/src/files/scopes/jsonc.ts +5 -0
- package/src/files/scopes/mocha.ts +4 -0
- package/src/files/scopes/svelte.ts +1 -0
- package/src/files/scopes/ts.ts +1 -0
- package/src/files/scopes/yml.ts +1 -0
- package/src/ignores/index.ts +31 -0
- package/src/ignores/scopes/html.ts +1 -0
- package/src/ignores/scopes/js.ts +1 -0
- package/src/ignores/scopes/json.ts +1 -0
- package/src/ignores/scopes/jsonc.ts +1 -0
- package/src/ignores/scopes/mocha.ts +1 -0
- package/src/ignores/scopes/svelte.ts +1 -0
- package/src/ignores/scopes/ts.ts +1 -0
- package/src/ignores/scopes/yml.ts +1 -0
- package/src/index.ts +5 -0
- package/src/rules/html/enable.ts +117 -0
- package/src/rules/html/index.ts +3 -0
- package/src/rules/index.ts +19 -0
- package/src/rules/js/enable-stylistic.ts +664 -0
- package/src/rules/js/enable.ts +547 -0
- package/src/rules/js/index.ts +7 -0
- package/src/rules/json/enable-ext.ts +91 -0
- package/src/rules/json/enable.ts +35 -0
- package/src/rules/json/index.ts +7 -0
- package/src/rules/jsonc/index.ts +3 -0
- package/src/rules/jsonc/override.ts +18 -0
- package/src/rules/mocha/disable.ts +11 -0
- package/src/rules/mocha/enable.ts +53 -0
- package/src/rules/mocha/index.ts +7 -0
- package/src/rules/svelte/disable-ext.ts +13 -0
- package/src/rules/svelte/disable-ts.ts +12 -0
- package/src/rules/svelte/disable.ts +17 -0
- package/src/rules/svelte/enable-ext.ts +22 -0
- package/src/rules/svelte/enable.ts +232 -0
- package/src/rules/svelte/index.ts +13 -0
- package/src/rules/ts/disable-ext.ts +35 -0
- package/src/rules/ts/disable.ts +25 -0
- package/src/rules/ts/enable-ext.ts +117 -0
- package/src/rules/ts/enable.ts +569 -0
- package/src/rules/ts/index.ts +11 -0
- package/src/rules/yml/enable-ext.ts +73 -0
- package/src/rules/yml/enable.ts +76 -0
- package/src/rules/yml/index.ts +7 -0
- package/src/settings.ts +6 -0
- package/tsconfig.json +163 -0
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
ERROR,
|
|
4
|
+
OFF,
|
|
5
|
+
never,
|
|
6
|
+
explicit,
|
|
7
|
+
} from "../../_strings";
|
|
8
|
+
|
|
9
|
+
export const TsEnable = [
|
|
10
|
+
ID.Enable,
|
|
11
|
+
{
|
|
12
|
+
// DOC: 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
|
+
} as const,
|
|
569
|
+
] as const;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TsDisable } from "./disable";
|
|
2
|
+
import { TsDisableExtension } from "./disable-ext";
|
|
3
|
+
import { TsEnable } from "./enable";
|
|
4
|
+
import { TsEnableExtension } from "./enable-ext";
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
TsDisable,
|
|
8
|
+
TsDisableExtension,
|
|
9
|
+
TsEnable,
|
|
10
|
+
TsEnableExtension,
|
|
11
|
+
];
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
ERROR,
|
|
4
|
+
never,
|
|
5
|
+
always,
|
|
6
|
+
strict,
|
|
7
|
+
} from "../../_strings";
|
|
8
|
+
|
|
9
|
+
export const YmlEnableExtension = [
|
|
10
|
+
ID.EnableExtension,
|
|
11
|
+
{
|
|
12
|
+
// DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
|
|
13
|
+
"yml/flow-mapping-curly-newline": [
|
|
14
|
+
ERROR,
|
|
15
|
+
{
|
|
16
|
+
consistent: false,
|
|
17
|
+
multiline: true,
|
|
18
|
+
minProperties: 2,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
"yml/flow-mapping-curly-spacing": [
|
|
22
|
+
ERROR,
|
|
23
|
+
always,
|
|
24
|
+
{
|
|
25
|
+
arraysInObjects: true,
|
|
26
|
+
objectsInObjects: true,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
"yml/flow-sequence-bracket-newline": [
|
|
30
|
+
ERROR,
|
|
31
|
+
{
|
|
32
|
+
multiline: true,
|
|
33
|
+
minItems: null,
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
"yml/flow-sequence-bracket-spacing": [
|
|
37
|
+
ERROR,
|
|
38
|
+
never,
|
|
39
|
+
{
|
|
40
|
+
singleValue: false,
|
|
41
|
+
objectsInArrays: false,
|
|
42
|
+
arraysInArrays: false,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
"yml/key-spacing": [
|
|
46
|
+
ERROR,
|
|
47
|
+
{
|
|
48
|
+
beforeColon: false,
|
|
49
|
+
afterColon: true,
|
|
50
|
+
mode: strict,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
"yml/no-irregular-whitespace": [
|
|
54
|
+
ERROR,
|
|
55
|
+
{
|
|
56
|
+
skipQuotedScalars: true,
|
|
57
|
+
skipComments: false,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
"yml/no-multiple-empty-lines": [
|
|
61
|
+
ERROR,
|
|
62
|
+
{
|
|
63
|
+
max: 1,
|
|
64
|
+
maxEOF: 1,
|
|
65
|
+
maxBOF: 0,
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
"yml/spaced-comment": [
|
|
69
|
+
ERROR,
|
|
70
|
+
always,
|
|
71
|
+
],
|
|
72
|
+
} as const,
|
|
73
|
+
] as const;
|