@eslinted/defaults 4.3.5 → 4.3.6
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/rules/index.d.ts +5 -0
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/ts/disable.d.ts +5 -0
- package/dist/rules/ts/disable.d.ts.map +1 -1
- package/dist/rules/ts/disable.js +5 -0
- package/dist/rules/ts/disable.js.map +1 -1
- package/dist/rules/ts/index.d.ts +5 -0
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/rules/js/enable.ts +20 -20
- package/src/rules/ts/disable.ts +5 -0
package/dist/rules/index.d.ts
CHANGED
|
@@ -763,11 +763,16 @@ export declare const rules: {
|
|
|
763
763
|
}])[];
|
|
764
764
|
readonly ts: (readonly ["disable", {
|
|
765
765
|
readonly "constructor-super": "off";
|
|
766
|
+
readonly "getter-return": "off";
|
|
767
|
+
readonly "no-class-assign": "off";
|
|
766
768
|
readonly "no-const-assign": "off";
|
|
767
769
|
readonly "no-dupe-args": "off";
|
|
768
770
|
readonly "no-dupe-class-members": "off";
|
|
769
771
|
readonly "no-dupe-keys": "off";
|
|
770
772
|
readonly "no-func-assign": "off";
|
|
773
|
+
readonly "no-import-assign": "off";
|
|
774
|
+
readonly "no-invalid-this": "off";
|
|
775
|
+
readonly "no-new-native-nonconstructor": "off";
|
|
771
776
|
readonly "no-obj-calls": "off";
|
|
772
777
|
readonly "no-setter-return": "off";
|
|
773
778
|
readonly "no-this-before-super": "off";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASR,CAAC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export declare const TsDisable: readonly ["disable", {
|
|
2
2
|
readonly "constructor-super": "off";
|
|
3
|
+
readonly "getter-return": "off";
|
|
4
|
+
readonly "no-class-assign": "off";
|
|
3
5
|
readonly "no-const-assign": "off";
|
|
4
6
|
readonly "no-dupe-args": "off";
|
|
5
7
|
readonly "no-dupe-class-members": "off";
|
|
6
8
|
readonly "no-dupe-keys": "off";
|
|
7
9
|
readonly "no-func-assign": "off";
|
|
10
|
+
readonly "no-import-assign": "off";
|
|
11
|
+
readonly "no-invalid-this": "off";
|
|
12
|
+
readonly "no-new-native-nonconstructor": "off";
|
|
8
13
|
readonly "no-obj-calls": "off";
|
|
9
14
|
readonly "no-setter-return": "off";
|
|
10
15
|
readonly "no-this-before-super": "off";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/disable.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/disable.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;EAwBZ,CAAC"}
|
package/dist/rules/ts/disable.js
CHANGED
|
@@ -3,11 +3,16 @@ export const TsDisable = [
|
|
|
3
3
|
ID.Disable,
|
|
4
4
|
{
|
|
5
5
|
"constructor-super": OFF,
|
|
6
|
+
"getter-return": OFF,
|
|
7
|
+
"no-class-assign": OFF,
|
|
6
8
|
"no-const-assign": OFF,
|
|
7
9
|
"no-dupe-args": OFF,
|
|
8
10
|
"no-dupe-class-members": OFF,
|
|
9
11
|
"no-dupe-keys": OFF,
|
|
10
12
|
"no-func-assign": OFF,
|
|
13
|
+
"no-import-assign": OFF,
|
|
14
|
+
"no-invalid-this": OFF,
|
|
15
|
+
"no-new-native-nonconstructor": OFF,
|
|
11
16
|
"no-obj-calls": OFF,
|
|
12
17
|
"no-setter-return": OFF,
|
|
13
18
|
"no-this-before-super": OFF,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../src/rules/ts/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,CAAC,OAAO;IACV;QAEE,mBAAmB,EAAE,GAAG;QACxB,iBAAiB,EAAE,GAAG;QACtB,cAAc,EAAE,GAAG;QACnB,uBAAuB,EAAE,GAAG;QAC5B,cAAc,EAAE,GAAG;QACnB,gBAAgB,EAAE,GAAG;QACrB,cAAc,EAAE,GAAG;QACnB,kBAAkB,EAAE,GAAG;QACvB,sBAAsB,EAAE,GAAG;QAC3B,UAAU,EAAE,GAAG;QACf,gBAAgB,EAAE,GAAG;QACrB,oBAAoB,EAAE,GAAG;QACzB,mBAAmB,EAAE,GAAG;QACxB,cAAc,EAAE,GAAG;KACX;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../src/rules/ts/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,CAAC,OAAO;IACV;QAEE,mBAAmB,EAAE,GAAG;QACxB,eAAe,EAAE,GAAG;QACpB,iBAAiB,EAAE,GAAG;QACtB,iBAAiB,EAAE,GAAG;QACtB,cAAc,EAAE,GAAG;QACnB,uBAAuB,EAAE,GAAG;QAC5B,cAAc,EAAE,GAAG;QACnB,gBAAgB,EAAE,GAAG;QACrB,kBAAkB,EAAE,GAAG;QACvB,iBAAiB,EAAE,GAAG;QACtB,8BAA8B,EAAE,GAAG;QACnC,cAAc,EAAE,GAAG;QACnB,kBAAkB,EAAE,GAAG;QACvB,sBAAsB,EAAE,GAAG;QAC3B,UAAU,EAAE,GAAG;QACf,gBAAgB,EAAE,GAAG;QACrB,oBAAoB,EAAE,GAAG;QACzB,mBAAmB,EAAE,GAAG;QACxB,cAAc,EAAE,GAAG;KACX;CACF,CAAC"}
|
package/dist/rules/ts/index.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
declare const _default: (readonly ["disable", {
|
|
2
2
|
readonly "constructor-super": "off";
|
|
3
|
+
readonly "getter-return": "off";
|
|
4
|
+
readonly "no-class-assign": "off";
|
|
3
5
|
readonly "no-const-assign": "off";
|
|
4
6
|
readonly "no-dupe-args": "off";
|
|
5
7
|
readonly "no-dupe-class-members": "off";
|
|
6
8
|
readonly "no-dupe-keys": "off";
|
|
7
9
|
readonly "no-func-assign": "off";
|
|
10
|
+
readonly "no-import-assign": "off";
|
|
11
|
+
readonly "no-invalid-this": "off";
|
|
12
|
+
readonly "no-new-native-nonconstructor": "off";
|
|
8
13
|
readonly "no-obj-calls": "off";
|
|
9
14
|
readonly "no-setter-return": "off";
|
|
10
15
|
readonly "no-this-before-super": "off";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
|
package/package.json
CHANGED
package/src/rules/js/enable.ts
CHANGED
|
@@ -25,14 +25,14 @@ export const Enable = [
|
|
|
25
25
|
allowVoid: true,
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
|
-
"constructor-super": ERROR
|
|
28
|
+
"constructor-super": ERROR /* tsc */,
|
|
29
29
|
"for-direction": ERROR,
|
|
30
30
|
"getter-return": [
|
|
31
31
|
ERROR,
|
|
32
32
|
{
|
|
33
33
|
allowImplicit: false,
|
|
34
34
|
},
|
|
35
|
-
]
|
|
35
|
+
] /* tsc */,
|
|
36
36
|
"no-async-promise-executor": ERROR,
|
|
37
37
|
"no-await-in-loop": ERROR,
|
|
38
38
|
"no-class-assign": ERROR,
|
|
@@ -41,7 +41,7 @@ export const Enable = [
|
|
|
41
41
|
ERROR,
|
|
42
42
|
always,
|
|
43
43
|
],
|
|
44
|
-
"no-const-assign": ERROR
|
|
44
|
+
"no-const-assign": ERROR /* tsc */,
|
|
45
45
|
"no-constant-binary-expression": ERROR,
|
|
46
46
|
"no-constant-condition": [
|
|
47
47
|
ERROR,
|
|
@@ -52,10 +52,10 @@ export const Enable = [
|
|
|
52
52
|
"no-constructor-return": ERROR,
|
|
53
53
|
"no-control-regex": ERROR,
|
|
54
54
|
"no-debugger": ERROR,
|
|
55
|
-
"no-dupe-args": ERROR
|
|
56
|
-
"no-dupe-class-members": ERROR
|
|
55
|
+
"no-dupe-args": ERROR /* tsc */,
|
|
56
|
+
"no-dupe-class-members": ERROR /* tsc -- TSLint:off: tsc */,
|
|
57
57
|
"no-dupe-else-if": ERROR,
|
|
58
|
-
"no-dupe-keys": ERROR
|
|
58
|
+
"no-dupe-keys": ERROR /* tsc */,
|
|
59
59
|
"no-duplicate-case": ERROR,
|
|
60
60
|
"no-duplicate-imports": OFF /* BUG: breaks separation of TS type-only imports from value imports */,
|
|
61
61
|
"no-empty-character-class": ERROR,
|
|
@@ -73,8 +73,8 @@ export const Enable = [
|
|
|
73
73
|
reportUnusedFallthroughComment: true,
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
|
-
"no-func-assign": ERROR
|
|
77
|
-
"no-import-assign": ERROR
|
|
76
|
+
"no-func-assign": ERROR /* tsc */,
|
|
77
|
+
"no-import-assign": ERROR /* tsc (except Object.assign()) */,
|
|
78
78
|
"no-inner-declarations": [
|
|
79
79
|
ERROR,
|
|
80
80
|
both,
|
|
@@ -101,7 +101,7 @@ export const Enable = [
|
|
|
101
101
|
"no-loss-of-precision": ERROR /* TSLint */,
|
|
102
102
|
"no-misleading-character-class": ERROR,
|
|
103
103
|
"no-new-native-nonconstructor": ERROR,
|
|
104
|
-
"no-obj-calls": ERROR
|
|
104
|
+
"no-obj-calls": ERROR /* tsc */,
|
|
105
105
|
"no-promise-executor-return": [
|
|
106
106
|
ERROR,
|
|
107
107
|
{
|
|
@@ -116,14 +116,14 @@ export const Enable = [
|
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
118
|
"no-self-compare": ERROR,
|
|
119
|
-
"no-setter-return": ERROR
|
|
119
|
+
"no-setter-return": ERROR /* tsc */,
|
|
120
120
|
"no-sparse-arrays": ERROR,
|
|
121
121
|
"no-template-curly-in-string": ERROR,
|
|
122
|
-
"no-this-before-super": ERROR
|
|
123
|
-
"no-undef": ERROR
|
|
122
|
+
"no-this-before-super": ERROR /* tsc */,
|
|
123
|
+
"no-undef": ERROR /* tsc */,
|
|
124
124
|
"no-unexpected-multiline": ERROR,
|
|
125
125
|
"no-unmodified-loop-condition": ERROR,
|
|
126
|
-
"no-unreachable": ERROR
|
|
126
|
+
"no-unreachable": ERROR /* tsc */,
|
|
127
127
|
"no-unreachable-loop": [
|
|
128
128
|
ERROR,
|
|
129
129
|
{
|
|
@@ -136,7 +136,7 @@ export const Enable = [
|
|
|
136
136
|
{
|
|
137
137
|
enforceForOrderingRelations: true,
|
|
138
138
|
},
|
|
139
|
-
]
|
|
139
|
+
] /* tsc */,
|
|
140
140
|
"no-unsafe-optional-chaining": [
|
|
141
141
|
ERROR,
|
|
142
142
|
{
|
|
@@ -208,7 +208,7 @@ export const Enable = [
|
|
|
208
208
|
"block-scoped-var": ERROR,
|
|
209
209
|
camelcase: OFF /* preference */,
|
|
210
210
|
"capitalized-comments": OFF /* preference */,
|
|
211
|
-
"class-methods-use-this": OFF
|
|
211
|
+
"class-methods-use-this": OFF /* preference -- TSLint */,
|
|
212
212
|
complexity: OFF /* preference */,
|
|
213
213
|
"consistent-return": [
|
|
214
214
|
ERROR,
|
|
@@ -221,7 +221,7 @@ export const Enable = [
|
|
|
221
221
|
ERROR,
|
|
222
222
|
multi,
|
|
223
223
|
],
|
|
224
|
-
"default-case": OFF
|
|
224
|
+
"default-case": OFF /* preference: don't care */,
|
|
225
225
|
"default-case-last": ERROR,
|
|
226
226
|
"default-param-last": ERROR /* TSLint */,
|
|
227
227
|
"dot-notation": [
|
|
@@ -238,7 +238,7 @@ export const Enable = [
|
|
|
238
238
|
"func-names": OFF /* preference */,
|
|
239
239
|
"func-style": OFF /* preference */,
|
|
240
240
|
"grouped-accessor-pairs": OFF /* preference -- BUG: requires adjacency, not as described in documentation */,
|
|
241
|
-
"guard-for-in": OFF
|
|
241
|
+
"guard-for-in": OFF /* preference - not helpful because using for-in on non-literal objects is bad practice and this rule doesn't guard against that anyway, while adding a pointless check to known object literals */,
|
|
242
242
|
"id-denylist": OFF /* preference */,
|
|
243
243
|
"id-length": OFF /* preference */,
|
|
244
244
|
"id-match": OFF /* preference */,
|
|
@@ -258,10 +258,10 @@ export const Enable = [
|
|
|
258
258
|
"max-lines": OFF /* preference */,
|
|
259
259
|
"max-lines-per-function": OFF /* preference */,
|
|
260
260
|
"max-nested-callbacks": OFF /* preference */,
|
|
261
|
-
"max-params": OFF
|
|
261
|
+
"max-params": OFF /* preference -- TSLint:off: preference */,
|
|
262
262
|
"max-statements": OFF /* preference */,
|
|
263
263
|
"multiline-comment-style": OFF /* preference */,
|
|
264
|
-
"new-cap": OFF
|
|
264
|
+
"new-cap": OFF /* preference -- breaks Scriptable */,
|
|
265
265
|
"no-alert": ERROR,
|
|
266
266
|
"no-array-constructor": ERROR /* TSLint */,
|
|
267
267
|
"no-bitwise": [
|
|
@@ -273,7 +273,7 @@ export const Enable = [
|
|
|
273
273
|
],
|
|
274
274
|
"no-caller": ERROR,
|
|
275
275
|
"no-case-declarations": ERROR,
|
|
276
|
-
"no-console": OFF
|
|
276
|
+
"no-console": OFF /* preference -- breaks Node.js console applications and Scriptable, and otherwise unnecessarily hampers browser test code */,
|
|
277
277
|
"no-continue": ERROR,
|
|
278
278
|
"no-delete-var": ERROR,
|
|
279
279
|
"no-div-regex": ERROR,
|
package/src/rules/ts/disable.ts
CHANGED
|
@@ -8,11 +8,16 @@ export const TsDisable = [
|
|
|
8
8
|
{
|
|
9
9
|
// Handled by TypeScript compiler
|
|
10
10
|
"constructor-super": OFF,
|
|
11
|
+
"getter-return": OFF,
|
|
12
|
+
"no-class-assign": OFF,
|
|
11
13
|
"no-const-assign": OFF,
|
|
12
14
|
"no-dupe-args": OFF,
|
|
13
15
|
"no-dupe-class-members": OFF,
|
|
14
16
|
"no-dupe-keys": OFF,
|
|
15
17
|
"no-func-assign": OFF,
|
|
18
|
+
"no-import-assign": OFF,
|
|
19
|
+
"no-invalid-this": OFF,
|
|
20
|
+
"no-new-native-nonconstructor": OFF,
|
|
16
21
|
"no-obj-calls": OFF,
|
|
17
22
|
"no-setter-return": OFF,
|
|
18
23
|
"no-this-before-super": OFF,
|