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
package/src/files/json.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["**/*.json"] as const;
|
1
|
+
export default ["**/*.json"] as const;
|
package/src/files/jsonc.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export default [
|
2
|
-
"**/*.jsonc",
|
3
|
-
"**/tsconfig.json",
|
4
|
-
] as const;
|
1
|
+
export default [
|
2
|
+
"**/*.jsonc",
|
3
|
+
"**/tsconfig.json",
|
4
|
+
] as const;
|
package/src/files/md.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default [] as const;
|
1
|
+
export default [] as const;
|
package/src/files/mocha.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default [] as const;
|
1
|
+
export default [] as const;
|
package/src/files/svelte.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["src/**/*.svelte"] as const;
|
1
|
+
export default ["src/**/*.svelte"] as const;
|
package/src/files/ts.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export default [
|
2
|
-
"**/*.config.ts",
|
3
|
-
"src/**/*.ts",
|
4
|
-
"types/**/*.d.ts",
|
5
|
-
] as const;
|
1
|
+
export default [
|
2
|
+
"**/*.config.ts",
|
3
|
+
"src/**/*.ts",
|
4
|
+
"types/**/*.d.ts",
|
5
|
+
] as const;
|
package/src/files/yml.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export default [
|
2
|
-
"**/*.yml",
|
3
|
-
"**/*.yaml",
|
4
|
-
".github/workflows/*.yml",
|
5
|
-
] as const;
|
1
|
+
export default [
|
2
|
+
"**/*.yml",
|
3
|
+
"**/*.yaml",
|
4
|
+
".github/workflows/*.yml",
|
5
|
+
] as const;
|
package/src/files.ts
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
import type { Core } from "@eslinted/core";
|
2
|
-
import js from "./files/js.js";
|
3
|
-
import ts from "./files/ts.js";
|
4
|
-
import svelte from "./files/svelte.js";
|
5
|
-
import mocha from "./files/mocha.js";
|
6
|
-
import html from "./files/html.js";
|
7
|
-
import json from "./files/json.js";
|
8
|
-
import jsonc from "./files/jsonc.js";
|
9
|
-
import yml from "./files/yml.js";
|
10
|
-
import md from "./files/md.js";
|
11
|
-
|
12
|
-
export default {
|
13
|
-
js,
|
14
|
-
ts,
|
15
|
-
svelte,
|
16
|
-
mocha,
|
17
|
-
html,
|
18
|
-
json,
|
19
|
-
jsonc,
|
20
|
-
yml,
|
21
|
-
md,
|
22
|
-
} as const satisfies Core.Input.Files.Base;
|
1
|
+
import type { Core } from "@eslinted/core";
|
2
|
+
import js from "./files/js.js";
|
3
|
+
import ts from "./files/ts.js";
|
4
|
+
import svelte from "./files/svelte.js";
|
5
|
+
import mocha from "./files/mocha.js";
|
6
|
+
import html from "./files/html.js";
|
7
|
+
import json from "./files/json.js";
|
8
|
+
import jsonc from "./files/jsonc.js";
|
9
|
+
import yml from "./files/yml.js";
|
10
|
+
import md from "./files/md.js";
|
11
|
+
|
12
|
+
export default {
|
13
|
+
js,
|
14
|
+
ts,
|
15
|
+
svelte,
|
16
|
+
mocha,
|
17
|
+
html,
|
18
|
+
json,
|
19
|
+
jsonc,
|
20
|
+
yml,
|
21
|
+
md,
|
22
|
+
} as const satisfies Core.Input.Files.Base;
|
package/src/imports/parsers.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import ts from "@typescript-eslint/parser";
|
2
|
-
import svelte from "svelte-eslint-parser";
|
3
|
-
import html from "@html-eslint/parser";
|
4
|
-
import jsonc from "jsonc-eslint-parser";
|
5
|
-
import yml from "yaml-eslint-parser";
|
6
|
-
import md from "eslint-plugin-markdownlint/parser.js";
|
7
|
-
|
8
|
-
export default {
|
9
|
-
ts,
|
10
|
-
svelte,
|
11
|
-
html,
|
12
|
-
jsonc,
|
13
|
-
yml,
|
14
|
-
md,
|
15
|
-
} as const;
|
1
|
+
import ts from "@typescript-eslint/parser";
|
2
|
+
import svelte from "svelte-eslint-parser";
|
3
|
+
import html from "@html-eslint/parser";
|
4
|
+
import jsonc from "jsonc-eslint-parser";
|
5
|
+
import yml from "yaml-eslint-parser";
|
6
|
+
import md from "eslint-plugin-markdownlint/parser.js";
|
7
|
+
|
8
|
+
export default {
|
9
|
+
ts,
|
10
|
+
svelte,
|
11
|
+
html,
|
12
|
+
jsonc,
|
13
|
+
yml,
|
14
|
+
md,
|
15
|
+
} as const;
|
package/src/imports/plugins.ts
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import stylistic from "@stylistic/eslint-plugin";
|
2
|
-
import typescript_eslint from "@typescript-eslint/eslint-plugin";
|
3
|
-
import svelte from "eslint-plugin-svelte";
|
4
|
-
import mocha from "eslint-plugin-mocha";
|
5
|
-
import html_eslint from "@html-eslint/eslint-plugin";
|
6
|
-
import jsonc from "eslint-plugin-jsonc";
|
7
|
-
import yml from "eslint-plugin-yml";
|
8
|
-
import markdownlint from "eslint-plugin-markdownlint";
|
9
|
-
|
10
|
-
export default {
|
11
|
-
"@stylistic": stylistic,
|
12
|
-
"@typescript-eslint": typescript_eslint as unknown as { configs: unknown },
|
13
|
-
svelte,
|
14
|
-
mocha,
|
15
|
-
"@html-eslint": html_eslint,
|
16
|
-
jsonc,
|
17
|
-
yml,
|
18
|
-
markdownlint,
|
19
|
-
} as const;
|
1
|
+
import stylistic from "@stylistic/eslint-plugin";
|
2
|
+
import typescript_eslint from "@typescript-eslint/eslint-plugin";
|
3
|
+
import svelte from "eslint-plugin-svelte";
|
4
|
+
import mocha from "eslint-plugin-mocha";
|
5
|
+
import html_eslint from "@html-eslint/eslint-plugin";
|
6
|
+
import jsonc from "eslint-plugin-jsonc";
|
7
|
+
import yml from "eslint-plugin-yml";
|
8
|
+
import markdownlint from "eslint-plugin-markdownlint";
|
9
|
+
|
10
|
+
export default {
|
11
|
+
"@stylistic": stylistic,
|
12
|
+
"@typescript-eslint": typescript_eslint as unknown as { configs: unknown },
|
13
|
+
svelte,
|
14
|
+
mocha,
|
15
|
+
"@html-eslint": html_eslint,
|
16
|
+
jsonc,
|
17
|
+
yml,
|
18
|
+
markdownlint,
|
19
|
+
} as const;
|
package/src/imports.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import type { Core } from "@eslinted/core";
|
2
|
-
import plugins from "./imports/plugins.js";
|
3
|
-
import parsers from "./imports/parsers.js";
|
4
|
-
|
5
|
-
export default {
|
6
|
-
plugins,
|
7
|
-
parsers,
|
8
|
-
} as const satisfies { plugins: Core.Input.Plugins } & { parsers: Core.Input.Parsers };
|
1
|
+
import type { Core } from "@eslinted/core";
|
2
|
+
import plugins from "./imports/plugins.js";
|
3
|
+
import parsers from "./imports/parsers.js";
|
4
|
+
|
5
|
+
export default {
|
6
|
+
plugins,
|
7
|
+
parsers,
|
8
|
+
} as const satisfies { plugins: Core.Input.Plugins } & { parsers: Core.Input.Parsers };
|
package/src/index.ts
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
import core, { type Core } from "@eslinted/core";
|
2
|
-
import imports from "./imports.js";
|
3
|
-
import files from "./files.js";
|
4
|
-
import rules from "./rules.js";
|
5
|
-
|
6
|
-
declare type Scope =
|
7
|
-
| "js"
|
8
|
-
| "ts"
|
9
|
-
| "svelte"
|
10
|
-
| "mocha"
|
11
|
-
| "html"
|
12
|
-
| "json"
|
13
|
-
| "jsonc"
|
14
|
-
| "yml"
|
15
|
-
| "md"
|
16
|
-
;
|
17
|
-
|
18
|
-
export default function (
|
19
|
-
includes: Partial<Record<Scope, readonly string[]>> = {},
|
20
|
-
overrides: Core.Input.Rules.Overrides = {},
|
21
|
-
) {
|
22
|
-
try {
|
23
|
-
return core(
|
24
|
-
imports.plugins,
|
25
|
-
imports.parsers,
|
26
|
-
{ files, includes },
|
27
|
-
{ rules, overrides },
|
28
|
-
);
|
29
|
-
}
|
30
|
-
catch (e) { throw new Error(`linted(): `, { cause: e }); }
|
31
|
-
}
|
32
|
-
|
33
|
-
type BaseScope = keyof Core.Input.Files.Base;
|
34
|
-
type Scoped = Scope extends BaseScope ? BaseScope extends Scope ? "OK" : never : never;
|
35
|
-
|
36
|
-
export type OK = Scoped & {}; /* Expected: "OK". Linter fails if `never` */
|
1
|
+
import core, { type Core } from "@eslinted/core";
|
2
|
+
import imports from "./imports.js";
|
3
|
+
import files from "./files.js";
|
4
|
+
import rules from "./rules.js";
|
5
|
+
|
6
|
+
declare type Scope =
|
7
|
+
| "js"
|
8
|
+
| "ts"
|
9
|
+
| "svelte"
|
10
|
+
| "mocha"
|
11
|
+
| "html"
|
12
|
+
| "json"
|
13
|
+
| "jsonc"
|
14
|
+
| "yml"
|
15
|
+
| "md"
|
16
|
+
;
|
17
|
+
|
18
|
+
export default function (
|
19
|
+
includes: Partial<Record<Scope, readonly string[]>> = {},
|
20
|
+
overrides: Core.Input.Rules.Overrides = {},
|
21
|
+
) {
|
22
|
+
try {
|
23
|
+
return core(
|
24
|
+
imports.plugins,
|
25
|
+
imports.parsers,
|
26
|
+
{ files, includes },
|
27
|
+
{ rules, overrides },
|
28
|
+
);
|
29
|
+
}
|
30
|
+
catch (e) { throw new Error(`linted(): `, { cause: e }); }
|
31
|
+
}
|
32
|
+
|
33
|
+
type BaseScope = keyof Core.Input.Files.Base;
|
34
|
+
type Scoped = Scope extends BaseScope ? BaseScope extends Scope ? "OK" : never : never;
|
35
|
+
|
36
|
+
export type OK = Scoped & {}; /* Expected: "OK". Linter fails if `never` */
|
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";
|
@@ -0,0 +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;
|
@@ -0,0 +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;
|