linted 16.3.2-rc.0 → 16.3.3-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/RELEASE.yml +35 -0
- package/.github/workflows/rc.yml +35 -0
- package/LICENSE +21 -21
- package/README.md +388 -388
- package/SECURITY.md +9 -9
- package/dist/imports/plugins/index.d.ts.map +1 -1
- package/eslint.config.js +3 -3
- package/package.json +99 -99
- package/src/declarations/markdownlint/index.d.ts +3 -3
- package/src/declarations/markdownlint/parser.d.ts +9 -9
- package/src/declarations/mocha/index.d.ts +8 -8
- package/src/imports/index.ts +4 -4
- package/src/imports/parsers/index.ts +16 -16
- package/src/imports/plugins/index.ts +20 -20
- package/src/index.ts +34 -34
- package/src/statics/files/html/index.ts +1 -1
- package/src/statics/files/index.ts +22 -22
- package/src/statics/files/js/index.ts +1 -1
- package/src/statics/files/json/index.ts +1 -1
- package/src/statics/files/jsonc/index.ts +4 -4
- package/src/statics/files/md/index.ts +1 -1
- package/src/statics/files/mocha/index.ts +1 -1
- package/src/statics/files/svelte/index.ts +1 -1
- package/src/statics/files/ts/index.ts +5 -5
- package/src/statics/files/yml/index.ts +5 -5
- package/src/statics/index.ts +4 -4
- package/src/statics/rules/index.ts +22 -22
- package/src/statics/rules/presets/Html.ts +5 -5
- package/src/statics/rules/presets/Js.ts +5 -5
- package/src/statics/rules/presets/Json.ts +5 -5
- package/src/statics/rules/presets/Jsonc.ts +5 -5
- package/src/statics/rules/presets/Md.ts +4 -4
- package/src/statics/rules/presets/Mocha.ts +5 -5
- package/src/statics/rules/presets/Svelte.ts +16 -16
- package/src/statics/rules/presets/Ts.ts +14 -14
- package/src/statics/rules/presets/Yml.ts +5 -5
- package/src/statics/rules/presets/html/Enable.ts +5 -5
- package/src/statics/rules/presets/html/Recommended.ts +7 -7
- package/src/statics/rules/presets/index.ts +10 -10
- package/src/statics/rules/presets/js/Enable.ts +288 -288
- package/src/statics/rules/presets/js/EnableStylistic.ts +288 -288
- package/src/statics/rules/presets/json/Enable.ts +33 -33
- package/src/statics/rules/presets/json/EnableX.ts +51 -51
- package/src/statics/rules/presets/jsonc/OverrideJson.ts +6 -6
- package/src/statics/rules/presets/md/Enable.ts +23 -23
- package/src/statics/rules/presets/mocha/Enable.ts +5 -5
- package/src/statics/rules/presets/mocha/Recommended.ts +7 -7
- package/src/statics/rules/presets/svelte/DisableJS.ts +7 -7
- package/src/statics/rules/presets/svelte/DisableTS.ts +5 -5
- package/src/statics/rules/presets/svelte/DisableX.ts +6 -6
- package/src/statics/rules/presets/svelte/Enable.ts +130 -130
- package/src/statics/rules/presets/svelte/EnableX.ts +6 -6
- package/src/statics/rules/presets/ts/DisableCompiler.ts +23 -23
- package/src/statics/rules/presets/ts/DisableX.ts +34 -34
- package/src/statics/rules/presets/ts/Enable.ts +407 -407
- package/src/statics/rules/presets/ts/EnableX.ts +87 -87
- package/src/statics/rules/presets/yml/Enable.ts +30 -30
- package/src/statics/rules/presets/yml/EnableX.ts +18 -18
- package/src/statics/rules/strings/id/index.ts +17 -17
- package/src/statics/rules/strings/index.ts +6 -6
- package/src/statics/rules/strings/level/index.ts +5 -5
- package/src/statics/rules/strings/state/index.ts +55 -55
- package/tsconfig.json +160 -160
package/SECURITY.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# Security Policy
|
2
|
-
|
3
|
-
## Reporting a Vulnerability
|
4
|
-
|
5
|
-
This repository participates in GitHub private vulnerability reporting.
|
6
|
-
|
7
|
-
[__⚑ Report Vulnerability__](./../../security/advisories/new)
|
8
|
-
|
9
|
-
Thank you for your dedication to safety.
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Reporting a Vulnerability
|
4
|
+
|
5
|
+
This repository participates in GitHub private vulnerability reporting.
|
6
|
+
|
7
|
+
[__⚑ Report Vulnerability__](./../../security/advisories/new)
|
8
|
+
|
9
|
+
Thank you for your dedication to safety.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/imports/plugins/index.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAGjD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAIxC,OAAO,YAAY,MAAM,4BAA4B,CAAC;;;mCAIE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/imports/plugins/index.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAGjD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAIxC,OAAO,YAAY,MAAM,4BAA4B,CAAC;;;mCAIE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAQmvnB,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;qBAAmN,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAu3D,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAkxD,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAwyC,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBAA89B,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAv20B,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;qBAA+K,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;qBAAolB,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA0wC,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;AAV78L,wBAS4C"}
|
package/eslint.config.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import linted from "linted";
|
2
|
-
|
3
|
-
export default linted();
|
1
|
+
import linted from "linted";
|
2
|
+
|
3
|
+
export default linted();
|
package/package.json
CHANGED
@@ -1,99 +1,99 @@
|
|
1
|
-
{
|
2
|
-
"_schemaVersion": "20.16.1",
|
3
|
-
"name": "linted",
|
4
|
-
"version": "16.3.
|
5
|
-
"description": "Zero-config ESLint flat config factory for (strict, agglutinative) entire-stack formatting and linting: TypeScript, JavaScript, Svelte, HTML, (Tailwind) CSS, Mocha, JSON(C), and sadly YAML.",
|
6
|
-
"keywords": [
|
7
|
-
"eslint",
|
8
|
-
"eslint-config",
|
9
|
-
"eslint-plugin",
|
10
|
-
"linter",
|
11
|
-
"formatter",
|
12
|
-
"typescript",
|
13
|
-
"javascript",
|
14
|
-
"stylistic",
|
15
|
-
"svelte",
|
16
|
-
"sveltekit",
|
17
|
-
"html",
|
18
|
-
"css",
|
19
|
-
"mocha",
|
20
|
-
"tailwindcss",
|
21
|
-
"json",
|
22
|
-
"jsonc",
|
23
|
-
"yaml"
|
24
|
-
],
|
25
|
-
"license": "MIT",
|
26
|
-
"private": false,
|
27
|
-
"publishConfig": {
|
28
|
-
"access": "public"
|
29
|
-
},
|
30
|
-
"repository": "github:jimmy-zhening-luo/linted",
|
31
|
-
"homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
|
32
|
-
"bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
|
33
|
-
"type": "module",
|
34
|
-
"main": "dist/index.js",
|
35
|
-
"types": "dist/index.d.ts",
|
36
|
-
"engineStrict": true,
|
37
|
-
"engines": {
|
38
|
-
"node": ">=20.16.0",
|
39
|
-
"npm": ">=10.8.1"
|
40
|
-
},
|
41
|
-
"peerDependencies": {
|
42
|
-
"eslint": "^9.9.0",
|
43
|
-
"mocha": "^10.7.3",
|
44
|
-
"typescript": ">=5.5.4"
|
45
|
-
},
|
46
|
-
"peerDependenciesMeta": {
|
47
|
-
"mocha": {
|
48
|
-
"optional": true
|
49
|
-
},
|
50
|
-
"typescript": {
|
51
|
-
"optional": true
|
52
|
-
}
|
53
|
-
},
|
54
|
-
"dependencies": {
|
55
|
-
"@eslinted/core": "~3.1.
|
56
|
-
"@html-eslint/eslint-plugin": "~0.26.0",
|
57
|
-
"@html-eslint/parser": "~0.26.0",
|
58
|
-
"@stylistic/eslint-plugin": "~2.6.4",
|
59
|
-
"@typescript-eslint/eslint-plugin": "~8.2.0",
|
60
|
-
"@typescript-eslint/parser": "~8.2.0",
|
61
|
-
"eslint-plugin-jsonc": "~2.16.0",
|
62
|
-
"eslint-plugin-markdownlint": "~0.6.0",
|
63
|
-
"eslint-plugin-mocha": "~10.5.0",
|
64
|
-
"eslint-plugin-svelte": "~2.43.0",
|
65
|
-
"eslint-plugin-yml": "~1.14.0",
|
66
|
-
"jsonc-eslint-parser": "~2.4.0",
|
67
|
-
"svelte": "^4.2.18",
|
68
|
-
"svelte-eslint-parser": "~0.41.0",
|
69
|
-
"yaml-eslint-parser": "~1.2.3"
|
70
|
-
},
|
71
|
-
"devDependencies": {
|
72
|
-
"@eslint/config-inspector": "^0.5.4",
|
73
|
-
"eslint": "~9.9.0",
|
74
|
-
"linted": "~16.3.
|
75
|
-
"npm-run-all": "^4.1.5",
|
76
|
-
"typescript": "^5.5.4"
|
77
|
-
},
|
78
|
-
"scripts": {
|
79
|
-
"build": "run-s \"build:{1}:*\" lint:built -- ts",
|
80
|
-
"build:ts:compile": "tsc",
|
81
|
-
"build:svelte:sync": "svelte-kit sync",
|
82
|
-
"build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
83
|
-
"build:svelte:compile": "vite build",
|
84
|
-
"build:svelte:prelint": "npm run ln src/**/*.svelte",
|
85
|
-
"lint": "npm run build",
|
86
|
-
"lint:built": "run-s lint:built:*",
|
87
|
-
"lint:built:configs": "npm run ln {*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
88
|
-
"lint:built:source": "npm run ln src/**/*.{js,ts,html}",
|
89
|
-
"ln": "eslint --cache --fix",
|
90
|
-
"pretest": "npm run build",
|
91
|
-
"test": "",
|
92
|
-
"start": "vite preview || node .",
|
93
|
-
"prestart": "npm test",
|
94
|
-
"prepublishOnly": "npm test",
|
95
|
-
"predeploy": "npm test",
|
96
|
-
"deploy": ""
|
97
|
-
},
|
98
|
-
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
99
|
-
}
|
1
|
+
{
|
2
|
+
"_schemaVersion": "20.16.1",
|
3
|
+
"name": "linted",
|
4
|
+
"version": "16.3.3-rc.1",
|
5
|
+
"description": "Zero-config ESLint flat config factory for (strict, agglutinative) entire-stack formatting and linting: TypeScript, JavaScript, Svelte, HTML, (Tailwind) CSS, Mocha, JSON(C), and sadly YAML.",
|
6
|
+
"keywords": [
|
7
|
+
"eslint",
|
8
|
+
"eslint-config",
|
9
|
+
"eslint-plugin",
|
10
|
+
"linter",
|
11
|
+
"formatter",
|
12
|
+
"typescript",
|
13
|
+
"javascript",
|
14
|
+
"stylistic",
|
15
|
+
"svelte",
|
16
|
+
"sveltekit",
|
17
|
+
"html",
|
18
|
+
"css",
|
19
|
+
"mocha",
|
20
|
+
"tailwindcss",
|
21
|
+
"json",
|
22
|
+
"jsonc",
|
23
|
+
"yaml"
|
24
|
+
],
|
25
|
+
"license": "MIT",
|
26
|
+
"private": false,
|
27
|
+
"publishConfig": {
|
28
|
+
"access": "public"
|
29
|
+
},
|
30
|
+
"repository": "github:jimmy-zhening-luo/linted",
|
31
|
+
"homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
|
32
|
+
"bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
|
33
|
+
"type": "module",
|
34
|
+
"main": "dist/index.js",
|
35
|
+
"types": "dist/index.d.ts",
|
36
|
+
"engineStrict": true,
|
37
|
+
"engines": {
|
38
|
+
"node": ">=20.16.0",
|
39
|
+
"npm": ">=10.8.1"
|
40
|
+
},
|
41
|
+
"peerDependencies": {
|
42
|
+
"eslint": "^9.9.0",
|
43
|
+
"mocha": "^10.7.3",
|
44
|
+
"typescript": ">=5.5.4"
|
45
|
+
},
|
46
|
+
"peerDependenciesMeta": {
|
47
|
+
"mocha": {
|
48
|
+
"optional": true
|
49
|
+
},
|
50
|
+
"typescript": {
|
51
|
+
"optional": true
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"dependencies": {
|
55
|
+
"@eslinted/core": "~3.1.15",
|
56
|
+
"@html-eslint/eslint-plugin": "~0.26.0",
|
57
|
+
"@html-eslint/parser": "~0.26.0",
|
58
|
+
"@stylistic/eslint-plugin": "~2.6.4",
|
59
|
+
"@typescript-eslint/eslint-plugin": "~8.2.0",
|
60
|
+
"@typescript-eslint/parser": "~8.2.0",
|
61
|
+
"eslint-plugin-jsonc": "~2.16.0",
|
62
|
+
"eslint-plugin-markdownlint": "~0.6.0",
|
63
|
+
"eslint-plugin-mocha": "~10.5.0",
|
64
|
+
"eslint-plugin-svelte": "~2.43.0",
|
65
|
+
"eslint-plugin-yml": "~1.14.0",
|
66
|
+
"jsonc-eslint-parser": "~2.4.0",
|
67
|
+
"svelte": "^4.2.18",
|
68
|
+
"svelte-eslint-parser": "~0.41.0",
|
69
|
+
"yaml-eslint-parser": "~1.2.3"
|
70
|
+
},
|
71
|
+
"devDependencies": {
|
72
|
+
"@eslint/config-inspector": "^0.5.4",
|
73
|
+
"eslint": "~9.9.0",
|
74
|
+
"linted": "~16.3.2",
|
75
|
+
"npm-run-all": "^4.1.5",
|
76
|
+
"typescript": "^5.5.4"
|
77
|
+
},
|
78
|
+
"scripts": {
|
79
|
+
"build": "run-s \"build:{1}:*\" lint:built -- ts",
|
80
|
+
"build:ts:compile": "tsc",
|
81
|
+
"build:svelte:sync": "svelte-kit sync",
|
82
|
+
"build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
83
|
+
"build:svelte:compile": "vite build",
|
84
|
+
"build:svelte:prelint": "npm run ln src/**/*.svelte",
|
85
|
+
"lint": "npm run build",
|
86
|
+
"lint:built": "run-s lint:built:*",
|
87
|
+
"lint:built:configs": "npm run ln {*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
88
|
+
"lint:built:source": "npm run ln src/**/*.{js,ts,html}",
|
89
|
+
"ln": "eslint --cache --fix",
|
90
|
+
"pretest": "npm run build",
|
91
|
+
"test": "",
|
92
|
+
"start": "vite preview || node .",
|
93
|
+
"prestart": "npm test",
|
94
|
+
"prepublishOnly": "npm test",
|
95
|
+
"predeploy": "npm test",
|
96
|
+
"deploy": ""
|
97
|
+
},
|
98
|
+
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
99
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
declare module "eslint-plugin-markdownlint" {
|
2
|
-
export const configs: Record<"flat/recommended", { rules: unknown }>;
|
3
|
-
}
|
1
|
+
declare module "eslint-plugin-markdownlint" {
|
2
|
+
export const configs: Record<"flat/recommended", { rules: unknown }>;
|
3
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
declare module "eslint-plugin-markdownlint/parser.js" {
|
2
|
-
export const parseForESLint: (code: string)=> Record<
|
3
|
-
| "ast"
|
4
|
-
| "parserServices"
|
5
|
-
| "visitorKeys"
|
6
|
-
,
|
7
|
-
unknown
|
8
|
-
>;
|
9
|
-
}
|
1
|
+
declare module "eslint-plugin-markdownlint/parser.js" {
|
2
|
+
export const parseForESLint: (code: string)=> Record<
|
3
|
+
| "ast"
|
4
|
+
| "parserServices"
|
5
|
+
| "visitorKeys"
|
6
|
+
,
|
7
|
+
unknown
|
8
|
+
>;
|
9
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
declare module "eslint-plugin-mocha" {
|
2
|
-
export const configs: {
|
3
|
-
"flat/recommended": readonly { rules: unknown };
|
4
|
-
flat: {
|
5
|
-
recommended: readonly { rules: unknown };
|
6
|
-
};
|
7
|
-
};
|
8
|
-
}
|
1
|
+
declare module "eslint-plugin-mocha" {
|
2
|
+
export const configs: {
|
3
|
+
"flat/recommended": readonly { rules: unknown };
|
4
|
+
flat: {
|
5
|
+
recommended: readonly { rules: unknown };
|
6
|
+
};
|
7
|
+
};
|
8
|
+
}
|
package/src/imports/index.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import plugins from "./plugins/index.js";
|
2
|
-
import parsers from "./parsers/index.js";
|
3
|
-
|
4
|
-
export { plugins, parsers };
|
1
|
+
import plugins from "./plugins/index.js";
|
2
|
+
import parsers from "./parsers/index.js";
|
3
|
+
|
4
|
+
export { plugins, parsers };
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import type { Boundary } from "@eslinted/core";
|
2
|
-
import ts from "@typescript-eslint/parser";
|
3
|
-
import svelte from "svelte-eslint-parser";
|
4
|
-
import html from "@html-eslint/parser";
|
5
|
-
import jsonc from "jsonc-eslint-parser";
|
6
|
-
import yml from "yaml-eslint-parser";
|
7
|
-
import md from "eslint-plugin-markdownlint/parser.js";
|
8
|
-
|
9
|
-
export default {
|
10
|
-
ts,
|
11
|
-
svelte,
|
12
|
-
html,
|
13
|
-
jsonc,
|
14
|
-
yml,
|
15
|
-
md,
|
16
|
-
} as const satisfies Boundary.Input.Parsers;
|
1
|
+
import type { Boundary } from "@eslinted/core";
|
2
|
+
import ts from "@typescript-eslint/parser";
|
3
|
+
import svelte from "svelte-eslint-parser";
|
4
|
+
import html from "@html-eslint/parser";
|
5
|
+
import jsonc from "jsonc-eslint-parser";
|
6
|
+
import yml from "yaml-eslint-parser";
|
7
|
+
import md from "eslint-plugin-markdownlint/parser.js";
|
8
|
+
|
9
|
+
export default {
|
10
|
+
ts,
|
11
|
+
svelte,
|
12
|
+
html,
|
13
|
+
jsonc,
|
14
|
+
yml,
|
15
|
+
md,
|
16
|
+
} as const satisfies Boundary.Input.Parsers;
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import type { Boundary } from "@eslinted/core";
|
2
|
-
import stylistic from "@stylistic/eslint-plugin";
|
3
|
-
import typescript_eslint from "@typescript-eslint/eslint-plugin";
|
4
|
-
import svelte from "eslint-plugin-svelte";
|
5
|
-
import mocha from "eslint-plugin-mocha";
|
6
|
-
import html_eslint from "@html-eslint/eslint-plugin";
|
7
|
-
import jsonc from "eslint-plugin-jsonc";
|
8
|
-
import yml from "eslint-plugin-yml";
|
9
|
-
import markdownlint from "eslint-plugin-markdownlint";
|
10
|
-
|
11
|
-
export default {
|
12
|
-
"@stylistic": stylistic,
|
13
|
-
"@typescript-eslint": typescript_eslint as unknown as { configs: unknown },
|
14
|
-
svelte,
|
15
|
-
mocha,
|
16
|
-
"@html-eslint": html_eslint,
|
17
|
-
jsonc,
|
18
|
-
yml,
|
19
|
-
markdownlint,
|
20
|
-
} as const satisfies Boundary.Input.Plugins;
|
1
|
+
import type { Boundary } from "@eslinted/core";
|
2
|
+
import stylistic from "@stylistic/eslint-plugin";
|
3
|
+
import typescript_eslint from "@typescript-eslint/eslint-plugin";
|
4
|
+
import svelte from "eslint-plugin-svelte";
|
5
|
+
import mocha from "eslint-plugin-mocha";
|
6
|
+
import html_eslint from "@html-eslint/eslint-plugin";
|
7
|
+
import jsonc from "eslint-plugin-jsonc";
|
8
|
+
import yml from "eslint-plugin-yml";
|
9
|
+
import markdownlint from "eslint-plugin-markdownlint";
|
10
|
+
|
11
|
+
export default {
|
12
|
+
"@stylistic": stylistic,
|
13
|
+
"@typescript-eslint": typescript_eslint as unknown as { configs: unknown },
|
14
|
+
svelte,
|
15
|
+
mocha,
|
16
|
+
"@html-eslint": html_eslint,
|
17
|
+
jsonc,
|
18
|
+
yml,
|
19
|
+
markdownlint,
|
20
|
+
} as const satisfies Boundary.Input.Plugins;
|
package/src/index.ts
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
import core, { type Boundary } from "@eslinted/core";
|
2
|
-
import { plugins, parsers } from "./imports/index.js";
|
3
|
-
import { base, preset } from "./statics/index.js";
|
4
|
-
|
5
|
-
declare type Scope =
|
6
|
-
| "js"
|
7
|
-
| "ts"
|
8
|
-
| "svelte"
|
9
|
-
| "mocha"
|
10
|
-
| "html"
|
11
|
-
| "json"
|
12
|
-
| "jsonc"
|
13
|
-
| "yml"
|
14
|
-
| "md"
|
15
|
-
;
|
16
|
-
|
17
|
-
export default function (
|
18
|
-
includes: Partial<Record<Scope, readonly string[]>> = {},
|
19
|
-
overrides: Boundary.Input.Rules.Overrides = {},
|
20
|
-
) {
|
21
|
-
try {
|
22
|
-
return core(
|
23
|
-
plugins,
|
24
|
-
parsers,
|
25
|
-
{ base, includes },
|
26
|
-
{ preset, overrides },
|
27
|
-
);
|
28
|
-
}
|
29
|
-
catch (e) { throw new Error(`linted(): `, { cause: e }); }
|
30
|
-
}
|
31
|
-
|
32
|
-
declare type ScopeOK = Scope extends keyof Boundary.Input.Files.Base ? keyof Boundary.Input.Files.Base extends Scope ? "OK" : never : never;
|
33
|
-
|
34
|
-
export type BoundaryTest = ScopeOK & {}; /* typescript-eslint will fail if `ScopeOK` is `never` */
|
1
|
+
import core, { type Boundary } from "@eslinted/core";
|
2
|
+
import { plugins, parsers } from "./imports/index.js";
|
3
|
+
import { base, preset } from "./statics/index.js";
|
4
|
+
|
5
|
+
declare type Scope =
|
6
|
+
| "js"
|
7
|
+
| "ts"
|
8
|
+
| "svelte"
|
9
|
+
| "mocha"
|
10
|
+
| "html"
|
11
|
+
| "json"
|
12
|
+
| "jsonc"
|
13
|
+
| "yml"
|
14
|
+
| "md"
|
15
|
+
;
|
16
|
+
|
17
|
+
export default function (
|
18
|
+
includes: Partial<Record<Scope, readonly string[]>> = {},
|
19
|
+
overrides: Boundary.Input.Rules.Overrides = {},
|
20
|
+
) {
|
21
|
+
try {
|
22
|
+
return core(
|
23
|
+
plugins,
|
24
|
+
parsers,
|
25
|
+
{ base, includes },
|
26
|
+
{ preset, overrides },
|
27
|
+
);
|
28
|
+
}
|
29
|
+
catch (e) { throw new Error(`linted(): `, { cause: e }); }
|
30
|
+
}
|
31
|
+
|
32
|
+
declare type ScopeOK = Scope extends keyof Boundary.Input.Files.Base ? keyof Boundary.Input.Files.Base extends Scope ? "OK" : never : never;
|
33
|
+
|
34
|
+
export type BoundaryTest = ScopeOK & {}; /* typescript-eslint will fail if `ScopeOK` is `never` */
|
@@ -1 +1 @@
|
|
1
|
-
export default ["src/**/*.html"] as const;
|
1
|
+
export default ["src/**/*.html"] as const;
|
@@ -1,22 +1,22 @@
|
|
1
|
-
import type { Boundary } from "@eslinted/core";
|
2
|
-
import js from "./js/index.js";
|
3
|
-
import ts from "./ts/index.js";
|
4
|
-
import svelte from "./svelte/index.js";
|
5
|
-
import mocha from "./mocha/index.js";
|
6
|
-
import html from "./html/index.js";
|
7
|
-
import json from "./json/index.js";
|
8
|
-
import jsonc from "./jsonc/index.js";
|
9
|
-
import yml from "./yml/index.js";
|
10
|
-
import md from "./md/index.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 Boundary.Input.Files.Base;
|
1
|
+
import type { Boundary } from "@eslinted/core";
|
2
|
+
import js from "./js/index.js";
|
3
|
+
import ts from "./ts/index.js";
|
4
|
+
import svelte from "./svelte/index.js";
|
5
|
+
import mocha from "./mocha/index.js";
|
6
|
+
import html from "./html/index.js";
|
7
|
+
import json from "./json/index.js";
|
8
|
+
import jsonc from "./jsonc/index.js";
|
9
|
+
import yml from "./yml/index.js";
|
10
|
+
import md from "./md/index.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 Boundary.Input.Files.Base;
|
@@ -1 +1 @@
|
|
1
|
-
export default ["**/*.config.js"] as const;
|
1
|
+
export default ["**/*.config.js"] as const;
|
@@ -1 +1 @@
|
|
1
|
-
export default ["**/*.json"] as const;
|
1
|
+
export default ["**/*.json"] as const;
|
@@ -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;
|
@@ -1 +1 @@
|
|
1
|
-
export default [] as const;
|
1
|
+
export default [] as const;
|
@@ -1 +1 @@
|
|
1
|
-
export default [] as const;
|
1
|
+
export default [] as const;
|
@@ -1 +1 @@
|
|
1
|
-
export default ["src/**/*.svelte"] as const;
|
1
|
+
export default ["src/**/*.svelte"] as const;
|
@@ -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;
|
@@ -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/statics/index.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import base from "./files/index.js";
|
2
|
-
import preset from "./rules/index.js";
|
3
|
-
|
4
|
-
export { base, preset };
|
1
|
+
import base from "./files/index.js";
|
2
|
+
import preset from "./rules/index.js";
|
3
|
+
|
4
|
+
export { base, preset };
|
@@ -1,22 +1,22 @@
|
|
1
|
-
import type { Boundary } from "@eslinted/core";
|
2
|
-
import js from "./presets/Js.js";
|
3
|
-
import ts from "./presets/Ts.js";
|
4
|
-
import svelte from "./presets/Svelte.js";
|
5
|
-
import mocha from "./presets/Mocha.js";
|
6
|
-
import html from "./presets/Html.js";
|
7
|
-
import json from "./presets/Json.js";
|
8
|
-
import jsonc from "./presets/Jsonc.js";
|
9
|
-
import yml from "./presets/Yml.js";
|
10
|
-
import md from "./presets/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 Boundary.Input.Rules.Preset;
|
1
|
+
import type { Boundary } from "@eslinted/core";
|
2
|
+
import js from "./presets/Js.js";
|
3
|
+
import ts from "./presets/Ts.js";
|
4
|
+
import svelte from "./presets/Svelte.js";
|
5
|
+
import mocha from "./presets/Mocha.js";
|
6
|
+
import html from "./presets/Html.js";
|
7
|
+
import json from "./presets/Json.js";
|
8
|
+
import jsonc from "./presets/Jsonc.js";
|
9
|
+
import yml from "./presets/Yml.js";
|
10
|
+
import md from "./presets/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 Boundary.Input.Rules.Preset;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type RuleEntry from "./index.js";
|
2
|
-
import Recommended from "./html/Recommended.js";
|
3
|
-
import Enable from "./html/Enable.js";
|
4
|
-
|
5
|
-
export default [Recommended, Enable] as const satisfies readonly RuleEntry[];
|
1
|
+
import type RuleEntry from "./index.js";
|
2
|
+
import Recommended from "./html/Recommended.js";
|
3
|
+
import Enable from "./html/Enable.js";
|
4
|
+
|
5
|
+
export default [Recommended, Enable] as const satisfies readonly RuleEntry[];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type RuleEntry from "./index.js";
|
2
|
-
import EnableStylistic from "./js/EnableStylistic.js";
|
3
|
-
import Enable from "./js/Enable.js";
|
4
|
-
|
5
|
-
export default [EnableStylistic, Enable] as const satisfies readonly RuleEntry[];
|
1
|
+
import type RuleEntry from "./index.js";
|
2
|
+
import EnableStylistic from "./js/EnableStylistic.js";
|
3
|
+
import Enable from "./js/Enable.js";
|
4
|
+
|
5
|
+
export default [EnableStylistic, Enable] as const satisfies readonly RuleEntry[];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type RuleEntry from "./index.js";
|
2
|
-
import EnableX from "./json/EnableX.js";
|
3
|
-
import Enable from "./json/Enable.js";
|
4
|
-
|
5
|
-
export default [EnableX, Enable] as const satisfies readonly RuleEntry[];
|
1
|
+
import type RuleEntry from "./index.js";
|
2
|
+
import EnableX from "./json/EnableX.js";
|
3
|
+
import Enable from "./json/Enable.js";
|
4
|
+
|
5
|
+
export default [EnableX, Enable] as const satisfies readonly RuleEntry[];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type RuleEntry from "./index.js";
|
2
|
-
import Json from "./Json.js";
|
3
|
-
import OverrideJson from "./jsonc/OverrideJson.js";
|
4
|
-
|
5
|
-
export default [...Json, OverrideJson] as const satisfies readonly RuleEntry[];
|
1
|
+
import type RuleEntry from "./index.js";
|
2
|
+
import Json from "./Json.js";
|
3
|
+
import OverrideJson from "./jsonc/OverrideJson.js";
|
4
|
+
|
5
|
+
export default [...Json, OverrideJson] as const satisfies readonly RuleEntry[];
|