linted 22.0.0 → 22.0.1
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/html/enable.ts
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
import type Rule from "@html-eslint/eslint-plugin/types/rules";
|
2
|
-
import {
|
3
|
-
enable,
|
4
|
-
ERROR,
|
5
|
-
OFF,
|
6
|
-
Never,
|
7
|
-
} from "../../_strings";
|
8
|
-
import type { RuleRecord } from "@eslinted/core";
|
9
|
-
|
10
|
-
const rules: Partial<Record<`@html-eslint/${keyof typeof Rule}`, RuleRecord[string]>> = {
|
11
|
-
// #region BEST PRACTICE
|
12
|
-
// https://html-eslint.org/docs/rules#best-practice
|
13
|
-
"@html-eslint/no-duplicate-attrs": ERROR,
|
14
|
-
"@html-eslint/no-duplicate-id": ERROR,
|
15
|
-
"@html-eslint/no-extra-spacing-text": [
|
16
|
-
ERROR,
|
17
|
-
{
|
18
|
-
skip: [],
|
19
|
-
},
|
20
|
-
],
|
21
|
-
"@html-eslint/no-inline-styles": OFF /* breaks Svele app.html */,
|
22
|
-
"@html-eslint/no-obsolete-tags": ERROR,
|
23
|
-
"@html-eslint/no-restricted-attr-values": OFF,
|
24
|
-
"@html-eslint/no-restricted-attrs": OFF,
|
25
|
-
"@html-eslint/no-script-style-type": OFF,
|
26
|
-
"@html-eslint/no-target-blank": ERROR,
|
27
|
-
"@html-eslint/require-attrs": OFF,
|
28
|
-
"@html-eslint/require-button-type": ERROR,
|
29
|
-
"@html-eslint/require-closing-tags": [
|
30
|
-
ERROR,
|
31
|
-
{
|
32
|
-
selfClosing: Never,
|
33
|
-
selfClosingCustomPatterns: [""] /* regex[], intention: any custom pattern is allowed */,
|
34
|
-
},
|
35
|
-
],
|
36
|
-
"@html-eslint/require-doctype": ERROR,
|
37
|
-
"@html-eslint/require-li-container": ERROR,
|
38
|
-
"@html-eslint/require-meta-charset": ERROR,
|
39
|
-
|
40
|
-
// #endregion BEST PRACTICE
|
41
|
-
|
42
|
-
// #region SEO
|
43
|
-
// https://html-eslint.org/docs/rules#seo
|
44
|
-
"@html-eslint/no-multiple-h1": ERROR,
|
45
|
-
"@html-eslint/require-lang": ERROR,
|
46
|
-
"@html-eslint/require-meta-description": OFF /* breaks Svelte which leaves meta descriptions to route leaves */,
|
47
|
-
"@html-eslint/require-open-graph-protocol": OFF /* idk what this is */,
|
48
|
-
"@html-eslint/require-title": OFF /* breaks Svelte which leaves title to route leaves */,
|
49
|
-
|
50
|
-
// #endregion SEO
|
51
|
-
|
52
|
-
// #region ACCESSIBILITY
|
53
|
-
// https://html-eslint.org/docs/rules#accessibility
|
54
|
-
"@html-eslint/no-abstract-roles": ERROR,
|
55
|
-
"@html-eslint/no-accesskey-attrs": ERROR,
|
56
|
-
"@html-eslint/no-aria-hidden-body": ERROR,
|
57
|
-
"@html-eslint/no-non-scalable-viewport": ERROR,
|
58
|
-
"@html-eslint/no-positive-tabindex": ERROR,
|
59
|
-
"@html-eslint/no-skip-heading-levels": ERROR,
|
60
|
-
"@html-eslint/require-frame-title": ERROR,
|
61
|
-
"@html-eslint/require-img-alt": [
|
62
|
-
ERROR,
|
63
|
-
{
|
64
|
-
substitute: [],
|
65
|
-
},
|
66
|
-
],
|
67
|
-
"@html-eslint/require-meta-viewport": ERROR,
|
68
|
-
|
69
|
-
// #endregion ACCESSIBILITY
|
70
|
-
|
71
|
-
// #region STYLE
|
72
|
-
// https://html-eslint.org/docs/rules#style
|
73
|
-
|
74
|
-
// #endregion STYLE
|
75
|
-
"@html-eslint/attrs-newline": [
|
76
|
-
ERROR,
|
77
|
-
{
|
78
|
-
ifAttrsMoreThan: 0,
|
79
|
-
closeStyle: "sameline",
|
80
|
-
},
|
81
|
-
],
|
82
|
-
"@html-eslint/element-newline": [
|
83
|
-
ERROR,
|
84
|
-
{
|
85
|
-
skip: ["head"],
|
86
|
-
inline: ["$inline"],
|
87
|
-
},
|
88
|
-
],
|
89
|
-
"@html-eslint/id-naming-convention": OFF,
|
90
|
-
"@html-eslint/indent": [
|
91
|
-
ERROR,
|
92
|
-
2,
|
93
|
-
],
|
94
|
-
"@html-eslint/lowercase": ERROR,
|
95
|
-
"@html-eslint/no-extra-spacing-attrs": [
|
96
|
-
ERROR,
|
97
|
-
{
|
98
|
-
enforceBeforeSelfClose: true,
|
99
|
-
disallowMissing: true,
|
100
|
-
disallowTabs: true,
|
101
|
-
disallowInAssignment: true,
|
102
|
-
},
|
103
|
-
],
|
104
|
-
"@html-eslint/no-multiple-empty-lines": [
|
105
|
-
ERROR,
|
106
|
-
{
|
107
|
-
max: 1,
|
108
|
-
},
|
109
|
-
],
|
110
|
-
"@html-eslint/no-trailing-spaces": ERROR,
|
111
|
-
"@html-eslint/quotes": [
|
112
|
-
ERROR,
|
113
|
-
"double",
|
114
|
-
],
|
115
|
-
"@html-eslint/sort-attrs": OFF,
|
116
|
-
} as const;
|
117
|
-
|
118
|
-
export default [
|
119
|
-
enable,
|
120
|
-
rules,
|
121
|
-
] as const;
|
package/src/rules/html/index.ts
DELETED
package/src/rules/index.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import js from "./js";
|
2
|
-
import ts from "./ts";
|
3
|
-
import svelte from "./svelte";
|
4
|
-
import mocha from "./mocha";
|
5
|
-
import html from "./html";
|
6
|
-
import json from "./json";
|
7
|
-
import jsonc from "./jsonc";
|
8
|
-
import yml from "./yml";
|
9
|
-
|
10
|
-
export default {
|
11
|
-
js,
|
12
|
-
ts,
|
13
|
-
svelte,
|
14
|
-
mocha,
|
15
|
-
html,
|
16
|
-
json,
|
17
|
-
jsonc,
|
18
|
-
yml,
|
19
|
-
};
|
package/src/rules/js/enable.ts
DELETED
@@ -1,547 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
Never,
|
6
|
-
Always,
|
7
|
-
AsNeeded,
|
8
|
-
Consecutive,
|
9
|
-
Allow,
|
10
|
-
All,
|
11
|
-
Multi,
|
12
|
-
Both,
|
13
|
-
} from "../../_strings";
|
14
|
-
|
15
|
-
export default [
|
16
|
-
enable,
|
17
|
-
{
|
18
|
-
// #region PROBLEMS
|
19
|
-
// https://eslint.org/docs/latest/rules/#possible-problems
|
20
|
-
"array-callback-return": [
|
21
|
-
ERROR,
|
22
|
-
{
|
23
|
-
allowImplicit: false,
|
24
|
-
checkForEach: true,
|
25
|
-
allowVoid: true,
|
26
|
-
},
|
27
|
-
],
|
28
|
-
"constructor-super": ERROR, /* tsc */
|
29
|
-
"for-direction": ERROR,
|
30
|
-
"getter-return": [
|
31
|
-
ERROR,
|
32
|
-
{
|
33
|
-
allowImplicit: false,
|
34
|
-
},
|
35
|
-
], /* tsc */
|
36
|
-
"no-async-promise-executor": ERROR,
|
37
|
-
"no-await-in-loop": ERROR,
|
38
|
-
"no-class-assign": ERROR,
|
39
|
-
"no-compare-neg-zero": ERROR,
|
40
|
-
"no-cond-assign": [
|
41
|
-
ERROR,
|
42
|
-
Always,
|
43
|
-
],
|
44
|
-
"no-const-assign": ERROR, /* tsc */
|
45
|
-
"no-constant-binary-expression": ERROR,
|
46
|
-
"no-constant-condition": [
|
47
|
-
ERROR,
|
48
|
-
{
|
49
|
-
checkLoops: true,
|
50
|
-
},
|
51
|
-
] /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */,
|
52
|
-
"no-constructor-return": ERROR,
|
53
|
-
"no-control-regex": ERROR,
|
54
|
-
"no-debugger": ERROR,
|
55
|
-
"no-dupe-args": ERROR, /* tsc */
|
56
|
-
"no-dupe-class-members": ERROR, /* tsc -- TSLint:off: tsc */
|
57
|
-
"no-dupe-else-if": ERROR,
|
58
|
-
"no-dupe-keys": ERROR, /* tsc */
|
59
|
-
"no-duplicate-case": ERROR,
|
60
|
-
"no-duplicate-imports": OFF /* BUG: breaks separation of TS type-only imports from value imports */,
|
61
|
-
"no-empty-character-class": ERROR,
|
62
|
-
"no-empty-pattern": [
|
63
|
-
ERROR,
|
64
|
-
{
|
65
|
-
allowObjectPatternsAsParameters: false,
|
66
|
-
},
|
67
|
-
],
|
68
|
-
"no-ex-assign": ERROR,
|
69
|
-
"no-fallthrough": [
|
70
|
-
ERROR,
|
71
|
-
{
|
72
|
-
allowEmptyCase: true,
|
73
|
-
reportUnusedFallthroughComment: true,
|
74
|
-
},
|
75
|
-
],
|
76
|
-
"no-func-assign": ERROR, /* tsc */
|
77
|
-
"no-import-assign": ERROR, /* tsc (except Object.assign()) */
|
78
|
-
"no-inner-declarations": [
|
79
|
-
ERROR,
|
80
|
-
Both,
|
81
|
-
{
|
82
|
-
blockScopedFunctions: Allow,
|
83
|
-
},
|
84
|
-
],
|
85
|
-
"no-invalid-regexp": [
|
86
|
-
ERROR,
|
87
|
-
{
|
88
|
-
allowConstructorFlags: [],
|
89
|
-
},
|
90
|
-
],
|
91
|
-
"no-irregular-whitespace": [
|
92
|
-
ERROR,
|
93
|
-
{
|
94
|
-
skipStrings: true,
|
95
|
-
skipComments: true,
|
96
|
-
skipRegExps: true,
|
97
|
-
skipTemplates: true,
|
98
|
-
skipJSXText: true,
|
99
|
-
},
|
100
|
-
],
|
101
|
-
"no-loss-of-precision": ERROR /* TSLint */,
|
102
|
-
"no-misleading-character-class": ERROR,
|
103
|
-
"no-new-native-nonconstructor": ERROR,
|
104
|
-
"no-obj-calls": ERROR, /* tsc */
|
105
|
-
"no-promise-executor-return": [
|
106
|
-
ERROR,
|
107
|
-
{
|
108
|
-
allowVoid: true,
|
109
|
-
},
|
110
|
-
],
|
111
|
-
"no-prototype-builtins": ERROR,
|
112
|
-
"no-self-assign": [
|
113
|
-
ERROR,
|
114
|
-
{
|
115
|
-
props: true,
|
116
|
-
},
|
117
|
-
],
|
118
|
-
"no-self-compare": ERROR,
|
119
|
-
"no-setter-return": ERROR, /* tsc */
|
120
|
-
"no-sparse-arrays": ERROR,
|
121
|
-
"no-template-curly-in-string": ERROR,
|
122
|
-
"no-this-before-super": ERROR, /* tsc */
|
123
|
-
"no-undef": ERROR, /* tsc */
|
124
|
-
"no-unexpected-multiline": ERROR,
|
125
|
-
"no-unmodified-loop-condition": ERROR,
|
126
|
-
"no-unreachable": ERROR, /* tsc */
|
127
|
-
"no-unreachable-loop": [
|
128
|
-
ERROR,
|
129
|
-
{
|
130
|
-
ignore: [] /* WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement */,
|
131
|
-
},
|
132
|
-
],
|
133
|
-
"no-unsafe-finally": ERROR,
|
134
|
-
"no-unsafe-negation": [
|
135
|
-
ERROR,
|
136
|
-
{
|
137
|
-
enforceForOrderingRelations: true,
|
138
|
-
},
|
139
|
-
], /* tsc */
|
140
|
-
"no-unsafe-optional-chaining": [
|
141
|
-
ERROR,
|
142
|
-
{
|
143
|
-
disallowArithmeticOperators: true,
|
144
|
-
},
|
145
|
-
],
|
146
|
-
"no-unused-private-class-members": ERROR,
|
147
|
-
"no-unused-vars": [
|
148
|
-
ERROR,
|
149
|
-
{
|
150
|
-
vars: All,
|
151
|
-
args: All,
|
152
|
-
caughtErrors: All,
|
153
|
-
ignoreRestSiblings: false,
|
154
|
-
ignoreClassWithStaticInitBlock: false,
|
155
|
-
reportUsedIgnorePattern: true,
|
156
|
-
},
|
157
|
-
] /* TSLint */,
|
158
|
-
"no-use-before-define": [
|
159
|
-
ERROR,
|
160
|
-
{
|
161
|
-
functions: true,
|
162
|
-
classes: true,
|
163
|
-
variables: true,
|
164
|
-
allowNamedExports: false,
|
165
|
-
},
|
166
|
-
] /* TSLint */,
|
167
|
-
"no-useless-assignment": ERROR,
|
168
|
-
"no-useless-backreference": ERROR,
|
169
|
-
"require-atomic-updates": [
|
170
|
-
ERROR,
|
171
|
-
{
|
172
|
-
allowProperties: false,
|
173
|
-
},
|
174
|
-
],
|
175
|
-
"use-isnan": [
|
176
|
-
ERROR,
|
177
|
-
{
|
178
|
-
enforceForSwitchCase: true,
|
179
|
-
enforceForIndexOf: true,
|
180
|
-
},
|
181
|
-
],
|
182
|
-
"valid-typeof": [
|
183
|
-
ERROR,
|
184
|
-
{
|
185
|
-
requireStringLiterals: true,
|
186
|
-
},
|
187
|
-
],
|
188
|
-
|
189
|
-
// #endregion PROBLEMS
|
190
|
-
|
191
|
-
// #region SUGGESTIONS
|
192
|
-
// [ https://eslint.org/docs/latest/rules/#suggestions ]
|
193
|
-
"accessor-pairs": [
|
194
|
-
ERROR,
|
195
|
-
{
|
196
|
-
setWithoutGet: true,
|
197
|
-
getWithoutSet: false,
|
198
|
-
enforceForClassMembers: true,
|
199
|
-
},
|
200
|
-
],
|
201
|
-
"arrow-body-style": [
|
202
|
-
ERROR,
|
203
|
-
AsNeeded,
|
204
|
-
{
|
205
|
-
requireReturnForObjectLiteral: true,
|
206
|
-
},
|
207
|
-
],
|
208
|
-
"block-scoped-var": ERROR,
|
209
|
-
camelcase: OFF /* preference */,
|
210
|
-
"capitalized-comments": OFF /* preference */,
|
211
|
-
"class-methods-use-this": OFF, /* preference -- TSLint */
|
212
|
-
complexity: OFF /* preference */,
|
213
|
-
"consistent-return": [
|
214
|
-
ERROR,
|
215
|
-
{
|
216
|
-
treatUndefinedAsUnspecified: false,
|
217
|
-
},
|
218
|
-
] /* tsc -- TSLint:off: tsconfig: noImplicitReturns */,
|
219
|
-
"consistent-this": ERROR,
|
220
|
-
curly: [
|
221
|
-
ERROR,
|
222
|
-
Multi,
|
223
|
-
],
|
224
|
-
"default-case": OFF, /* preference: don't care */
|
225
|
-
"default-case-last": ERROR,
|
226
|
-
"default-param-last": ERROR /* TSLint */,
|
227
|
-
"dot-notation": [
|
228
|
-
ERROR,
|
229
|
-
{
|
230
|
-
allowKeywords: true,
|
231
|
-
},
|
232
|
-
] /* TSLint */,
|
233
|
-
eqeqeq: [
|
234
|
-
ERROR,
|
235
|
-
Always,
|
236
|
-
],
|
237
|
-
"func-name-matching": OFF /* preference */,
|
238
|
-
"func-names": OFF /* preference */,
|
239
|
-
"func-style": OFF /* preference */,
|
240
|
-
"grouped-accessor-pairs": OFF /* preference -- BUG: requires adjacency, not as described in documentation */,
|
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
|
-
"id-denylist": OFF /* preference */,
|
243
|
-
"id-length": OFF /* preference */,
|
244
|
-
"id-match": OFF /* preference */,
|
245
|
-
"init-declarations": [
|
246
|
-
ERROR,
|
247
|
-
Always,
|
248
|
-
] /* TSLint */,
|
249
|
-
"logical-assignment-operators": [
|
250
|
-
ERROR,
|
251
|
-
Always,
|
252
|
-
{
|
253
|
-
enforceForIfStatements: true,
|
254
|
-
},
|
255
|
-
],
|
256
|
-
"max-classes-per-file": OFF /* preference */,
|
257
|
-
"max-depth": OFF /* preference */,
|
258
|
-
"max-lines": OFF /* preference */,
|
259
|
-
"max-lines-per-function": OFF /* preference */,
|
260
|
-
"max-nested-callbacks": OFF /* preference */,
|
261
|
-
"max-params": OFF, /* preference -- TSLint:off: preference */
|
262
|
-
"max-statements": OFF /* preference */,
|
263
|
-
"multiline-comment-style": OFF /* preference */,
|
264
|
-
"new-cap": OFF, /* preference -- breaks Scriptable */
|
265
|
-
"no-alert": ERROR,
|
266
|
-
"no-array-constructor": ERROR /* TSLint */,
|
267
|
-
"no-bitwise": [
|
268
|
-
ERROR,
|
269
|
-
{
|
270
|
-
allow: [],
|
271
|
-
int32Hint: true,
|
272
|
-
},
|
273
|
-
],
|
274
|
-
"no-caller": ERROR,
|
275
|
-
"no-case-declarations": ERROR,
|
276
|
-
"no-console": OFF, /* preference -- breaks Node.js console applications and Scriptable, and otherwise unnecessarily hampers browser test code */
|
277
|
-
"no-continue": ERROR,
|
278
|
-
"no-delete-var": ERROR,
|
279
|
-
"no-div-regex": ERROR,
|
280
|
-
"no-else-return": OFF /* preference */,
|
281
|
-
"no-empty": [
|
282
|
-
ERROR,
|
283
|
-
{
|
284
|
-
allowEmptyCatch: false,
|
285
|
-
},
|
286
|
-
],
|
287
|
-
"no-empty-function": [
|
288
|
-
ERROR,
|
289
|
-
{
|
290
|
-
allow:
|
291
|
-
["constructors"] /** functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */,
|
292
|
-
},
|
293
|
-
] /* TSLint */,
|
294
|
-
"no-empty-static-block": ERROR,
|
295
|
-
"no-eq-null": ERROR,
|
296
|
-
"no-eval": [
|
297
|
-
ERROR,
|
298
|
-
{
|
299
|
-
allowIndirect: false,
|
300
|
-
},
|
301
|
-
],
|
302
|
-
"no-extend-native": [
|
303
|
-
ERROR,
|
304
|
-
{
|
305
|
-
exceptions: [],
|
306
|
-
},
|
307
|
-
],
|
308
|
-
"no-extra-bind": ERROR,
|
309
|
-
"no-extra-boolean-cast": [
|
310
|
-
ERROR,
|
311
|
-
{
|
312
|
-
enforceForLogicalOperands: true,
|
313
|
-
},
|
314
|
-
],
|
315
|
-
"no-extra-label": ERROR,
|
316
|
-
"no-global-assign": [
|
317
|
-
ERROR,
|
318
|
-
{
|
319
|
-
exceptions: [],
|
320
|
-
},
|
321
|
-
],
|
322
|
-
"no-implicit-coercion": [
|
323
|
-
ERROR,
|
324
|
-
{
|
325
|
-
"boolean": true,
|
326
|
-
number: true,
|
327
|
-
string: true,
|
328
|
-
disallowTemplateShorthand: true,
|
329
|
-
allow: [] /** "~" | "!!" | "+" | "- -" | "-" | "*" */,
|
330
|
-
},
|
331
|
-
],
|
332
|
-
"no-implicit-globals": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
|
333
|
-
"no-implied-eval": ERROR /* TSLint */,
|
334
|
-
"no-inline-comments": OFF /* preference */,
|
335
|
-
"no-invalid-this": [
|
336
|
-
ERROR,
|
337
|
-
{ capIsConstructor: false },
|
338
|
-
] /* TSLint:off: tsconfig: { strict, noImplicitThis } */,
|
339
|
-
"no-iterator": ERROR,
|
340
|
-
"no-label-var": ERROR,
|
341
|
-
"no-lone-blocks": ERROR,
|
342
|
-
"no-lonely-if": OFF /* preference */,
|
343
|
-
"no-loop-func": ERROR /* TSLint */,
|
344
|
-
"no-magic-numbers": OFF /* preference - breaks TypeScript number literals, even with most liberal exceptions */,
|
345
|
-
"no-multi-assign": [
|
346
|
-
ERROR,
|
347
|
-
{
|
348
|
-
ignoreNonDeclaration: false,
|
349
|
-
},
|
350
|
-
],
|
351
|
-
"no-multi-str": ERROR,
|
352
|
-
"no-negated-condition": OFF /* preference */,
|
353
|
-
"no-nested-ternary": OFF /* preference */,
|
354
|
-
"no-new": ERROR,
|
355
|
-
"no-new-func": ERROR,
|
356
|
-
"no-new-wrappers": ERROR,
|
357
|
-
"no-nonoctal-decimal-escape": ERROR,
|
358
|
-
"no-object-constructor": ERROR,
|
359
|
-
"no-octal": ERROR,
|
360
|
-
"no-octal-escape": ERROR,
|
361
|
-
"no-param-reassign": [
|
362
|
-
ERROR,
|
363
|
-
{
|
364
|
-
props: true,
|
365
|
-
ignorePropertyModificationsFor: [],
|
366
|
-
ignorePropertyModificationsForRegex: [],
|
367
|
-
},
|
368
|
-
],
|
369
|
-
"no-plusplus": [
|
370
|
-
ERROR,
|
371
|
-
{
|
372
|
-
allowForLoopAfterthoughts: true,
|
373
|
-
},
|
374
|
-
],
|
375
|
-
"no-proto": ERROR,
|
376
|
-
"no-redeclare": [
|
377
|
-
ERROR,
|
378
|
-
{ builtinGlobals: true },
|
379
|
-
] /* tsc -- TSLint:off: tsc (let, const, -var) */,
|
380
|
-
"no-regex-spaces": OFF /* preference */,
|
381
|
-
"no-restricted-exports": OFF /* preference */,
|
382
|
-
"no-restricted-globals": OFF /* preference */,
|
383
|
-
"no-restricted-imports": OFF /* preference -- TSLint:off */,
|
384
|
-
"no-restricted-properties": OFF /* preference */,
|
385
|
-
"no-restricted-syntax": OFF /* preference */,
|
386
|
-
"no-return-assign": OFF /* "always" | "except-parens" (disallow assignments unless enclosed in parens) */,
|
387
|
-
"no-script-url": ERROR,
|
388
|
-
"no-sequences": [
|
389
|
-
ERROR,
|
390
|
-
{
|
391
|
-
allowInParentheses: true,
|
392
|
-
},
|
393
|
-
],
|
394
|
-
"no-shadow": OFF /* investigate -- TSLint:off: investigate */,
|
395
|
-
"no-shadow-restricted-names": ERROR,
|
396
|
-
"no-ternary": OFF /* preference */,
|
397
|
-
"no-throw-literal": ERROR /* TSLint */,
|
398
|
-
"no-undef-init": ERROR,
|
399
|
-
"no-undefined": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
|
400
|
-
"no-underscore-dangle": OFF /* preference */,
|
401
|
-
"no-unneeded-ternary": [
|
402
|
-
ERROR,
|
403
|
-
{
|
404
|
-
defaultAssignment: false,
|
405
|
-
},
|
406
|
-
],
|
407
|
-
"no-unused-expressions": [
|
408
|
-
ERROR,
|
409
|
-
{
|
410
|
-
allowShortCircuit: true,
|
411
|
-
allowTernary: true,
|
412
|
-
allowTaggedTemplates: true,
|
413
|
-
enforceForJSX: false,
|
414
|
-
},
|
415
|
-
] /* TSLint */,
|
416
|
-
"no-unused-labels": ERROR,
|
417
|
-
"no-useless-call": ERROR,
|
418
|
-
"no-useless-catch": ERROR,
|
419
|
-
"no-useless-computed-key": [
|
420
|
-
ERROR,
|
421
|
-
{
|
422
|
-
enforceForClassMembers: true,
|
423
|
-
},
|
424
|
-
],
|
425
|
-
"no-useless-concat": ERROR,
|
426
|
-
"no-useless-constructor": ERROR /* TSLint */,
|
427
|
-
"no-useless-escape": ERROR,
|
428
|
-
"no-useless-rename": [
|
429
|
-
ERROR,
|
430
|
-
{
|
431
|
-
ignoreImport: false,
|
432
|
-
ignoreExport: false,
|
433
|
-
ignoreDestructuring: false,
|
434
|
-
},
|
435
|
-
],
|
436
|
-
"no-useless-return": ERROR,
|
437
|
-
"no-var": ERROR,
|
438
|
-
"no-void": [
|
439
|
-
ERROR,
|
440
|
-
{
|
441
|
-
allowAsStatement: true,
|
442
|
-
|
443
|
-
},
|
444
|
-
],
|
445
|
-
"no-warning-comments": OFF /* preference */,
|
446
|
-
"no-with": ERROR,
|
447
|
-
"object-shorthand": [
|
448
|
-
ERROR,
|
449
|
-
Always,
|
450
|
-
{
|
451
|
-
avoidQuotes: true,
|
452
|
-
ignoreConstructors: false,
|
453
|
-
avoidExplicitReturnArrows: false,
|
454
|
-
},
|
455
|
-
],
|
456
|
-
"one-var": [
|
457
|
-
ERROR,
|
458
|
-
{
|
459
|
-
"var": Consecutive,
|
460
|
-
let: Consecutive,
|
461
|
-
"const": Consecutive,
|
462
|
-
separateRequires: true,
|
463
|
-
},
|
464
|
-
],
|
465
|
-
"operator-assignment": [
|
466
|
-
ERROR,
|
467
|
-
Always,
|
468
|
-
],
|
469
|
-
"prefer-arrow-callback": [
|
470
|
-
ERROR,
|
471
|
-
{
|
472
|
-
allowNamedFunctions: false,
|
473
|
-
allowUnboundThis: true,
|
474
|
-
},
|
475
|
-
],
|
476
|
-
"prefer-const": [
|
477
|
-
ERROR,
|
478
|
-
{
|
479
|
-
destructuring: All,
|
480
|
-
ignoreReadBeforeAssign: false,
|
481
|
-
},
|
482
|
-
],
|
483
|
-
"prefer-destructuring": [
|
484
|
-
ERROR,
|
485
|
-
{
|
486
|
-
VariableDeclarator: {
|
487
|
-
array: true,
|
488
|
-
object: true,
|
489
|
-
},
|
490
|
-
AssignmentExpression: {
|
491
|
-
array: false,
|
492
|
-
object: false,
|
493
|
-
},
|
494
|
-
},
|
495
|
-
{ enforceForRenamedProperties: true },
|
496
|
-
] /* TSLint */,
|
497
|
-
"prefer-exponentiation-operator": ERROR,
|
498
|
-
"prefer-named-capture-group": OFF,
|
499
|
-
"prefer-numeric-literals": ERROR,
|
500
|
-
"prefer-object-has-own": ERROR,
|
501
|
-
"prefer-object-spread": ERROR,
|
502
|
-
"prefer-promise-reject-errors": [
|
503
|
-
ERROR,
|
504
|
-
{
|
505
|
-
allowEmptyReject: false,
|
506
|
-
},
|
507
|
-
],
|
508
|
-
"prefer-regex-literals": [
|
509
|
-
ERROR,
|
510
|
-
{
|
511
|
-
disallowRedundantWrapping: true,
|
512
|
-
},
|
513
|
-
] /* TSLint */,
|
514
|
-
"prefer-rest-params": ERROR,
|
515
|
-
"prefer-spread": ERROR,
|
516
|
-
"prefer-template": ERROR,
|
517
|
-
radix: [
|
518
|
-
ERROR,
|
519
|
-
AsNeeded,
|
520
|
-
],
|
521
|
-
"require-await": ERROR /* TSLint */,
|
522
|
-
"require-unicode-regexp": ERROR,
|
523
|
-
"require-yield": ERROR,
|
524
|
-
"sort-imports": OFF /* preference */,
|
525
|
-
"sort-keys": OFF /* preference */,
|
526
|
-
"sort-vars": OFF /* preference */,
|
527
|
-
strict: OFF /* preference */,
|
528
|
-
"symbol-description": OFF /* preference */,
|
529
|
-
"vars-on-top": ERROR,
|
530
|
-
yoda: [
|
531
|
-
ERROR,
|
532
|
-
Never,
|
533
|
-
{
|
534
|
-
exceptRange: false,
|
535
|
-
onlyEquality: false,
|
536
|
-
},
|
537
|
-
],
|
538
|
-
|
539
|
-
// #endregion SUGGESTIONS
|
540
|
-
|
541
|
-
// #region LAYOUT & FORMATTING
|
542
|
-
// [ https://eslint.org/docs/latest/rules/#layout--formatting ]
|
543
|
-
"unicode-bom": OFF /* preference: don't care */,
|
544
|
-
|
545
|
-
// #endregion LAYOUT & FORMATTING
|
546
|
-
},
|
547
|
-
] as const;
|