linted 16.12.2-rc.0 → 16.12.2-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/rules/html/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/html/enable.d.ts.map +1 -0
- package/dist/rules/html/enable.js +15 -0
- package/dist/rules/html/enable.js.map +1 -0
- package/dist/rules/{mocha/_recommended.d.ts → html/enable_recommended.d.ts} +1 -1
- package/dist/rules/html/enable_recommended.d.ts.map +1 -0
- package/dist/rules/html/enable_recommended.js +8 -0
- package/dist/rules/html/enable_recommended.js.map +1 -0
- package/dist/rules/{_html.d.ts → html.d.ts} +1 -1
- package/dist/rules/html.d.ts.map +1 -0
- package/dist/rules/html.js +4 -0
- package/dist/rules/html.js.map +1 -0
- package/dist/rules/js/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/js/{_enable.d.ts.map → enable.d.ts.map} +1 -1
- package/dist/rules/js/{_enable.js → enable.js} +281 -45
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/rules/js/{stylistic.d.ts → enable_stylistic.d.ts} +25 -25
- package/dist/rules/js/{stylistic.d.ts.map → enable_stylistic.d.ts.map} +1 -1
- package/dist/rules/js/enable_stylistic.js +585 -0
- package/dist/rules/js/enable_stylistic.js.map +1 -0
- package/dist/rules/{_js.d.ts → js.d.ts} +25 -25
- package/dist/rules/{_js.d.ts.map → js.d.ts.map} +1 -1
- package/dist/rules/js.js +4 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/rules/json/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/rules/json/{_enable.js → enable.js} +3 -3
- package/dist/rules/json/enable.js.map +1 -0
- package/dist/rules/json/enable_x.d.ts.map +1 -1
- package/dist/rules/json/enable_x.js +48 -8
- package/dist/rules/json/enable_x.js.map +1 -1
- package/dist/rules/{_json.d.ts → json.d.ts} +1 -1
- package/dist/rules/json.d.ts.map +1 -0
- package/dist/rules/{_json.js → json.js} +2 -2
- package/dist/rules/json.js.map +1 -0
- package/dist/rules/jsonc/override.d.ts.map +1 -1
- package/dist/rules/jsonc/override.js +12 -3
- package/dist/rules/jsonc/override.js.map +1 -1
- package/dist/rules/{_jsonc.d.ts → jsonc.d.ts} +1 -1
- package/dist/rules/jsonc.d.ts.map +1 -0
- package/dist/rules/{_jsonc.js → jsonc.js} +2 -2
- package/dist/rules/jsonc.js.map +1 -0
- package/dist/rules/md/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/md/enable.d.ts.map +1 -0
- package/dist/rules/md/enable.js +14 -0
- package/dist/rules/md/enable.js.map +1 -0
- package/dist/rules/{_md.d.ts → md.d.ts} +1 -1
- package/dist/rules/md.d.ts.map +1 -0
- package/dist/rules/md.js +3 -0
- package/dist/rules/md.js.map +1 -0
- package/dist/rules/mocha/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/mocha/enable.d.ts.map +1 -0
- package/dist/rules/mocha/enable.js +3 -0
- package/dist/rules/mocha/enable.js.map +1 -0
- package/dist/rules/{html/_recommended.d.ts → mocha/enable_recommended.d.ts} +1 -1
- package/dist/rules/mocha/enable_recommended.d.ts.map +1 -0
- package/dist/rules/mocha/enable_recommended.js +8 -0
- package/dist/rules/mocha/enable_recommended.js.map +1 -0
- package/dist/rules/{_mocha.d.ts → mocha.d.ts} +1 -1
- package/dist/rules/mocha.d.ts.map +1 -0
- package/dist/rules/mocha.js +4 -0
- package/dist/rules/mocha.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 +8 -0
- package/dist/rules/svelte/disable.js.map +1 -0
- package/dist/rules/svelte/disable_js.d.ts.map +1 -1
- package/dist/rules/svelte/disable_js.js +8 -3
- package/dist/rules/svelte/disable_js.js.map +1 -1
- package/dist/rules/svelte/disable_ts.d.ts.map +1 -1
- package/dist/rules/svelte/disable_ts.js +8 -3
- package/dist/rules/svelte/disable_ts.js.map +1 -1
- package/dist/rules/svelte/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/svelte/enable.d.ts.map +1 -0
- package/dist/rules/svelte/enable.js +190 -0
- package/dist/rules/svelte/enable.js.map +1 -0
- package/dist/rules/svelte/enable_x.d.ts.map +1 -1
- package/dist/rules/svelte/enable_x.js +15 -3
- package/dist/rules/svelte/enable_x.js.map +1 -1
- package/dist/rules/{_svelte.d.ts → svelte.d.ts} +27 -27
- package/dist/rules/{_svelte.d.ts.map → svelte.d.ts.map} +1 -1
- package/dist/rules/{_svelte.js → svelte.js} +4 -4
- package/dist/rules/svelte.js.map +1 -0
- package/dist/rules/ts/{disable_compiler.d.ts → disable.d.ts} +2 -2
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/rules/ts/{disable_compiler.js → disable.js} +3 -4
- package/dist/rules/ts/disable.js.map +1 -0
- package/dist/rules/ts/disable_x.d.ts.map +1 -1
- package/dist/rules/ts/disable_x.js +1 -2
- package/dist/rules/ts/disable_x.js.map +1 -1
- package/dist/rules/ts/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/rules/ts/{_enable.js → enable.js} +173 -29
- package/dist/rules/ts/enable.js.map +1 -0
- package/dist/rules/ts/enable_x.d.ts.map +1 -1
- package/dist/rules/ts/enable_x.js +32 -5
- package/dist/rules/ts/enable_x.js.map +1 -1
- package/dist/rules/{_ts.d.ts → ts.d.ts} +26 -26
- package/dist/rules/{_ts.d.ts.map → ts.d.ts.map} +1 -1
- package/dist/rules/{_ts.js → ts.js} +4 -4
- package/dist/rules/ts.js.map +1 -0
- package/dist/rules/yml/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/yml/enable.d.ts.map +1 -0
- package/dist/rules/yml/enable.js +60 -0
- package/dist/rules/yml/enable.js.map +1 -0
- package/dist/rules/yml/enable_x.d.ts.map +1 -1
- package/dist/rules/yml/enable_x.js +57 -9
- package/dist/rules/yml/enable_x.js.map +1 -1
- package/dist/rules/{_yml.d.ts → yml.d.ts} +1 -1
- package/dist/rules/yml.d.ts.map +1 -0
- package/dist/rules/{_yml.js → yml.js} +2 -2
- package/dist/rules/yml.js.map +1 -0
- package/dist/rules.d.ts +75 -75
- package/dist/rules.js +9 -9
- package/dist/rules.js.map +1 -1
- package/package.json +2 -2
- package/src/rules/html/enable.ts +16 -0
- package/src/rules/html/enable_recommended.ts +9 -0
- package/src/rules/html.ts +4 -0
- package/src/rules/js/enable.ts +524 -0
- package/src/rules/js/enable_stylistic.ts +608 -0
- package/src/rules/js.ts +4 -0
- package/src/rules/json/{_enable.ts → enable.ts} +3 -5
- package/src/rules/json/enable_x.ts +48 -9
- package/src/rules/{_json.ts → json.ts} +1 -1
- package/src/rules/jsonc/override.ts +13 -6
- package/src/rules/{_jsonc.ts → jsonc.ts} +1 -1
- package/src/rules/md/enable.ts +15 -0
- package/src/rules/md.ts +3 -0
- package/src/rules/mocha/enable.ts +3 -0
- package/src/rules/mocha/enable_recommended.ts +9 -0
- package/src/rules/mocha.ts +4 -0
- package/src/rules/svelte/disable.ts +9 -0
- package/src/rules/svelte/disable_js.ts +10 -6
- package/src/rules/svelte/disable_ts.ts +8 -4
- package/src/rules/svelte/{_enable.ts → enable.ts} +120 -21
- package/src/rules/svelte/enable_x.ts +15 -4
- package/src/rules/{_svelte.ts → svelte.ts} +3 -3
- package/src/rules/ts/{disable_compiler.ts → disable.ts} +3 -4
- package/src/rules/ts/disable_x.ts +2 -6
- package/src/rules/ts/{_enable.ts → enable.ts} +176 -33
- package/src/rules/ts/enable_x.ts +37 -12
- package/src/rules/{_ts.ts → ts.ts} +3 -3
- package/src/rules/yml/{_enable.ts → enable.ts} +38 -7
- package/src/rules/yml/enable_x.ts +56 -9
- package/src/rules/{_yml.ts → yml.ts} +1 -1
- package/src/rules.ts +9 -9
- package/dist/rules/_html.d.ts.map +0 -1
- package/dist/rules/_html.js +0 -4
- package/dist/rules/_html.js.map +0 -1
- package/dist/rules/_js.js +0 -4
- package/dist/rules/_js.js.map +0 -1
- package/dist/rules/_json.d.ts.map +0 -1
- package/dist/rules/_json.js.map +0 -1
- package/dist/rules/_jsonc.d.ts.map +0 -1
- package/dist/rules/_jsonc.js.map +0 -1
- package/dist/rules/_md.d.ts.map +0 -1
- package/dist/rules/_md.js +0 -3
- package/dist/rules/_md.js.map +0 -1
- package/dist/rules/_mocha.d.ts.map +0 -1
- package/dist/rules/_mocha.js +0 -4
- package/dist/rules/_mocha.js.map +0 -1
- package/dist/rules/_svelte.js.map +0 -1
- package/dist/rules/_ts.js.map +0 -1
- package/dist/rules/_yml.d.ts.map +0 -1
- package/dist/rules/_yml.js.map +0 -1
- package/dist/rules/html/_enable.d.ts.map +0 -1
- package/dist/rules/html/_enable.js +0 -10
- package/dist/rules/html/_enable.js.map +0 -1
- package/dist/rules/html/_recommended.d.ts.map +0 -1
- package/dist/rules/html/_recommended.js +0 -5
- package/dist/rules/html/_recommended.js.map +0 -1
- package/dist/rules/js/_enable.js.map +0 -1
- package/dist/rules/js/stylistic.js +0 -270
- package/dist/rules/js/stylistic.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/md/_enable.d.ts.map +0 -1
- package/dist/rules/md/_enable.js +0 -9
- package/dist/rules/md/_enable.js.map +0 -1
- package/dist/rules/mocha/_enable.d.ts.map +0 -1
- package/dist/rules/mocha/_enable.js +0 -4
- package/dist/rules/mocha/_enable.js.map +0 -1
- package/dist/rules/mocha/_recommended.d.ts.map +0 -1
- package/dist/rules/mocha/_recommended.js +0 -5
- package/dist/rules/mocha/_recommended.js.map +0 -1
- package/dist/rules/svelte/_enable.d.ts.map +0 -1
- package/dist/rules/svelte/_enable.js +0 -90
- package/dist/rules/svelte/_enable.js.map +0 -1
- package/dist/rules/svelte/disable_x.d.ts +0 -5
- package/dist/rules/svelte/disable_x.d.ts.map +0 -1
- package/dist/rules/svelte/disable_x.js +0 -4
- package/dist/rules/svelte/disable_x.js.map +0 -1
- package/dist/rules/ts/_enable.d.ts.map +0 -1
- package/dist/rules/ts/_enable.js.map +0 -1
- package/dist/rules/ts/disable_compiler.d.ts.map +0 -1
- package/dist/rules/ts/disable_compiler.js.map +0 -1
- package/dist/rules/yml/_enable.d.ts.map +0 -1
- package/dist/rules/yml/_enable.js +0 -28
- package/dist/rules/yml/_enable.js.map +0 -1
- package/src/rules/_html.ts +0 -4
- package/src/rules/_js.ts +0 -4
- package/src/rules/_md.ts +0 -3
- package/src/rules/_mocha.ts +0 -4
- package/src/rules/html/_enable.ts +0 -13
- package/src/rules/html/_recommended.ts +0 -7
- package/src/rules/js/_enable.ts +0 -287
- package/src/rules/js/stylistic.ts +0 -294
- package/src/rules/md/_enable.ts +0 -14
- package/src/rules/mocha/_enable.ts +0 -5
- package/src/rules/mocha/_recommended.ts +0 -7
- package/src/rules/svelte/disable_x.ts +0 -8
@@ -1,9 +1,16 @@
|
|
1
|
-
import {
|
1
|
+
import { override, level, state } from "../_strings.js";
|
2
2
|
|
3
|
-
const
|
4
|
-
{ override } = id,
|
5
|
-
{ ERROR, OFF } = level,
|
3
|
+
const { ERROR, OFF } = level,
|
6
4
|
{ AlwaysMultiline } = state;
|
7
5
|
|
8
|
-
|
9
|
-
|
6
|
+
export default [
|
7
|
+
override,
|
8
|
+
{
|
9
|
+
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
10
|
+
"jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
|
11
|
+
"jsonc/comma-dangle": [
|
12
|
+
ERROR,
|
13
|
+
AlwaysMultiline,
|
14
|
+
] /* trailing commas ARE allowed in JSONC */,
|
15
|
+
},
|
16
|
+
] as const;
|
package/src/rules/md.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { recommended } from "../_strings.js";
|
2
|
+
import mocha from "eslint-plugin-mocha";
|
3
|
+
|
4
|
+
// REMOVE shared config once manually configured
|
5
|
+
export default [
|
6
|
+
recommended,
|
7
|
+
(mocha.configs.flat.recommended as Record<"rules", Record<string, "off">>)
|
8
|
+
.rules,
|
9
|
+
] as const;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { disable, OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
disable,
|
5
|
+
{
|
6
|
+
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
7
|
+
"no-inner-declarations": OFF /* also disabled in SvelteDisableConflictJs per Svelte base config */,
|
8
|
+
},
|
9
|
+
] as const;
|
@@ -1,7 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { OFF } from "../_strings.js";
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
//
|
7
|
-
|
3
|
+
export default [
|
4
|
+
"disable-js",
|
5
|
+
{
|
6
|
+
// Recommended by Svelte base config
|
7
|
+
// http://github.com/sveltejs/eslint-plugin-svelte/tree/main/src/configs/flat
|
8
|
+
"no-inner-declarations": OFF /* ESLint Core */,
|
9
|
+
"no-self-assign": OFF /* ESLint Core */,
|
10
|
+
},
|
11
|
+
] as const;
|
@@ -1,5 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { OFF } from "../_strings.js";
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
export default [
|
4
|
+
"disable-ts",
|
5
|
+
{
|
6
|
+
"no-unused-vars": OFF /* ESLint Core */,
|
7
|
+
"@typescript-eslint/no-unused-vars": OFF /* TS Extension */,
|
8
|
+
},
|
9
|
+
] as const;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { enable, level, state } from "../_strings.js";
|
2
2
|
|
3
3
|
const
|
4
|
-
{ enable } = id,
|
5
4
|
{ ERROR, OFF } = level,
|
6
5
|
{
|
7
6
|
Never,
|
@@ -25,13 +24,28 @@ export default [
|
|
25
24
|
"svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
|
26
25
|
"svelte/no-not-function-handler": ERROR,
|
27
26
|
"svelte/no-object-in-text-mustaches": ERROR,
|
28
|
-
"svelte/no-reactive-reassign": [
|
27
|
+
"svelte/no-reactive-reassign": [
|
28
|
+
ERROR,
|
29
|
+
{
|
30
|
+
props: true,
|
31
|
+
},
|
32
|
+
],
|
29
33
|
"svelte/no-shorthand-style-property-overrides": ERROR,
|
30
34
|
"svelte/no-store-async": ERROR,
|
31
|
-
"svelte/no-unknown-style-directive-property": [
|
35
|
+
"svelte/no-unknown-style-directive-property": [
|
36
|
+
ERROR,
|
37
|
+
{
|
38
|
+
ignorePrefixed: true,
|
39
|
+
},
|
40
|
+
],
|
32
41
|
"svelte/require-store-callbacks-use-set-param": ERROR,
|
33
42
|
"svelte/require-store-reactive-access": ERROR,
|
34
|
-
"svelte/valid-compile": [
|
43
|
+
"svelte/valid-compile": [
|
44
|
+
ERROR,
|
45
|
+
{
|
46
|
+
ignoreWarnings: false,
|
47
|
+
},
|
48
|
+
],
|
35
49
|
"svelte/valid-prop-names-in-kit-pages": ERROR,
|
36
50
|
|
37
51
|
// #endregion
|
@@ -39,7 +53,13 @@ export default [
|
|
39
53
|
// #region Security
|
40
54
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
|
41
55
|
"svelte/no-at-html-tags": ERROR,
|
42
|
-
"svelte/no-target-blank": [
|
56
|
+
"svelte/no-target-blank": [
|
57
|
+
ERROR,
|
58
|
+
{
|
59
|
+
allowReferrer: false,
|
60
|
+
enforceDynamicLinks: Always,
|
61
|
+
},
|
62
|
+
],
|
43
63
|
|
44
64
|
// #endregion
|
45
65
|
|
@@ -51,20 +71,41 @@ export default [
|
|
51
71
|
enforceScriptPresent: true,
|
52
72
|
enforceStylePresent: false,
|
53
73
|
script: ["ts"],
|
54
|
-
style: [
|
74
|
+
style: [
|
75
|
+
"css",
|
76
|
+
"scss",
|
77
|
+
],
|
55
78
|
},
|
56
79
|
], /* INVESTIGATE: */
|
57
|
-
"svelte/button-has-type": [
|
80
|
+
"svelte/button-has-type": [
|
81
|
+
ERROR,
|
82
|
+
{
|
83
|
+
button: true,
|
84
|
+
submit: true,
|
85
|
+
reset: true,
|
86
|
+
},
|
87
|
+
],
|
58
88
|
"svelte/no-at-debug-tags": ERROR,
|
59
89
|
"svelte/no-ignored-unsubscribe": ERROR,
|
60
90
|
"svelte/no-immutable-reactive-statements": ERROR,
|
61
|
-
"svelte/no-inline-styles": [
|
91
|
+
"svelte/no-inline-styles": [
|
92
|
+
ERROR,
|
93
|
+
{
|
94
|
+
allowTransitions: false,
|
95
|
+
},
|
96
|
+
],
|
62
97
|
"svelte/no-reactive-functions": ERROR,
|
63
98
|
"svelte/no-reactive-literals": ERROR,
|
64
99
|
"svelte/no-svelte-internal": ERROR,
|
65
100
|
"svelte/no-unused-class-name": ERROR, /* BUG: ESLint error if array empty */
|
66
101
|
"svelte/no-unused-svelte-ignore": ERROR,
|
67
|
-
"svelte/no-useless-mustaches": [
|
102
|
+
"svelte/no-useless-mustaches": [
|
103
|
+
ERROR,
|
104
|
+
{
|
105
|
+
ignoreIncludesComment: false,
|
106
|
+
ignoreStringEscape: false,
|
107
|
+
},
|
108
|
+
],
|
68
109
|
"svelte/prefer-destructured-store-props": ERROR,
|
69
110
|
"svelte/require-each-key": ERROR,
|
70
111
|
"svelte/require-event-dispatcher-types": ERROR,
|
@@ -77,9 +118,31 @@ export default [
|
|
77
118
|
// #region Style
|
78
119
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
|
79
120
|
"svelte/derived-has-same-inputs-outputs": ERROR,
|
80
|
-
"svelte/first-attribute-linebreak": [
|
81
|
-
|
82
|
-
|
121
|
+
"svelte/first-attribute-linebreak": [
|
122
|
+
ERROR,
|
123
|
+
{
|
124
|
+
multiline: Below,
|
125
|
+
singleline: Below,
|
126
|
+
},
|
127
|
+
],
|
128
|
+
"svelte/html-closing-bracket-spacing": [
|
129
|
+
ERROR,
|
130
|
+
{
|
131
|
+
startTag: Never,
|
132
|
+
endTag: Never,
|
133
|
+
selfClosingTag: Always,
|
134
|
+
},
|
135
|
+
],
|
136
|
+
"svelte/html-quotes": [
|
137
|
+
ERROR,
|
138
|
+
{
|
139
|
+
prefer: Double,
|
140
|
+
dynamic: {
|
141
|
+
quoted: false,
|
142
|
+
avoidInvalidUnquotedInHTML: true,
|
143
|
+
},
|
144
|
+
},
|
145
|
+
],
|
83
146
|
"svelte/html-self-closing": [
|
84
147
|
ERROR,
|
85
148
|
{
|
@@ -89,25 +152,56 @@ export default [
|
|
89
152
|
svelte: Always /* or NEVER or "ignore" */,
|
90
153
|
},
|
91
154
|
],
|
92
|
-
"svelte/indent": [
|
93
|
-
|
155
|
+
"svelte/indent": [
|
156
|
+
ERROR,
|
157
|
+
{
|
158
|
+
indent: 2,
|
159
|
+
switchCase: 1,
|
160
|
+
alignAttributesVertically: true,
|
161
|
+
},
|
162
|
+
],
|
163
|
+
"svelte/max-attributes-per-line": [
|
164
|
+
ERROR,
|
165
|
+
{
|
166
|
+
multiline: 1,
|
167
|
+
singleline: 1,
|
168
|
+
},
|
169
|
+
],
|
94
170
|
"svelte/mustache-spacing": [
|
95
171
|
ERROR,
|
96
172
|
{
|
97
173
|
textExpressions: Never /* or ALWAYS */,
|
98
174
|
attributesAndProps: Never /* or ALWAYS */,
|
99
175
|
directiveExpressions: Never /* or ALWAYS */,
|
100
|
-
tags: {
|
176
|
+
tags: {
|
177
|
+
openingBrace: Never /* or ALWAYS */,
|
178
|
+
closingBrace: Never /* or ALWAYS or "always-after-expression" */,
|
179
|
+
},
|
101
180
|
},
|
102
181
|
],
|
103
182
|
"svelte/no-extra-reactive-curlies": ERROR,
|
104
183
|
"svelte/no-restricted-html-elements": OFF,
|
105
184
|
"svelte/no-spaces-around-equal-signs-in-attribute": ERROR,
|
106
|
-
"svelte/prefer-class-directive": [
|
185
|
+
"svelte/prefer-class-directive": [
|
186
|
+
ERROR,
|
187
|
+
{
|
188
|
+
prefer: "empty",
|
189
|
+
},
|
190
|
+
],
|
107
191
|
"svelte/prefer-style-directive": ERROR,
|
108
|
-
"svelte/shorthand-attribute": [
|
109
|
-
|
110
|
-
|
192
|
+
"svelte/shorthand-attribute": [
|
193
|
+
ERROR,
|
194
|
+
{
|
195
|
+
prefer: Always,
|
196
|
+
},
|
197
|
+
],
|
198
|
+
"svelte/shorthand-directive": [
|
199
|
+
ERROR,
|
200
|
+
{
|
201
|
+
prefer: Always,
|
202
|
+
},
|
203
|
+
],
|
204
|
+
"svelte/sort-attributes": OFF /* INVESTIGATE: */,
|
111
205
|
"svelte/spaced-html-comment": [ERROR, Always],
|
112
206
|
|
113
207
|
// #endregion
|
@@ -120,7 +214,12 @@ export default [
|
|
120
214
|
|
121
215
|
// #region System (REQUIRED)
|
122
216
|
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
|
123
|
-
"svelte/comment-directive": [
|
217
|
+
"svelte/comment-directive": [
|
218
|
+
ERROR,
|
219
|
+
{
|
220
|
+
reportUnusedDisableDirectives: true,
|
221
|
+
},
|
222
|
+
],
|
124
223
|
"svelte/system": ERROR,
|
125
224
|
|
126
225
|
// #endregion
|
@@ -1,9 +1,20 @@
|
|
1
|
-
import {
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
2
|
|
3
3
|
const
|
4
|
-
{ enable_x } = id,
|
5
4
|
{ ERROR, OFF } = level,
|
6
5
|
{ Allow, Both } = state;
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
export default [
|
8
|
+
enable_x,
|
9
|
+
{
|
10
|
+
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
11
|
+
"svelte/no-inner-declarations": [
|
12
|
+
ERROR,
|
13
|
+
Both,
|
14
|
+
{
|
15
|
+
blockScopedFunctions: Allow,
|
16
|
+
},
|
17
|
+
] /* Same options as in JsEnable */,
|
18
|
+
"svelte/no-trailing-spaces": OFF /* Only applies to HTML comments, which I don't intend to use: http://sveltejs.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/ */,
|
19
|
+
},
|
20
|
+
] as const;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import TsRuleset from "./
|
1
|
+
import TsRuleset from "./ts.js";
|
2
2
|
import DisableJS from "./svelte/disable_js.js";
|
3
3
|
import DisableTS from "./svelte/disable_ts.js";
|
4
|
-
import DisableX from "./svelte/
|
4
|
+
import DisableX from "./svelte/disable.js";
|
5
5
|
import EnableX from "./svelte/enable_x.js";
|
6
|
-
import Enable from "./svelte/
|
6
|
+
import Enable from "./svelte/enable.js";
|
7
7
|
|
8
8
|
export default [
|
9
9
|
...TsRuleset,
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const { OFF } = level;
|
1
|
+
import { disable, OFF } from "../_strings.js";
|
4
2
|
|
5
3
|
export default [
|
6
|
-
|
4
|
+
disable,
|
7
5
|
{
|
6
|
+
// Handled by TypeScript compiler
|
8
7
|
"constructor-super": OFF,
|
9
8
|
"no-const-assign": OFF,
|
10
9
|
"no-dupe-args": OFF,
|
@@ -1,13 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const
|
4
|
-
{ disable_x } = id,
|
5
|
-
{ OFF } = level;
|
1
|
+
import { disable_x, OFF } from "../_strings.js";
|
6
2
|
|
7
3
|
export default [
|
8
4
|
disable_x,
|
9
5
|
{
|
10
|
-
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
6
|
+
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
11
7
|
"class-methods-use-this": OFF,
|
12
8
|
"consistent-return": OFF,
|
13
9
|
"default-param-last": OFF,
|