linted 16.12.2-rc.0 → 16.12.2-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/RELEASE.yml +35 -35
- package/.github/workflows/rc.yml +35 -35
- package/LICENSE +21 -21
- package/README.md +390 -390
- package/SECURITY.md +9 -9
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports.d.ts.map +1 -1
- package/dist/rules/html/enable.d.ts +8 -0
- 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/html/enable_recommended.d.ts +3 -0
- 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 +8 -0
- 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 +348 -0
- package/dist/rules/js/enable.d.ts.map +1 -0
- package/dist/rules/js/enable.js +496 -0
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/rules/js/enable_stylistic.d.ts +420 -0
- package/dist/rules/js/enable_stylistic.d.ts.map +1 -0
- package/dist/rules/js/enable_stylistic.js +585 -0
- package/dist/rules/js/enable_stylistic.js.map +1 -0
- package/dist/rules/js.d.ts +765 -0
- package/dist/rules/js.d.ts.map +1 -0
- package/dist/rules/js.js +4 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/rules/json/enable.d.ts +27 -0
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/rules/json/enable.js +31 -0
- 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 +74 -0
- package/dist/rules/json.d.ts.map +1 -0
- package/dist/rules/json.js +4 -0
- 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 +77 -0
- package/dist/rules/jsonc.d.ts.map +1 -0
- package/dist/rules/jsonc.js +4 -0
- package/dist/rules/jsonc.js.map +1 -0
- package/dist/rules/md/enable.d.ts +7 -0
- 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 +7 -0
- 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 +3 -0
- 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/mocha/enable_recommended.d.ts +3 -0
- 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 +8 -0
- 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 +126 -0
- 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 +1269 -0
- package/dist/rules/svelte.d.ts.map +1 -0
- package/dist/rules/svelte.js +15 -0
- package/dist/rules/svelte.js.map +1 -0
- package/dist/rules/ts/disable.d.ts +18 -0
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/rules/ts/disable.js +21 -0
- package/dist/rules/ts/disable.js.map +1 -0
- package/dist/rules/ts/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 +262 -0
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/rules/ts/enable.js +503 -0
- 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 +1133 -0
- package/dist/rules/ts.d.ts.map +1 -0
- package/dist/rules/ts.js +13 -0
- package/dist/rules/ts.js.map +1 -0
- package/dist/rules/yml/enable.d.ts +39 -0
- 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 +73 -0
- package/dist/rules/yml.d.ts.map +1 -0
- package/dist/rules/yml.js +4 -0
- 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/eslint.config.js +3 -3
- package/package.json +99 -99
- package/src/files/html.ts +1 -1
- package/src/files/js.ts +1 -1
- package/src/files/json.ts +1 -1
- package/src/files/jsonc.ts +4 -4
- package/src/files/md.ts +1 -1
- package/src/files/mocha.ts +1 -1
- package/src/files/svelte.ts +1 -1
- package/src/files/ts.ts +5 -5
- package/src/files/yml.ts +5 -5
- package/src/files.ts +22 -22
- package/src/imports/parsers.ts +15 -15
- package/src/imports/plugins.ts +19 -19
- package/src/imports.ts +8 -8
- package/src/index.ts +36 -36
- package/src/rules/_strings/id.ts +18 -18
- package/src/rules/_strings/level.ts +6 -6
- package/src/rules/_strings/state.ts +56 -56
- package/src/rules/_strings.ts +6 -6
- 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} +33 -35
- package/src/rules/json/enable_x.ts +89 -50
- package/src/rules/{_json.ts → json.ts} +4 -4
- package/src/rules/jsonc/override.ts +16 -9
- package/src/rules/{_jsonc.ts → jsonc.ts} +4 -4
- 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 +11 -7
- package/src/rules/svelte/disable_ts.ts +9 -5
- package/src/rules/svelte/{_enable.ts → enable.ts} +228 -129
- package/src/rules/svelte/enable_x.ts +20 -9
- package/src/rules/{_svelte.ts → svelte.ts} +15 -15
- package/src/rules/ts/{disable_compiler.ts → disable.ts} +22 -23
- package/src/rules/ts/disable_x.ts +32 -36
- package/src/rules/ts/{_enable.ts → enable.ts} +549 -406
- package/src/rules/ts/enable_x.ts +115 -90
- package/src/rules/{_ts.ts → ts.ts} +13 -13
- package/src/rules/yml/{_enable.ts → enable.ts} +64 -33
- package/src/rules/yml/enable_x.ts +68 -21
- package/src/rules/{_yml.ts → yml.ts} +4 -4
- package/src/rules.ts +22 -22
- package/tsconfig.json +161 -161
- package/types/markdownlint/index.d.ts +3 -3
- package/types/markdownlint/parser.d.ts +9 -9
- package/types/mocha/index.d.ts +8 -8
- 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
@@ -0,0 +1,126 @@
|
|
1
|
+
declare const _default: readonly ["enable", {
|
2
|
+
readonly "svelte/infinite-reactive-loop": "error";
|
3
|
+
readonly "svelte/no-dom-manipulating": "error";
|
4
|
+
readonly "svelte/no-dupe-else-if-blocks": "error";
|
5
|
+
readonly "svelte/no-dupe-on-directives": "error";
|
6
|
+
readonly "svelte/no-dupe-style-properties": "error";
|
7
|
+
readonly "svelte/no-dupe-use-directives": "error";
|
8
|
+
readonly "svelte/no-dynamic-slot-name": "error";
|
9
|
+
readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
|
10
|
+
readonly "svelte/no-not-function-handler": "error";
|
11
|
+
readonly "svelte/no-object-in-text-mustaches": "error";
|
12
|
+
readonly "svelte/no-reactive-reassign": readonly ["error", {
|
13
|
+
readonly props: true;
|
14
|
+
}];
|
15
|
+
readonly "svelte/no-shorthand-style-property-overrides": "error";
|
16
|
+
readonly "svelte/no-store-async": "error";
|
17
|
+
readonly "svelte/no-unknown-style-directive-property": readonly ["error", {
|
18
|
+
readonly ignorePrefixed: true;
|
19
|
+
}];
|
20
|
+
readonly "svelte/require-store-callbacks-use-set-param": "error";
|
21
|
+
readonly "svelte/require-store-reactive-access": "error";
|
22
|
+
readonly "svelte/valid-compile": readonly ["error", {
|
23
|
+
readonly ignoreWarnings: false;
|
24
|
+
}];
|
25
|
+
readonly "svelte/valid-prop-names-in-kit-pages": "error";
|
26
|
+
readonly "svelte/no-at-html-tags": "error";
|
27
|
+
readonly "svelte/no-target-blank": readonly ["error", {
|
28
|
+
readonly allowReferrer: false;
|
29
|
+
readonly enforceDynamicLinks: "always";
|
30
|
+
}];
|
31
|
+
readonly "svelte/block-lang": readonly ["error", {
|
32
|
+
readonly enforceScriptPresent: true;
|
33
|
+
readonly enforceStylePresent: false;
|
34
|
+
readonly script: readonly ["ts"];
|
35
|
+
readonly style: readonly ["css", "scss"];
|
36
|
+
}];
|
37
|
+
readonly "svelte/button-has-type": readonly ["error", {
|
38
|
+
readonly button: true;
|
39
|
+
readonly submit: true;
|
40
|
+
readonly reset: true;
|
41
|
+
}];
|
42
|
+
readonly "svelte/no-at-debug-tags": "error";
|
43
|
+
readonly "svelte/no-ignored-unsubscribe": "error";
|
44
|
+
readonly "svelte/no-immutable-reactive-statements": "error";
|
45
|
+
readonly "svelte/no-inline-styles": readonly ["error", {
|
46
|
+
readonly allowTransitions: false;
|
47
|
+
}];
|
48
|
+
readonly "svelte/no-reactive-functions": "error";
|
49
|
+
readonly "svelte/no-reactive-literals": "error";
|
50
|
+
readonly "svelte/no-svelte-internal": "error";
|
51
|
+
readonly "svelte/no-unused-class-name": "error";
|
52
|
+
readonly "svelte/no-unused-svelte-ignore": "error";
|
53
|
+
readonly "svelte/no-useless-mustaches": readonly ["error", {
|
54
|
+
readonly ignoreIncludesComment: false;
|
55
|
+
readonly ignoreStringEscape: false;
|
56
|
+
}];
|
57
|
+
readonly "svelte/prefer-destructured-store-props": "error";
|
58
|
+
readonly "svelte/require-each-key": "error";
|
59
|
+
readonly "svelte/require-event-dispatcher-types": "error";
|
60
|
+
readonly "svelte/require-optimized-style-attribute": "error";
|
61
|
+
readonly "svelte/require-stores-init": "error";
|
62
|
+
readonly "svelte/valid-each-key": "error";
|
63
|
+
readonly "svelte/derived-has-same-inputs-outputs": "error";
|
64
|
+
readonly "svelte/first-attribute-linebreak": readonly ["error", {
|
65
|
+
readonly multiline: "below";
|
66
|
+
readonly singleline: "below";
|
67
|
+
}];
|
68
|
+
readonly "svelte/html-closing-bracket-spacing": readonly ["error", {
|
69
|
+
readonly startTag: "never";
|
70
|
+
readonly endTag: "never";
|
71
|
+
readonly selfClosingTag: "always";
|
72
|
+
}];
|
73
|
+
readonly "svelte/html-quotes": readonly ["error", {
|
74
|
+
readonly prefer: "double";
|
75
|
+
readonly dynamic: {
|
76
|
+
readonly quoted: false;
|
77
|
+
readonly avoidInvalidUnquotedInHTML: true;
|
78
|
+
};
|
79
|
+
}];
|
80
|
+
readonly "svelte/html-self-closing": readonly ["error", {
|
81
|
+
readonly void: "always";
|
82
|
+
readonly normal: "always";
|
83
|
+
readonly component: "always";
|
84
|
+
readonly svelte: "always";
|
85
|
+
}];
|
86
|
+
readonly "svelte/indent": readonly ["error", {
|
87
|
+
readonly indent: 2;
|
88
|
+
readonly switchCase: 1;
|
89
|
+
readonly alignAttributesVertically: true;
|
90
|
+
}];
|
91
|
+
readonly "svelte/max-attributes-per-line": readonly ["error", {
|
92
|
+
readonly multiline: 1;
|
93
|
+
readonly singleline: 1;
|
94
|
+
}];
|
95
|
+
readonly "svelte/mustache-spacing": readonly ["error", {
|
96
|
+
readonly textExpressions: "never";
|
97
|
+
readonly attributesAndProps: "never";
|
98
|
+
readonly directiveExpressions: "never";
|
99
|
+
readonly tags: {
|
100
|
+
readonly openingBrace: "never";
|
101
|
+
readonly closingBrace: "never";
|
102
|
+
};
|
103
|
+
}];
|
104
|
+
readonly "svelte/no-extra-reactive-curlies": "error";
|
105
|
+
readonly "svelte/no-restricted-html-elements": "off";
|
106
|
+
readonly "svelte/no-spaces-around-equal-signs-in-attribute": "error";
|
107
|
+
readonly "svelte/prefer-class-directive": readonly ["error", {
|
108
|
+
readonly prefer: "empty";
|
109
|
+
}];
|
110
|
+
readonly "svelte/prefer-style-directive": "error";
|
111
|
+
readonly "svelte/shorthand-attribute": readonly ["error", {
|
112
|
+
readonly prefer: "always";
|
113
|
+
}];
|
114
|
+
readonly "svelte/shorthand-directive": readonly ["error", {
|
115
|
+
readonly prefer: "always";
|
116
|
+
}];
|
117
|
+
readonly "svelte/sort-attributes": "off";
|
118
|
+
readonly "svelte/spaced-html-comment": readonly ["error", "always"];
|
119
|
+
readonly "svelte/no-goto-without-base": "error";
|
120
|
+
readonly "svelte/comment-directive": readonly ["error", {
|
121
|
+
readonly reportUnusedDisableDirectives: true;
|
122
|
+
}];
|
123
|
+
readonly "svelte/system": "error";
|
124
|
+
}];
|
125
|
+
export default _default;
|
126
|
+
//# sourceMappingURL=enable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wBAwNW"}
|
@@ -0,0 +1,190 @@
|
|
1
|
+
import { enable, level, state } from "../_strings.js";
|
2
|
+
const { ERROR, OFF } = level, { Never, Always, Below, Double, } = state;
|
3
|
+
export default [
|
4
|
+
enable,
|
5
|
+
{
|
6
|
+
"svelte/infinite-reactive-loop": ERROR,
|
7
|
+
"svelte/no-dom-manipulating": ERROR,
|
8
|
+
"svelte/no-dupe-else-if-blocks": ERROR,
|
9
|
+
"svelte/no-dupe-on-directives": ERROR,
|
10
|
+
"svelte/no-dupe-style-properties": ERROR,
|
11
|
+
"svelte/no-dupe-use-directives": ERROR,
|
12
|
+
"svelte/no-dynamic-slot-name": ERROR,
|
13
|
+
"svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
|
14
|
+
"svelte/no-not-function-handler": ERROR,
|
15
|
+
"svelte/no-object-in-text-mustaches": ERROR,
|
16
|
+
"svelte/no-reactive-reassign": [
|
17
|
+
ERROR,
|
18
|
+
{
|
19
|
+
props: true,
|
20
|
+
},
|
21
|
+
],
|
22
|
+
"svelte/no-shorthand-style-property-overrides": ERROR,
|
23
|
+
"svelte/no-store-async": ERROR,
|
24
|
+
"svelte/no-unknown-style-directive-property": [
|
25
|
+
ERROR,
|
26
|
+
{
|
27
|
+
ignorePrefixed: true,
|
28
|
+
},
|
29
|
+
],
|
30
|
+
"svelte/require-store-callbacks-use-set-param": ERROR,
|
31
|
+
"svelte/require-store-reactive-access": ERROR,
|
32
|
+
"svelte/valid-compile": [
|
33
|
+
ERROR,
|
34
|
+
{
|
35
|
+
ignoreWarnings: false,
|
36
|
+
},
|
37
|
+
],
|
38
|
+
"svelte/valid-prop-names-in-kit-pages": ERROR,
|
39
|
+
"svelte/no-at-html-tags": ERROR,
|
40
|
+
"svelte/no-target-blank": [
|
41
|
+
ERROR,
|
42
|
+
{
|
43
|
+
allowReferrer: false,
|
44
|
+
enforceDynamicLinks: Always,
|
45
|
+
},
|
46
|
+
],
|
47
|
+
"svelte/block-lang": [
|
48
|
+
ERROR,
|
49
|
+
{
|
50
|
+
enforceScriptPresent: true,
|
51
|
+
enforceStylePresent: false,
|
52
|
+
script: ["ts"],
|
53
|
+
style: [
|
54
|
+
"css",
|
55
|
+
"scss",
|
56
|
+
],
|
57
|
+
},
|
58
|
+
],
|
59
|
+
"svelte/button-has-type": [
|
60
|
+
ERROR,
|
61
|
+
{
|
62
|
+
button: true,
|
63
|
+
submit: true,
|
64
|
+
reset: true,
|
65
|
+
},
|
66
|
+
],
|
67
|
+
"svelte/no-at-debug-tags": ERROR,
|
68
|
+
"svelte/no-ignored-unsubscribe": ERROR,
|
69
|
+
"svelte/no-immutable-reactive-statements": ERROR,
|
70
|
+
"svelte/no-inline-styles": [
|
71
|
+
ERROR,
|
72
|
+
{
|
73
|
+
allowTransitions: false,
|
74
|
+
},
|
75
|
+
],
|
76
|
+
"svelte/no-reactive-functions": ERROR,
|
77
|
+
"svelte/no-reactive-literals": ERROR,
|
78
|
+
"svelte/no-svelte-internal": ERROR,
|
79
|
+
"svelte/no-unused-class-name": ERROR,
|
80
|
+
"svelte/no-unused-svelte-ignore": ERROR,
|
81
|
+
"svelte/no-useless-mustaches": [
|
82
|
+
ERROR,
|
83
|
+
{
|
84
|
+
ignoreIncludesComment: false,
|
85
|
+
ignoreStringEscape: false,
|
86
|
+
},
|
87
|
+
],
|
88
|
+
"svelte/prefer-destructured-store-props": ERROR,
|
89
|
+
"svelte/require-each-key": ERROR,
|
90
|
+
"svelte/require-event-dispatcher-types": ERROR,
|
91
|
+
"svelte/require-optimized-style-attribute": ERROR,
|
92
|
+
"svelte/require-stores-init": ERROR,
|
93
|
+
"svelte/valid-each-key": ERROR,
|
94
|
+
"svelte/derived-has-same-inputs-outputs": ERROR,
|
95
|
+
"svelte/first-attribute-linebreak": [
|
96
|
+
ERROR,
|
97
|
+
{
|
98
|
+
multiline: Below,
|
99
|
+
singleline: Below,
|
100
|
+
},
|
101
|
+
],
|
102
|
+
"svelte/html-closing-bracket-spacing": [
|
103
|
+
ERROR,
|
104
|
+
{
|
105
|
+
startTag: Never,
|
106
|
+
endTag: Never,
|
107
|
+
selfClosingTag: Always,
|
108
|
+
},
|
109
|
+
],
|
110
|
+
"svelte/html-quotes": [
|
111
|
+
ERROR,
|
112
|
+
{
|
113
|
+
prefer: Double,
|
114
|
+
dynamic: {
|
115
|
+
quoted: false,
|
116
|
+
avoidInvalidUnquotedInHTML: true,
|
117
|
+
},
|
118
|
+
},
|
119
|
+
],
|
120
|
+
"svelte/html-self-closing": [
|
121
|
+
ERROR,
|
122
|
+
{
|
123
|
+
"void": Always,
|
124
|
+
normal: Always,
|
125
|
+
component: Always,
|
126
|
+
svelte: Always,
|
127
|
+
},
|
128
|
+
],
|
129
|
+
"svelte/indent": [
|
130
|
+
ERROR,
|
131
|
+
{
|
132
|
+
indent: 2,
|
133
|
+
switchCase: 1,
|
134
|
+
alignAttributesVertically: true,
|
135
|
+
},
|
136
|
+
],
|
137
|
+
"svelte/max-attributes-per-line": [
|
138
|
+
ERROR,
|
139
|
+
{
|
140
|
+
multiline: 1,
|
141
|
+
singleline: 1,
|
142
|
+
},
|
143
|
+
],
|
144
|
+
"svelte/mustache-spacing": [
|
145
|
+
ERROR,
|
146
|
+
{
|
147
|
+
textExpressions: Never,
|
148
|
+
attributesAndProps: Never,
|
149
|
+
directiveExpressions: Never,
|
150
|
+
tags: {
|
151
|
+
openingBrace: Never,
|
152
|
+
closingBrace: Never,
|
153
|
+
},
|
154
|
+
},
|
155
|
+
],
|
156
|
+
"svelte/no-extra-reactive-curlies": ERROR,
|
157
|
+
"svelte/no-restricted-html-elements": OFF,
|
158
|
+
"svelte/no-spaces-around-equal-signs-in-attribute": ERROR,
|
159
|
+
"svelte/prefer-class-directive": [
|
160
|
+
ERROR,
|
161
|
+
{
|
162
|
+
prefer: "empty",
|
163
|
+
},
|
164
|
+
],
|
165
|
+
"svelte/prefer-style-directive": ERROR,
|
166
|
+
"svelte/shorthand-attribute": [
|
167
|
+
ERROR,
|
168
|
+
{
|
169
|
+
prefer: Always,
|
170
|
+
},
|
171
|
+
],
|
172
|
+
"svelte/shorthand-directive": [
|
173
|
+
ERROR,
|
174
|
+
{
|
175
|
+
prefer: Always,
|
176
|
+
},
|
177
|
+
],
|
178
|
+
"svelte/sort-attributes": OFF,
|
179
|
+
"svelte/spaced-html-comment": [ERROR, Always],
|
180
|
+
"svelte/no-goto-without-base": ERROR,
|
181
|
+
"svelte/comment-directive": [
|
182
|
+
ERROR,
|
183
|
+
{
|
184
|
+
reportUnusedDisableDirectives: true,
|
185
|
+
},
|
186
|
+
],
|
187
|
+
"svelte/system": ERROR,
|
188
|
+
},
|
189
|
+
];
|
190
|
+
//# sourceMappingURL=enable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MA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;SACF;QACD,gCAAgC,EAAE;YAChC,KAAK;YACL;gBACE,SAAS,EAAE,CAAC;gBACZ,UAAU,EAAE,CAAC;aACd;SACF;QACD,yBAAyB,EAAE;YACzB,KAAK;YACL;gBACE,eAAe,EAAE,KAAK;gBACtB,kBAAkB,EAAE,KAAK;gBACzB,oBAAoB,EAAE,KAAK;gBAC3B,IAAI,EAAE;oBACJ,YAAY,EAAE,KAAK;oBACnB,YAAY,EAAE,KAAK;iBACpB;aACF;SACF;QACD,kCAAkC,EAAE,KAAK;QACzC,oCAAoC,EAAE,GAAG;QACzC,kDAAkD,EAAE,KAAK;QACzD,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,MAAM,EAAE,OAAO;aAChB;SACF;QACD,+BAA+B,EAAE,KAAK;QACtC,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,MAAM,EAAE,MAAM;aACf;SACF;QACD,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,MAAM,EAAE,MAAM;aACf;SACF;QACD,wBAAwB,EAAE,GAAG;QAC7B,4BAA4B,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;QAM7C,6BAA6B,EAAE,KAAK;QAMpC,0BAA0B,EAAE;YAC1B,KAAK;YACL;gBACE,6BAA6B,EAAE,IAAI;aACpC;SACF;QACD,eAAe,EAAE,KAAK;KAIvB;CACO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable_x.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable_x.ts"],"names":[],"mappings":";;;;;;AAMA,wBAaW"}
|
@@ -1,4 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
const {
|
3
|
-
export default [
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
|
+
const { ERROR, OFF } = level, { Allow, Both } = state;
|
3
|
+
export default [
|
4
|
+
enable_x,
|
5
|
+
{
|
6
|
+
"svelte/no-inner-declarations": [
|
7
|
+
ERROR,
|
8
|
+
Both,
|
9
|
+
{
|
10
|
+
blockScopedFunctions: Allow,
|
11
|
+
},
|
12
|
+
],
|
13
|
+
"svelte/no-trailing-spaces": OFF,
|
14
|
+
},
|
15
|
+
];
|
4
16
|
//# sourceMappingURL=enable_x.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAExD,MACA,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EACtB,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,8BAA8B,EAAE;YAC9B,KAAK;YACL,IAAI;YACJ;gBACE,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,2BAA2B,EAAE,GAAG;KACjC;CACO,CAAC"}
|