linted 16.12.2-rc.1 → 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.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.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.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.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.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.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.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.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.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/html/_enable.d.ts +8 -0
- package/dist/rules/html/_enable.d.ts.map +1 -0
- package/dist/rules/html/_enable.js +10 -0
- package/dist/rules/html/_enable.js.map +1 -0
- package/dist/rules/html/_recommended.d.ts +3 -0
- package/dist/rules/html/_recommended.d.ts.map +1 -0
- package/dist/rules/html/_recommended.js +5 -0
- package/dist/rules/html/_recommended.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 +260 -0
- package/dist/rules/js/_enable.js.map +1 -0
- package/dist/rules/js/stylistic.d.ts +420 -0
- package/dist/rules/js/stylistic.d.ts.map +1 -0
- package/dist/rules/js/stylistic.js +270 -0
- package/dist/rules/js/stylistic.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/md/_enable.d.ts +7 -0
- package/dist/rules/md/_enable.d.ts.map +1 -0
- package/dist/rules/md/_enable.js +9 -0
- package/dist/rules/md/_enable.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 +4 -0
- package/dist/rules/mocha/_enable.js.map +1 -0
- package/dist/rules/mocha/_recommended.d.ts +3 -0
- package/dist/rules/mocha/_recommended.d.ts.map +1 -0
- package/dist/rules/mocha/_recommended.js +5 -0
- package/dist/rules/mocha/_recommended.js.map +1 -0
- 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 +90 -0
- package/dist/rules/svelte/_enable.js.map +1 -0
- package/dist/rules/svelte/disable_x.d.ts +5 -0
- package/dist/rules/svelte/disable_x.d.ts.map +1 -0
- package/dist/rules/svelte/disable_x.js +4 -0
- package/dist/rules/svelte/disable_x.js.map +1 -0
- 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 +359 -0
- package/dist/rules/ts/_enable.js.map +1 -0
- package/dist/rules/ts/disable_compiler.d.ts +18 -0
- package/dist/rules/ts/disable_compiler.d.ts.map +1 -0
- package/dist/rules/ts/disable_compiler.js +22 -0
- package/dist/rules/ts/disable_compiler.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 +28 -0
- package/dist/rules/yml/_enable.js.map +1 -0
- 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 -16
- package/src/rules/html/enable_recommended.ts +9 -9
- package/src/rules/html.ts +4 -4
- package/src/rules/js/enable.ts +524 -524
- package/src/rules/js/enable_stylistic.ts +608 -608
- package/src/rules/js.ts +4 -4
- package/src/rules/json/enable.ts +33 -33
- package/src/rules/json/enable_x.ts +89 -89
- package/src/rules/json.ts +4 -4
- package/src/rules/jsonc/override.ts +16 -16
- package/src/rules/jsonc.ts +4 -4
- package/src/rules/md/enable.ts +15 -15
- package/src/rules/md.ts +3 -3
- package/src/rules/mocha/enable.ts +3 -3
- package/src/rules/mocha/enable_recommended.ts +9 -9
- package/src/rules/mocha.ts +4 -4
- package/src/rules/svelte/disable.ts +9 -9
- package/src/rules/svelte/disable_js.ts +11 -11
- package/src/rules/svelte/disable_ts.ts +9 -9
- package/src/rules/svelte/enable.ts +228 -228
- package/src/rules/svelte/enable_x.ts +20 -20
- package/src/rules/svelte.ts +15 -15
- package/src/rules/ts/disable.ts +22 -22
- package/src/rules/ts/disable_x.ts +32 -32
- package/src/rules/ts/enable.ts +549 -549
- package/src/rules/ts/enable_x.ts +115 -115
- package/src/rules/ts.ts +13 -13
- package/src/rules/yml/enable.ts +64 -64
- package/src/rules/yml/enable_x.ts +68 -68
- package/src/rules/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/_strings/id.ts
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
const
|
2
|
-
disable = "disable",
|
3
|
-
disable_x = "disable-extend",
|
4
|
-
enable_x = "enable-extend",
|
5
|
-
enable = "enable",
|
6
|
-
override = "override",
|
7
|
-
stylistic = "stylistic",
|
8
|
-
recommended = "recommended";
|
9
|
-
|
10
|
-
export {
|
11
|
-
disable,
|
12
|
-
disable_x,
|
13
|
-
enable_x,
|
14
|
-
enable,
|
15
|
-
override,
|
16
|
-
stylistic,
|
17
|
-
recommended,
|
18
|
-
};
|
1
|
+
const
|
2
|
+
disable = "disable",
|
3
|
+
disable_x = "disable-extend",
|
4
|
+
enable_x = "enable-extend",
|
5
|
+
enable = "enable",
|
6
|
+
override = "override",
|
7
|
+
stylistic = "stylistic",
|
8
|
+
recommended = "recommended";
|
9
|
+
|
10
|
+
export {
|
11
|
+
disable,
|
12
|
+
disable_x,
|
13
|
+
enable_x,
|
14
|
+
enable,
|
15
|
+
override,
|
16
|
+
stylistic,
|
17
|
+
recommended,
|
18
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
const
|
2
|
-
ERROR = "error",
|
3
|
-
WARN = "warn",
|
4
|
-
OFF = "off";
|
5
|
-
|
6
|
-
export { ERROR, WARN, OFF };
|
1
|
+
const
|
2
|
+
ERROR = "error",
|
3
|
+
WARN = "warn",
|
4
|
+
OFF = "off";
|
5
|
+
|
6
|
+
export { ERROR, WARN, OFF };
|
@@ -1,56 +1,56 @@
|
|
1
|
-
const
|
2
|
-
Never = "never",
|
3
|
-
Always = "always",
|
4
|
-
AlwaysMultiline = "always-multiline",
|
5
|
-
Multiline = "multiline",
|
6
|
-
Consistent = "consistent",
|
7
|
-
Consecutive = "consecutive",
|
8
|
-
AsNeeded = "as-needed",
|
9
|
-
Explicit = "explicit",
|
10
|
-
Allow = "allow",
|
11
|
-
Strict = "strict",
|
12
|
-
Any = "any",
|
13
|
-
All = "all",
|
14
|
-
Star = "*",
|
15
|
-
First = "first",
|
16
|
-
Last = "last",
|
17
|
-
Before = "before",
|
18
|
-
After = "after",
|
19
|
-
Above = "above",
|
20
|
-
Below = "below",
|
21
|
-
Beside = "beside",
|
22
|
-
Inside = "inside",
|
23
|
-
Outside = "outside",
|
24
|
-
Single = "single",
|
25
|
-
Double = "double",
|
26
|
-
Multi = "multi",
|
27
|
-
Both = "both";
|
28
|
-
|
29
|
-
export {
|
30
|
-
Never,
|
31
|
-
Always,
|
32
|
-
AlwaysMultiline,
|
33
|
-
Multiline,
|
34
|
-
Consistent,
|
35
|
-
Consecutive,
|
36
|
-
AsNeeded,
|
37
|
-
Explicit,
|
38
|
-
Allow,
|
39
|
-
Strict,
|
40
|
-
Any,
|
41
|
-
All,
|
42
|
-
Star,
|
43
|
-
First,
|
44
|
-
Last,
|
45
|
-
Before,
|
46
|
-
After,
|
47
|
-
Above,
|
48
|
-
Below,
|
49
|
-
Beside,
|
50
|
-
Inside,
|
51
|
-
Outside,
|
52
|
-
Single,
|
53
|
-
Double,
|
54
|
-
Multi,
|
55
|
-
Both,
|
56
|
-
};
|
1
|
+
const
|
2
|
+
Never = "never",
|
3
|
+
Always = "always",
|
4
|
+
AlwaysMultiline = "always-multiline",
|
5
|
+
Multiline = "multiline",
|
6
|
+
Consistent = "consistent",
|
7
|
+
Consecutive = "consecutive",
|
8
|
+
AsNeeded = "as-needed",
|
9
|
+
Explicit = "explicit",
|
10
|
+
Allow = "allow",
|
11
|
+
Strict = "strict",
|
12
|
+
Any = "any",
|
13
|
+
All = "all",
|
14
|
+
Star = "*",
|
15
|
+
First = "first",
|
16
|
+
Last = "last",
|
17
|
+
Before = "before",
|
18
|
+
After = "after",
|
19
|
+
Above = "above",
|
20
|
+
Below = "below",
|
21
|
+
Beside = "beside",
|
22
|
+
Inside = "inside",
|
23
|
+
Outside = "outside",
|
24
|
+
Single = "single",
|
25
|
+
Double = "double",
|
26
|
+
Multi = "multi",
|
27
|
+
Both = "both";
|
28
|
+
|
29
|
+
export {
|
30
|
+
Never,
|
31
|
+
Always,
|
32
|
+
AlwaysMultiline,
|
33
|
+
Multiline,
|
34
|
+
Consistent,
|
35
|
+
Consecutive,
|
36
|
+
AsNeeded,
|
37
|
+
Explicit,
|
38
|
+
Allow,
|
39
|
+
Strict,
|
40
|
+
Any,
|
41
|
+
All,
|
42
|
+
Star,
|
43
|
+
First,
|
44
|
+
Last,
|
45
|
+
Before,
|
46
|
+
After,
|
47
|
+
Above,
|
48
|
+
Below,
|
49
|
+
Beside,
|
50
|
+
Inside,
|
51
|
+
Outside,
|
52
|
+
Single,
|
53
|
+
Double,
|
54
|
+
Multi,
|
55
|
+
Both,
|
56
|
+
};
|
package/src/rules/_strings.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from "./_strings/id.js";
|
2
|
-
export * from "./_strings/level.js";
|
3
|
-
export * from "./_strings/state.js";
|
4
|
-
export * as id from "./_strings/id.js";
|
5
|
-
export * as state from "./_strings/state.js";
|
6
|
-
export * as level from "./_strings/level.js";
|
1
|
+
export * from "./_strings/id.js";
|
2
|
+
export * from "./_strings/level.js";
|
3
|
+
export * from "./_strings/state.js";
|
4
|
+
export * as id from "./_strings/id.js";
|
5
|
+
export * as state from "./_strings/state.js";
|
6
|
+
export * as level from "./_strings/level.js";
|
package/src/rules/html/enable.ts
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { enable, level } from "../_strings.js";
|
2
|
-
|
3
|
-
const { ERROR, OFF } = level;
|
4
|
-
|
5
|
-
export default [
|
6
|
-
enable,
|
7
|
-
{
|
8
|
-
"@html-eslint/require-title": OFF,
|
9
|
-
"@html-eslint/element-newline": [
|
10
|
-
ERROR,
|
11
|
-
{
|
12
|
-
skip: ["head"],
|
13
|
-
},
|
14
|
-
],
|
15
|
-
},
|
16
|
-
] as const;
|
1
|
+
import { enable, level } from "../_strings.js";
|
2
|
+
|
3
|
+
const { ERROR, OFF } = level;
|
4
|
+
|
5
|
+
export default [
|
6
|
+
enable,
|
7
|
+
{
|
8
|
+
"@html-eslint/require-title": OFF,
|
9
|
+
"@html-eslint/element-newline": [
|
10
|
+
ERROR,
|
11
|
+
{
|
12
|
+
skip: ["head"],
|
13
|
+
},
|
14
|
+
],
|
15
|
+
},
|
16
|
+
] as const;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { recommended } from "../_strings.js";
|
2
|
-
import html from "@html-eslint/eslint-plugin";
|
3
|
-
|
4
|
-
// REMOVE shared config once manually configured
|
5
|
-
export default [
|
6
|
-
recommended,
|
7
|
-
(html.configs["flat/recommended"] as Record<"rules", Record<string, "off">>)
|
8
|
-
.rules,
|
9
|
-
] as const;
|
1
|
+
import { recommended } from "../_strings.js";
|
2
|
+
import html from "@html-eslint/eslint-plugin";
|
3
|
+
|
4
|
+
// REMOVE shared config once manually configured
|
5
|
+
export default [
|
6
|
+
recommended,
|
7
|
+
(html.configs["flat/recommended"] as Record<"rules", Record<string, "off">>)
|
8
|
+
.rules,
|
9
|
+
] as const;
|
package/src/rules/html.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import Recommended from "./html/enable_recommended.js";
|
2
|
-
import Enable from "./html/enable.js";
|
3
|
-
|
4
|
-
export default [Recommended, Enable] as const;
|
1
|
+
import Recommended from "./html/enable_recommended.js";
|
2
|
+
import Enable from "./html/enable.js";
|
3
|
+
|
4
|
+
export default [Recommended, Enable] as const;
|