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
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_enable.js","sourceRoot":"","sources":["../../../src/rules/ts/_enable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElD,MACA,EAAE,MAAM,EAAE,GAAG,EAAE,EACf,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EACtB,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAE5B,eAAe;IACb,MAAM;IACN;QAEE,iDAAiD,EAAE,GAAG;QACtD,+BAA+B,EAAE,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;QACnF,mCAAmC,EAAE,KAAK;QAC1C,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,iBAAiB,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE;gBACvD,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;gBAClB,wBAAwB,EAAE,EAAE;aAC7B;SACF;QACD,uCAAuC,EAAE,KAAK;QAC9C,iDAAiD,EAAE,CAAC,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,KAAK;YACL;gBACE,sDAAsD,EAAE,KAAK;gBAC7D,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,IAAI;gBACjB,WAAW,EAAE,KAAK;gBAClB,oBAAoB,EAAE,KAAK;gBAC3B,iBAAiB,EAAE,KAAK;gBACxB,mBAAmB,EAAE,KAAK;gBAC1B,mBAAmB,EAAE,KAAK;gBAC1B,mBAAmB,EAAE,KAAK;aAC3B;SACF;QACD,gDAAgD,EAAE,CAAC,KAAK,EAAE,EAAE,mCAAmC,EAAE,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,CAAC;QAC1I,2CAA2C,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAwB,IAAI,EAAE,KAAK,EAAwB,KAAK,EAAE,KAAK,EAAwC,CAAC;QACjL,4BAA4B,EAAE,GAAG;QACjC,mCAAmC,EAAE,CAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QACrE,uCAAuC,EAAE,CAAC,KAAK,EAAE,EAAE,gCAAgC,EAAE,KAAK,EAAE,CAAC;QAC7F,2DAA2D,EAAE,KAAK;KACnE;CACO,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare const _default: readonly ["disable-compiler", {
|
2
|
+
readonly "constructor-super": "off";
|
3
|
+
readonly "no-const-assign": "off";
|
4
|
+
readonly "no-dupe-args": "off";
|
5
|
+
readonly "no-dupe-class-members": "off";
|
6
|
+
readonly "no-dupe-keys": "off";
|
7
|
+
readonly "no-func-assign": "off";
|
8
|
+
readonly "no-obj-calls": "off";
|
9
|
+
readonly "no-setter-return": "off";
|
10
|
+
readonly "no-this-before-super": "off";
|
11
|
+
readonly "no-undef": "off";
|
12
|
+
readonly "no-unreachable": "off";
|
13
|
+
readonly "no-unsafe-negation": "off";
|
14
|
+
readonly "consistent-return": "off";
|
15
|
+
readonly "no-redeclare": "off";
|
16
|
+
}];
|
17
|
+
export default _default;
|
18
|
+
//# sourceMappingURL=disable_compiler.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"disable_compiler.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/disable_compiler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,wBAkBW"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { level } from "../_strings.js";
|
2
|
+
const { OFF } = level;
|
3
|
+
export default [
|
4
|
+
"disable-compiler",
|
5
|
+
{
|
6
|
+
"constructor-super": OFF,
|
7
|
+
"no-const-assign": OFF,
|
8
|
+
"no-dupe-args": OFF,
|
9
|
+
"no-dupe-class-members": OFF,
|
10
|
+
"no-dupe-keys": OFF,
|
11
|
+
"no-func-assign": OFF,
|
12
|
+
"no-obj-calls": OFF,
|
13
|
+
"no-setter-return": OFF,
|
14
|
+
"no-this-before-super": OFF,
|
15
|
+
"no-undef": OFF,
|
16
|
+
"no-unreachable": OFF,
|
17
|
+
"no-unsafe-negation": OFF,
|
18
|
+
"consistent-return": OFF,
|
19
|
+
"no-redeclare": OFF,
|
20
|
+
},
|
21
|
+
];
|
22
|
+
//# sourceMappingURL=disable_compiler.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"disable_compiler.js","sourceRoot":"","sources":["../../../src/rules/ts/disable_compiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;AAEtB,eAAe;IACb,kBAAkB;IAClB;QACE,mBAAmB,EAAE,GAAG;QACxB,iBAAiB,EAAE,GAAG;QACtB,cAAc,EAAE,GAAG;QACnB,uBAAuB,EAAE,GAAG;QAC5B,cAAc,EAAE,GAAG;QACnB,gBAAgB,EAAE,GAAG;QACrB,cAAc,EAAE,GAAG;QACnB,kBAAkB,EAAE,GAAG;QACvB,sBAAsB,EAAE,GAAG;QAC3B,UAAU,EAAE,GAAG;QACf,gBAAgB,EAAE,GAAG;QACrB,oBAAoB,EAAE,GAAG;QACzB,mBAAmB,EAAE,GAAG;QACxB,cAAc,EAAE,GAAG;KACpB;CACO,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
declare const _default: readonly ["enable", {
|
2
|
+
readonly "yml/block-mapping-colon-indicator-newline": readonly ["error", "never"];
|
3
|
+
readonly "yml/block-mapping-question-indicator-newline": readonly ["error", "never"];
|
4
|
+
readonly "yml/block-mapping": readonly ["error", {
|
5
|
+
readonly singleline: "never";
|
6
|
+
readonly multiline: "always";
|
7
|
+
}];
|
8
|
+
readonly "yml/block-sequence-hyphen-indicator-newline": readonly ["error", "never", {
|
9
|
+
readonly nestedHyphen: "always";
|
10
|
+
readonly blockMapping: "never";
|
11
|
+
}];
|
12
|
+
readonly "yml/block-sequence": readonly ["error", {
|
13
|
+
readonly singleline: "always";
|
14
|
+
readonly multiline: "always";
|
15
|
+
}];
|
16
|
+
readonly "yml/file-extension": "off";
|
17
|
+
readonly "yml/indent": readonly ["error", 2, {
|
18
|
+
readonly indentBlockSequences: true;
|
19
|
+
readonly indicatorValueIndent: 2;
|
20
|
+
}];
|
21
|
+
readonly "yml/key-name-casing": "off";
|
22
|
+
readonly "yml/no-empty-document": "error";
|
23
|
+
readonly "yml/no-empty-key": "error";
|
24
|
+
readonly "yml/no-empty-mapping-value": "error";
|
25
|
+
readonly "yml/no-empty-sequence-entry": "error";
|
26
|
+
readonly "yml/no-tab-indent": "error";
|
27
|
+
readonly "yml/no-trailing-zeros": "error";
|
28
|
+
readonly "yml/plain-scalar": readonly ["error", "always"];
|
29
|
+
readonly "yml/quotes": readonly ["error", {
|
30
|
+
readonly prefer: "double";
|
31
|
+
readonly avoidEscape: true;
|
32
|
+
}];
|
33
|
+
readonly "yml/require-string-key": "error";
|
34
|
+
readonly "yml/sort-keys": "off";
|
35
|
+
readonly "yml/sort-sequence-values": "off";
|
36
|
+
readonly "yml/vue-custom-block/no-parsing-error": "error";
|
37
|
+
}];
|
38
|
+
export default _default;
|
39
|
+
//# sourceMappingURL=_enable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_enable.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/_enable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAyBW"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { id, level, state } from "../_strings.js";
|
2
|
+
const { enable } = id, { ERROR, OFF } = level, { Never, Always, Double } = state;
|
3
|
+
export default [
|
4
|
+
enable,
|
5
|
+
{
|
6
|
+
"yml/block-mapping-colon-indicator-newline": [ERROR, Never],
|
7
|
+
"yml/block-mapping-question-indicator-newline": [ERROR, Never],
|
8
|
+
"yml/block-mapping": [ERROR, { singleline: Never, multiline: Always }],
|
9
|
+
"yml/block-sequence-hyphen-indicator-newline": [ERROR, Never, { nestedHyphen: Always, blockMapping: Never }],
|
10
|
+
"yml/block-sequence": [ERROR, { singleline: Always, multiline: Always }],
|
11
|
+
"yml/file-extension": OFF,
|
12
|
+
"yml/indent": [ERROR, 2, { indentBlockSequences: true, indicatorValueIndent: 2 }],
|
13
|
+
"yml/key-name-casing": OFF,
|
14
|
+
"yml/no-empty-document": ERROR,
|
15
|
+
"yml/no-empty-key": ERROR,
|
16
|
+
"yml/no-empty-mapping-value": ERROR,
|
17
|
+
"yml/no-empty-sequence-entry": ERROR,
|
18
|
+
"yml/no-tab-indent": ERROR,
|
19
|
+
"yml/no-trailing-zeros": ERROR,
|
20
|
+
"yml/plain-scalar": [ERROR, Always],
|
21
|
+
"yml/quotes": [ERROR, { prefer: Double, avoidEscape: true }],
|
22
|
+
"yml/require-string-key": ERROR,
|
23
|
+
"yml/sort-keys": OFF,
|
24
|
+
"yml/sort-sequence-values": OFF,
|
25
|
+
"yml/vue-custom-block/no-parsing-error": ERROR,
|
26
|
+
},
|
27
|
+
];
|
28
|
+
//# sourceMappingURL=_enable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":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,KAAK;QAC/B,eAAe,EAAE,GAAG;QACpB,0BAA0B,EAAE,GAAG;QAC/B,uCAAuC,EAAE,KAAK;KAC/C;CACO,CAAC"}
|
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.17.8",
|
3
|
-
"name": "linted",
|
4
|
-
"version": "16.12.2-rc.
|
5
|
-
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
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.17.0",
|
39
|
-
"npm": ">=10.8.2"
|
40
|
-
},
|
41
|
-
"peerDependencies": {
|
42
|
-
"eslint": "~9.12.0",
|
43
|
-
"mocha": "^10.7.3",
|
44
|
-
"typescript": ">=5.6.3"
|
45
|
-
},
|
46
|
-
"peerDependenciesMeta": {
|
47
|
-
"mocha": {
|
48
|
-
"optional": true
|
49
|
-
},
|
50
|
-
"typescript": {
|
51
|
-
"optional": true
|
52
|
-
}
|
53
|
-
},
|
54
|
-
"dependencies": {
|
55
|
-
"@eslinted/core": "4.0.1",
|
56
|
-
"@html-eslint/eslint-plugin": "0.27.0",
|
57
|
-
"@html-eslint/parser": "0.27.0",
|
58
|
-
"@stylistic/eslint-plugin": "2.9.0",
|
59
|
-
"@typescript-eslint/eslint-plugin": "8.8.1",
|
60
|
-
"@typescript-eslint/parser": "8.8.1",
|
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.44.1",
|
65
|
-
"eslint-plugin-yml": "1.14.0",
|
66
|
-
"jsonc-eslint-parser": "2.4.0",
|
67
|
-
"svelte": "^4.2.19",
|
68
|
-
"svelte-eslint-parser": "0.41.1",
|
69
|
-
"yaml-eslint-parser": "1.2.3"
|
70
|
-
},
|
71
|
-
"devDependencies": {
|
72
|
-
"@eslint/config-inspector": "^0.5.4",
|
73
|
-
"eslint": "~9.12.0",
|
74
|
-
"linted": "16.12.2-rc.
|
75
|
-
"npm-run-all": "^4.1.5",
|
76
|
-
"typescript": "^5.6.3"
|
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 --files={*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
88
|
-
"lint:built:source": "npm run ln --files=src/**/*.{js,ts,html}",
|
89
|
-
"ln": "eslint --cache --fix --no-error-on-unmatched-pattern %npm_config_files% || echo \"No linter installed.\"",
|
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.17.8",
|
3
|
+
"name": "linted",
|
4
|
+
"version": "16.12.2-rc.2",
|
5
|
+
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
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.17.0",
|
39
|
+
"npm": ">=10.8.2"
|
40
|
+
},
|
41
|
+
"peerDependencies": {
|
42
|
+
"eslint": "~9.12.0",
|
43
|
+
"mocha": "^10.7.3",
|
44
|
+
"typescript": ">=5.6.3"
|
45
|
+
},
|
46
|
+
"peerDependenciesMeta": {
|
47
|
+
"mocha": {
|
48
|
+
"optional": true
|
49
|
+
},
|
50
|
+
"typescript": {
|
51
|
+
"optional": true
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"dependencies": {
|
55
|
+
"@eslinted/core": "4.0.1",
|
56
|
+
"@html-eslint/eslint-plugin": "0.27.0",
|
57
|
+
"@html-eslint/parser": "0.27.0",
|
58
|
+
"@stylistic/eslint-plugin": "2.9.0",
|
59
|
+
"@typescript-eslint/eslint-plugin": "8.8.1",
|
60
|
+
"@typescript-eslint/parser": "8.8.1",
|
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.44.1",
|
65
|
+
"eslint-plugin-yml": "1.14.0",
|
66
|
+
"jsonc-eslint-parser": "2.4.0",
|
67
|
+
"svelte": "^4.2.19",
|
68
|
+
"svelte-eslint-parser": "0.41.1",
|
69
|
+
"yaml-eslint-parser": "1.2.3"
|
70
|
+
},
|
71
|
+
"devDependencies": {
|
72
|
+
"@eslint/config-inspector": "^0.5.4",
|
73
|
+
"eslint": "~9.12.0",
|
74
|
+
"linted": "16.12.2-rc.1",
|
75
|
+
"npm-run-all": "^4.1.5",
|
76
|
+
"typescript": "^5.6.3"
|
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 --files={*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
88
|
+
"lint:built:source": "npm run ln --files=src/**/*.{js,ts,html}",
|
89
|
+
"ln": "eslint --cache --fix --no-error-on-unmatched-pattern %npm_config_files% || echo \"No linter installed.\"",
|
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
|
+
}
|
package/src/files/html.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["src/**/*.html"] as const;
|
1
|
+
export default ["src/**/*.html"] as const;
|
package/src/files/js.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["**/*.config.js"] as const;
|
1
|
+
export default ["**/*.config.js"] as const;
|
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` */
|