@eslinted/defaults 16.0.3 → 17.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +194 -207
- package/dist/index.d.ts.map +1 -1
- package/dist/index.spec.js +2 -2
- package/dist/index.spec.js.map +1 -1
- package/dist/rules/css/index.d.ts +13 -12
- package/dist/rules/css/index.d.ts.map +1 -1
- package/dist/rules/css/index.js +19 -3
- package/dist/rules/css/index.js.map +1 -1
- package/dist/rules/html/index.d.ts +43 -42
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/html/index.js +75 -3
- package/dist/rules/html/index.js.map +1 -1
- package/dist/rules/index.d.ts +194 -207
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/index.js +1 -1
- package/dist/rules/index.js.map +1 -1
- package/dist/rules/{base.d.ts → js.d.ts} +70 -70
- package/dist/rules/{base.d.ts.map → js.d.ts.map} +1 -1
- package/dist/rules/{base.eslint.d.ts → js.eslint.d.ts} +2 -2
- package/dist/rules/js.eslint.d.ts.map +1 -0
- package/dist/rules/{base.eslint.js → js.eslint.js} +2 -2
- package/dist/rules/js.eslint.js.map +1 -0
- package/dist/rules/js.js +7 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/rules/{base.stylistic.d.ts → js.stylistic.d.ts} +69 -69
- package/dist/rules/js.stylistic.d.ts.map +1 -0
- package/dist/rules/{base.stylistic.js → js.stylistic.js} +69 -69
- package/dist/rules/js.stylistic.js.map +1 -0
- package/dist/rules/json/index.d.ts +3 -3
- package/dist/rules/json/index.js +6 -6
- package/dist/rules/json/index.js.map +1 -1
- package/dist/rules/json/{enable.d.ts → json.d.ts} +2 -2
- package/dist/rules/json/json.d.ts.map +1 -0
- package/dist/rules/json/{enable.js → json.js} +2 -2
- package/dist/rules/json/json.js.map +1 -0
- package/dist/rules/json/plugin/{extension.d.ts → extend.d.ts} +2 -2
- package/dist/rules/json/plugin/extend.d.ts.map +1 -0
- package/dist/rules/json/plugin/{extension.js → extend.js} +2 -2
- package/dist/rules/json/plugin/extend.js.map +1 -0
- package/dist/rules/json/plugin/index.d.ts +1 -1
- package/dist/rules/json/plugin/index.js +1 -1
- package/dist/rules/json/plugin/index.js.map +1 -1
- package/dist/rules/jsonc/index.d.ts +3 -2
- package/dist/rules/jsonc/index.d.ts.map +1 -1
- package/dist/rules/jsonc/index.js +9 -3
- package/dist/rules/jsonc/index.js.map +1 -1
- package/dist/rules/jsoncc/index.d.ts +3 -2
- package/dist/rules/jsoncc/index.d.ts.map +1 -1
- package/dist/rules/jsoncc/index.js +12 -3
- package/dist/rules/jsoncc/index.js.map +1 -1
- package/dist/rules/mocha/chai/expect.d.ts +1 -1
- package/dist/rules/mocha/chai/expect.js +1 -1
- package/dist/rules/mocha/chai/expect.js.map +1 -1
- package/dist/rules/mocha/chai/index.d.ts +3 -2
- package/dist/rules/mocha/chai/index.d.ts.map +1 -1
- package/dist/rules/mocha/chai/index.js +3 -2
- package/dist/rules/mocha/chai/index.js.map +1 -1
- package/dist/rules/mocha/index.d.ts +6 -10
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/dist/rules/mocha/index.js +6 -8
- package/dist/rules/mocha/index.js.map +1 -1
- package/dist/rules/mocha/{enable.d.ts → mocha.d.ts} +3 -2
- package/dist/rules/mocha/mocha.d.ts.map +1 -0
- package/dist/rules/mocha/{enable.js → mocha.js} +3 -2
- package/dist/rules/mocha/mocha.js.map +1 -0
- package/dist/rules/svelte/disable.d.ts +4 -4
- package/dist/rules/svelte/disable.d.ts.map +1 -1
- package/dist/rules/svelte/disable.js +4 -4
- package/dist/rules/svelte/disable.js.map +1 -1
- package/dist/rules/svelte/{extension/index.d.ts → extend.d.ts} +5 -3
- package/dist/rules/svelte/extend.d.ts.map +1 -0
- package/dist/rules/svelte/{extension/index.js → extend.js} +4 -2
- package/dist/rules/svelte/extend.js.map +1 -0
- package/dist/rules/svelte/index.d.ts +8 -13
- package/dist/rules/svelte/index.d.ts.map +1 -1
- package/dist/rules/svelte/index.js +6 -8
- package/dist/rules/svelte/index.js.map +1 -1
- package/dist/rules/svelte/{enable.d.ts → svelte.d.ts} +2 -2
- package/dist/rules/svelte/svelte.d.ts.map +1 -0
- package/dist/rules/svelte/{enable.js → svelte.js} +2 -2
- package/dist/rules/svelte/{enable.js.map → svelte.js.map} +1 -1
- package/dist/rules/ts/disable.d.ts +1 -1
- package/dist/rules/ts/disable.js +1 -1
- package/dist/rules/ts/disable.js.map +1 -1
- package/dist/rules/ts/extend.d.ts +48 -0
- package/dist/rules/ts/extend.d.ts.map +1 -0
- package/dist/rules/ts/{extension/index.js → extend.js} +17 -9
- package/dist/rules/ts/extend.js.map +1 -0
- package/dist/rules/ts/index.d.ts +102 -106
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/ts/index.js +6 -8
- package/dist/rules/ts/index.js.map +1 -1
- package/dist/rules/ts/ts.d.ts +164 -0
- package/dist/rules/ts/ts.d.ts.map +1 -0
- package/dist/rules/ts/ts.js +162 -0
- package/dist/rules/ts/ts.js.map +1 -0
- package/dist/rules/yml/{extension.d.ts → extend.d.ts} +2 -2
- package/dist/rules/yml/extend.d.ts.map +1 -0
- package/dist/rules/yml/{extension.js → extend.js} +2 -2
- package/dist/rules/yml/extend.js.map +1 -0
- package/dist/rules/yml/index.d.ts +2 -2
- package/dist/rules/yml/index.js +4 -4
- package/dist/rules/yml/index.js.map +1 -1
- package/dist/rules/yml/{enable.d.ts → yml.d.ts} +2 -2
- package/dist/rules/yml/yml.d.ts.map +1 -0
- package/dist/rules/yml/{enable.js → yml.js} +2 -2
- package/dist/rules/yml/yml.js.map +1 -0
- package/package.json +1 -1
- package/src/index.spec.ts +2 -2
- package/src/rules/css/index.ts +23 -2
- package/src/rules/html/index.ts +113 -2
- package/src/rules/index.ts +1 -1
- package/src/rules/{base.eslint.ts → js.eslint.ts} +1 -1
- package/src/rules/{base.stylistic.ts → js.stylistic.ts} +75 -75
- package/src/rules/js.ts +7 -0
- package/src/rules/json/index.ts +6 -6
- package/src/rules/json/{enable.ts → json.ts} +1 -1
- package/src/rules/json/plugin/{extension.ts → extend.ts} +8 -8
- package/src/rules/json/plugin/index.ts +1 -1
- package/src/rules/jsonc/index.ts +9 -2
- package/src/rules/jsoncc/index.ts +12 -2
- package/src/rules/mocha/chai/expect.ts +1 -1
- package/src/rules/mocha/chai/index.ts +4 -3
- package/src/rules/mocha/index.ts +6 -8
- package/src/rules/mocha/{enable.ts → mocha.ts} +2 -1
- package/src/rules/svelte/disable.ts +7 -7
- package/src/rules/svelte/extend.ts +15 -0
- package/src/rules/svelte/index.ts +6 -8
- package/src/rules/svelte/{enable.ts → svelte.ts} +2 -2
- package/src/rules/ts/disable.ts +1 -1
- package/src/rules/ts/extend.ts +51 -0
- package/src/rules/ts/index.ts +6 -8
- package/src/rules/ts/ts.ts +181 -0
- package/src/rules/yml/{extension.ts → extend.ts} +4 -4
- package/src/rules/yml/index.ts +4 -4
- package/src/rules/yml/{enable.ts → yml.ts} +2 -2
- package/dist/rules/base.eslint.d.ts.map +0 -1
- package/dist/rules/base.eslint.js.map +0 -1
- package/dist/rules/base.js +0 -7
- package/dist/rules/base.js.map +0 -1
- package/dist/rules/base.stylistic.d.ts.map +0 -1
- package/dist/rules/base.stylistic.js.map +0 -1
- package/dist/rules/css/enable.d.ts +0 -19
- package/dist/rules/css/enable.d.ts.map +0 -1
- package/dist/rules/css/enable.js +0 -17
- package/dist/rules/css/enable.js.map +0 -1
- package/dist/rules/html/enable.d.ts +0 -79
- package/dist/rules/html/enable.d.ts.map +0 -1
- package/dist/rules/html/enable.js +0 -73
- package/dist/rules/html/enable.js.map +0 -1
- package/dist/rules/json/enable.d.ts.map +0 -1
- package/dist/rules/json/enable.js.map +0 -1
- package/dist/rules/json/plugin/extension.d.ts.map +0 -1
- package/dist/rules/json/plugin/extension.js.map +0 -1
- package/dist/rules/jsonc/override.d.ts +0 -9
- package/dist/rules/jsonc/override.d.ts.map +0 -1
- package/dist/rules/jsonc/override.js +0 -7
- package/dist/rules/jsonc/override.js.map +0 -1
- package/dist/rules/jsoncc/override.d.ts +0 -12
- package/dist/rules/jsoncc/override.d.ts.map +0 -1
- package/dist/rules/jsoncc/override.js +0 -10
- package/dist/rules/jsoncc/override.js.map +0 -1
- package/dist/rules/mocha/disable.d.ts +0 -10
- 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.map +0 -1
- package/dist/rules/mocha/enable.js.map +0 -1
- package/dist/rules/svelte/enable.d.ts.map +0 -1
- package/dist/rules/svelte/extension/disable.d.ts +0 -11
- package/dist/rules/svelte/extension/disable.d.ts.map +0 -1
- package/dist/rules/svelte/extension/disable.js +0 -9
- package/dist/rules/svelte/extension/disable.js.map +0 -1
- package/dist/rules/svelte/extension/index.d.ts.map +0 -1
- package/dist/rules/svelte/extension/index.js.map +0 -1
- package/dist/rules/ts/enable.d.ts +0 -164
- package/dist/rules/ts/enable.d.ts.map +0 -1
- package/dist/rules/ts/enable.js +0 -162
- package/dist/rules/ts/enable.js.map +0 -1
- package/dist/rules/ts/extension/disable.d.ts +0 -16
- package/dist/rules/ts/extension/disable.d.ts.map +0 -1
- package/dist/rules/ts/extension/disable.js +0 -14
- package/dist/rules/ts/extension/disable.js.map +0 -1
- package/dist/rules/ts/extension/index.d.ts +0 -40
- package/dist/rules/ts/extension/index.d.ts.map +0 -1
- package/dist/rules/ts/extension/index.js.map +0 -1
- package/dist/rules/yml/enable.d.ts.map +0 -1
- package/dist/rules/yml/enable.js.map +0 -1
- package/dist/rules/yml/extension.d.ts.map +0 -1
- package/dist/rules/yml/extension.js.map +0 -1
- package/src/rules/base.ts +0 -7
- package/src/rules/css/enable.ts +0 -22
- package/src/rules/html/enable.ts +0 -112
- package/src/rules/jsonc/override.ts +0 -8
- package/src/rules/jsoncc/override.ts +0 -11
- package/src/rules/mocha/disable.ts +0 -10
- package/src/rules/svelte/extension/disable.ts +0 -10
- package/src/rules/svelte/extension/index.ts +0 -13
- package/src/rules/ts/enable.ts +0 -181
- package/src/rules/ts/extension/disable.ts +0 -31
- package/src/rules/ts/extension/index.ts +0 -58
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { State } from "../../state";
|
|
2
|
-
|
|
3
|
-
// DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
|
4
|
-
export default {
|
|
5
|
-
id: "enable/extension",
|
|
6
|
-
rules: {
|
|
7
|
-
"svelte/no-inner-declarations": [
|
|
8
|
-
State.ON,
|
|
9
|
-
"both",
|
|
10
|
-
] /* same options: no-inner-declarations */,
|
|
11
|
-
"svelte/no-trailing-spaces": State.ON /* same options: @stylistic/no-trailing-spaces */,
|
|
12
|
-
} as const,
|
|
13
|
-
};
|
package/src/rules/ts/enable.ts
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { State } from "../state";
|
|
2
|
-
|
|
3
|
-
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
4
|
-
export default {
|
|
5
|
-
id: "enable",
|
|
6
|
-
rules: {
|
|
7
|
-
// "@typescript-eslint/adjacent-overload-signatures": State.OFF,
|
|
8
|
-
// "@typescript-eslint/array-type": State.OFF /* preference: ideally, I'd like to don't-care mutable arrays while requiring readonly [] syntax for immutable arrays, but there is no way to do that with the current rule options */,
|
|
9
|
-
"@typescript-eslint/await-thenable": State.ON,
|
|
10
|
-
"@typescript-eslint/ban-ts-comment": State.ON,
|
|
11
|
-
"@typescript-eslint/ban-tslint-comment": State.ON,
|
|
12
|
-
"@typescript-eslint/class-literal-property-style": State.ON,
|
|
13
|
-
"@typescript-eslint/consistent-generic-constructors": State.ON,
|
|
14
|
-
"@typescript-eslint/consistent-indexed-object-style": State.ON,
|
|
15
|
-
"@typescript-eslint/consistent-type-assertions": [
|
|
16
|
-
State.ON,
|
|
17
|
-
{
|
|
18
|
-
arrayLiteralTypeAssertions: "never",
|
|
19
|
-
objectLiteralTypeAssertions: "never",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
// "@typescript-eslint/consistent-type-definitions": State.OFF,
|
|
23
|
-
"@typescript-eslint/consistent-type-exports": State.ON,
|
|
24
|
-
"@typescript-eslint/consistent-type-imports": State.ON,
|
|
25
|
-
// "@typescript-eslint/explicit-function-return-type": State.OFF,
|
|
26
|
-
"@typescript-eslint/explicit-member-accessibility": [
|
|
27
|
-
State.ON,
|
|
28
|
-
{
|
|
29
|
-
overrides: {
|
|
30
|
-
constructors: "no-public",
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
// "@typescript-eslint/explicit-module-boundary-types": State.OFF,
|
|
35
|
-
"@typescript-eslint/member-ordering": [
|
|
36
|
-
State.ON,
|
|
37
|
-
{
|
|
38
|
-
"default": {
|
|
39
|
-
optionalityOrder: "required-first",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
"@typescript-eslint/method-signature-style": State.ON,
|
|
44
|
-
// "@typescript-eslint/naming-convention": State.OFF,
|
|
45
|
-
"@typescript-eslint/no-array-delete": State.ON,
|
|
46
|
-
"@typescript-eslint/no-base-to-string": State.ON,
|
|
47
|
-
"@typescript-eslint/no-confusing-non-null-assertion": State.ON,
|
|
48
|
-
"@typescript-eslint/no-confusing-void-expression": State.ON,
|
|
49
|
-
// "@typescript-eslint/no-deprecated": State.OFF /* incompatible: Cannot be used with jsDocParsingMode: "none" */,
|
|
50
|
-
"@typescript-eslint/no-duplicate-enum-values": State.ON,
|
|
51
|
-
"@typescript-eslint/no-duplicate-type-constituents": State.ON,
|
|
52
|
-
"@typescript-eslint/no-dynamic-delete": State.ON,
|
|
53
|
-
"@typescript-eslint/no-empty-object-type": State.ON,
|
|
54
|
-
"@typescript-eslint/no-explicit-any": [
|
|
55
|
-
State.ON,
|
|
56
|
-
{
|
|
57
|
-
fixToUnknown: true,
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
"@typescript-eslint/no-extra-non-null-assertion": State.ON,
|
|
61
|
-
"@typescript-eslint/no-extraneous-class": [
|
|
62
|
-
State.ON,
|
|
63
|
-
{
|
|
64
|
-
allowEmpty: true,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
"@typescript-eslint/no-floating-promises": [
|
|
68
|
-
State.ON,
|
|
69
|
-
{
|
|
70
|
-
checkThenables: true,
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
"@typescript-eslint/no-for-in-array": State.ON,
|
|
74
|
-
"@typescript-eslint/no-import-type-side-effects": State.ON,
|
|
75
|
-
"@typescript-eslint/no-inferrable-types": State.ON,
|
|
76
|
-
// "@typescript-eslint/no-invalid-void-type": State.OFF /* preference - I powerfully ideologically disagree with disallowing void, a valid type */,
|
|
77
|
-
"@typescript-eslint/no-meaningless-void-operator": [
|
|
78
|
-
State.ON,
|
|
79
|
-
{
|
|
80
|
-
checkNever: true,
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
"@typescript-eslint/no-misused-new": State.ON,
|
|
84
|
-
"@typescript-eslint/no-misused-promises": State.ON,
|
|
85
|
-
"@typescript-eslint/no-misused-spread": State.ON,
|
|
86
|
-
"@typescript-eslint/no-mixed-enums": State.ON,
|
|
87
|
-
// "@typescript-eslint/no-namespace": State.OFF,
|
|
88
|
-
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": State.ON,
|
|
89
|
-
"@typescript-eslint/no-non-null-asserted-optional-chain": State.ON,
|
|
90
|
-
// "@typescript-eslint/no-non-null-assertion": State.OFF /* preference */,
|
|
91
|
-
"@typescript-eslint/no-redundant-type-constituents": State.ON,
|
|
92
|
-
// "@typescript-eslint/no-restricted-types": State.OFF /* preference - no shared custom types across all projects that I wish to ban */,
|
|
93
|
-
"@typescript-eslint/no-require-imports": State.ON,
|
|
94
|
-
"@typescript-eslint/no-this-alias": State.ON,
|
|
95
|
-
"@typescript-eslint/no-unnecessary-boolean-literal-compare": State.ON,
|
|
96
|
-
"@typescript-eslint/no-unnecessary-condition": State.ON,
|
|
97
|
-
"@typescript-eslint/no-unnecessary-parameter-property-assignment": State.ON,
|
|
98
|
-
"@typescript-eslint/no-unnecessary-qualifier": State.ON,
|
|
99
|
-
"@typescript-eslint/no-unnecessary-template-expression": State.ON,
|
|
100
|
-
"@typescript-eslint/no-unnecessary-type-arguments": State.ON,
|
|
101
|
-
"@typescript-eslint/no-unnecessary-type-assertion": State.ON,
|
|
102
|
-
"@typescript-eslint/no-unnecessary-type-constraint": State.ON,
|
|
103
|
-
"@typescript-eslint/no-unnecessary-type-conversion": State.ON,
|
|
104
|
-
"@typescript-eslint/no-unnecessary-type-parameters": State.ON,
|
|
105
|
-
"@typescript-eslint/no-unsafe-argument": State.ON,
|
|
106
|
-
"@typescript-eslint/no-unsafe-assignment": State.ON,
|
|
107
|
-
"@typescript-eslint/no-unsafe-call": State.ON,
|
|
108
|
-
"@typescript-eslint/no-unsafe-declaration-merging": State.ON,
|
|
109
|
-
"@typescript-eslint/no-unsafe-enum-comparison": State.ON,
|
|
110
|
-
"@typescript-eslint/no-unsafe-function-type": State.ON,
|
|
111
|
-
"@typescript-eslint/no-unsafe-member-access": [
|
|
112
|
-
State.ON,
|
|
113
|
-
{
|
|
114
|
-
allowOptionalChaining: true,
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
"@typescript-eslint/no-unsafe-return": State.ON,
|
|
118
|
-
// "@typescript-eslint/no-unsafe-type-assertion": State.OFF,
|
|
119
|
-
"@typescript-eslint/no-unsafe-unary-minus": State.ON,
|
|
120
|
-
"@typescript-eslint/no-useless-empty-export": State.ON,
|
|
121
|
-
"@typescript-eslint/no-wrapper-object-types": State.ON,
|
|
122
|
-
// "@typescript-eslint/non-nullable-type-assertion-style": State.OFF /* preference */,
|
|
123
|
-
"@typescript-eslint/parameter-properties": [
|
|
124
|
-
State.ON,
|
|
125
|
-
{
|
|
126
|
-
prefer: "parameter-property" /* parameter-property | @default class-property */,
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
"@typescript-eslint/prefer-as-const": State.ON,
|
|
130
|
-
// "@typescript-eslint/prefer-enum-initializers": State.OFF /* preference */,
|
|
131
|
-
"@typescript-eslint/prefer-find": State.ON,
|
|
132
|
-
"@typescript-eslint/prefer-for-of": State.ON,
|
|
133
|
-
"@typescript-eslint/prefer-function-type": State.ON,
|
|
134
|
-
"@typescript-eslint/prefer-includes": State.ON,
|
|
135
|
-
"@typescript-eslint/prefer-literal-enum-member": State.ON,
|
|
136
|
-
"@typescript-eslint/prefer-namespace-keyword": State.ON,
|
|
137
|
-
"@typescript-eslint/prefer-nullish-coalescing": State.ON /* requires tsconfig: strictNullChecks */,
|
|
138
|
-
"@typescript-eslint/prefer-optional-chain": State.ON,
|
|
139
|
-
"@typescript-eslint/prefer-readonly": State.ON,
|
|
140
|
-
// "@typescript-eslint/prefer-readonly-parameter-types": State.OFF /* preference - WAY too restrictive */,
|
|
141
|
-
"@typescript-eslint/prefer-reduce-type-parameter": State.ON,
|
|
142
|
-
"@typescript-eslint/prefer-regexp-exec": State.ON,
|
|
143
|
-
"@typescript-eslint/prefer-return-this-type": State.ON,
|
|
144
|
-
"@typescript-eslint/prefer-string-starts-ends-with": State.ON,
|
|
145
|
-
"@typescript-eslint/promise-function-async": State.ON,
|
|
146
|
-
"@typescript-eslint/related-getter-setter-pairs": State.ON,
|
|
147
|
-
"@typescript-eslint/require-array-sort-compare": State.ON,
|
|
148
|
-
"@typescript-eslint/restrict-plus-operands": [
|
|
149
|
-
State.ON,
|
|
150
|
-
{
|
|
151
|
-
allowAny: false,
|
|
152
|
-
allowBoolean: false,
|
|
153
|
-
allowNullish: false,
|
|
154
|
-
allowNumberAndString: false,
|
|
155
|
-
allowRegExp: false,
|
|
156
|
-
},
|
|
157
|
-
],
|
|
158
|
-
"@typescript-eslint/restrict-template-expressions": [
|
|
159
|
-
State.ON,
|
|
160
|
-
{
|
|
161
|
-
allowNullish: false,
|
|
162
|
-
allowNever: false,
|
|
163
|
-
allowRegExp: false,
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
"@typescript-eslint/return-await": State.ON /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
|
|
167
|
-
"@typescript-eslint/strict-boolean-expressions": [
|
|
168
|
-
State.ON,
|
|
169
|
-
{
|
|
170
|
-
allowNullableObject: false,
|
|
171
|
-
allowString: false,
|
|
172
|
-
},
|
|
173
|
-
], /* requires tsconfig: strictNullChecks */
|
|
174
|
-
"@typescript-eslint/switch-exhaustiveness-check": State.ON,
|
|
175
|
-
// "@typescript-eslint/triple-slash-reference": State.OFF /* preference - who gives a fuck */,
|
|
176
|
-
// "@typescript-eslint/typedef": State.OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
|
177
|
-
"@typescript-eslint/unbound-method": State.ON,
|
|
178
|
-
"@typescript-eslint/unified-signatures": State.ON,
|
|
179
|
-
"@typescript-eslint/use-unknown-in-catch-callback-variable": State.ON,
|
|
180
|
-
} as const,
|
|
181
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { State } from "../../state";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
id: "disable/extension",
|
|
5
|
-
rules: {
|
|
6
|
-
// "class-methods-use-this": State.OFF /* ESLint now supports TS */,
|
|
7
|
-
// "consistent-return": State.OFF /* tsc */,
|
|
8
|
-
// "default-param-last": State.OFF /* ESLint now supports TS */,
|
|
9
|
-
"dot-notation": State.OFF,
|
|
10
|
-
// "init-declarations": State.OFF /* ESLint now supports TS */,
|
|
11
|
-
// "max-params": State.OFF /* ESLint now supports TS */,
|
|
12
|
-
// "no-array-constructor": State.OFF /* ESLint now supports TS */,
|
|
13
|
-
// "no-dupe-class-members": State.OFF /* tsc, although ESLint now supports TS */,
|
|
14
|
-
// "no-empty-function": State.OFF /* ESLint now supports TS */,
|
|
15
|
-
"no-implied-eval": State.OFF,
|
|
16
|
-
// "no-invalid-this": State.OFF /* tsc, although ESLint now supports TS */,
|
|
17
|
-
// "no-loop-func": State.OFF /* ESLint now supports TS */,
|
|
18
|
-
// "no-magic-numbers": State.OFF /* ESLint now supports TS */,
|
|
19
|
-
// "no-redeclare": State.OFF /* tsc */,
|
|
20
|
-
"no-restricted-imports": State.OFF,
|
|
21
|
-
// "no-shadow": State.OFF /* ESLint now supports TS */,
|
|
22
|
-
"no-throw-literal": State.OFF /* @typescript-eslint/only-throw-error */,
|
|
23
|
-
// "no-unused-expressions": State.OFF /* ESLint now supports TS */,
|
|
24
|
-
"no-unused-vars": State.OFF,
|
|
25
|
-
// "no-use-before-define": State.OFF /* ESLint now supports TS */,
|
|
26
|
-
// "no-useless-constructor": State.OFF /* ESLint now supports TS */,
|
|
27
|
-
"prefer-destructuring": State.OFF,
|
|
28
|
-
"prefer-promise-reject-errors": State.OFF,
|
|
29
|
-
"require-await": State.OFF,
|
|
30
|
-
} as const,
|
|
31
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { State } from "../../state";
|
|
2
|
-
|
|
3
|
-
// DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
|
4
|
-
export default {
|
|
5
|
-
id: "enable/extension",
|
|
6
|
-
rules: {
|
|
7
|
-
// "@typescript-eslint/class-methods-use-this": State.OFF /* ESLint now supports TS (preference -- eslint:State.OFF) */,
|
|
8
|
-
// "@typescript-eslint/consistent-return": State.OFF /* tsc: noImplicitReturns */,
|
|
9
|
-
// "@typescript-eslint/default-param-last": State.OFF /* ESLint now supports TS */,
|
|
10
|
-
"@typescript-eslint/dot-notation": [
|
|
11
|
-
State.ON,
|
|
12
|
-
{
|
|
13
|
-
// TS-only:
|
|
14
|
-
allowPrivateClassPropertyAccess: true,
|
|
15
|
-
allowProtectedClassPropertyAccess: true,
|
|
16
|
-
allowIndexSignaturePropertyAccess: true,
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
// "@typescript-eslint/init-declarations": State.OFF /* ESLint now supports TS */,
|
|
20
|
-
// "@typescript-eslint/max-params": State.OFF /* preference, although ESLint now supports TS */,
|
|
21
|
-
// "@typescript-eslint/no-array-constructor": State.OFF /* ESLint now supports TS */,
|
|
22
|
-
// "@typescript-eslint/no-dupe-class-members": State.OFF /* tsc, although ESLint now supports TS */,
|
|
23
|
-
// "@typescript-eslint/no-empty-function": State.OFF /* ESLint now supports TS */,
|
|
24
|
-
"@typescript-eslint/no-implied-eval": State.ON,
|
|
25
|
-
// "@typescript-eslint/no-invalid-this": State.OFF /* tsc: { strict, noImplicitThis }, although ESLint now supports TS */,
|
|
26
|
-
// "@typescript-eslint/no-loop-func": State.OFF /* ESLint now supports TS */,
|
|
27
|
-
// "@typescript-eslint/no-magic-numbers": State.OFF /* preference, although ESLint now supports TS */,
|
|
28
|
-
// "@typescript-eslint/no-redeclare": State.OFF /* tsc (let, const, -var) */,
|
|
29
|
-
// "@typescript-eslint/no-restricted-imports": State.OFF /* preference */,
|
|
30
|
-
// "@typescript-eslint/no-shadow": State.OFF /* ESLint now supports TS (was: investigate) */,
|
|
31
|
-
// "@typescript-eslint/no-unused-expressions": State.OFF /* ESLint now supports TS (preference -- eslint:State.OFF) */,
|
|
32
|
-
"@typescript-eslint/no-unused-vars": State.ON,
|
|
33
|
-
// "@typescript-eslint/no-use-before-define": State.OFF /* ESLint now supports TS */,
|
|
34
|
-
// "@typescript-eslint/no-useless-constructor": State.OFF /* ESLint now supports TS */,
|
|
35
|
-
"@typescript-eslint/only-throw-error": [
|
|
36
|
-
State.ON,
|
|
37
|
-
{
|
|
38
|
-
allowThrowingAny: false,
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
"@typescript-eslint/prefer-destructuring": [
|
|
42
|
-
State.ON,
|
|
43
|
-
{
|
|
44
|
-
AssignmentExpression: {
|
|
45
|
-
array: false,
|
|
46
|
-
object: false,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
51
|
-
State.ON,
|
|
52
|
-
{
|
|
53
|
-
allowThrowingUnknown: true,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
"@typescript-eslint/require-await": State.ON,
|
|
57
|
-
} as const,
|
|
58
|
-
};
|