linted 12.1.7 → 12.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bundle/config/default/Options.d.ts +2 -2
- package/dist/bundle/config/default/Options.js +2 -2
- package/dist/bundle/config/default/Rulesets.d.ts +2 -2
- package/dist/bundle/config/default/Rulesets.js +2 -2
- package/dist/bundle/index.d.ts +3 -3
- package/dist/bundle/index.js +17 -17
- package/dist/bundle/index.js.map +1 -1
- package/package.json +8 -9
package/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import JsOption from "./option/JsOption.js";
|
2
2
|
import TsOption from "./option/TsOption.js";
|
3
3
|
import SvelteOption from "./option/SvelteOption.js";
|
4
|
-
import JestOption from "./option/JestOption.js";
|
5
4
|
import HtmlOption from "./option/HtmlOption.js";
|
5
|
+
import JestOption from "./option/JestOption.js";
|
6
6
|
import JsoncOption from "./option/JsoncOption.js";
|
7
7
|
import JsonOption from "./option/JsonOption.js";
|
8
8
|
import YmlOption from "./option/YmlOption.js";
|
9
|
-
export { JsOption, TsOption, SvelteOption,
|
9
|
+
export { JsOption, TsOption, SvelteOption, HtmlOption, JestOption, JsoncOption, JsonOption, YmlOption, };
|
10
10
|
//# sourceMappingURL=Options.d.ts.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import JsOption from "./option/JsOption.js";
|
2
2
|
import TsOption from "./option/TsOption.js";
|
3
3
|
import SvelteOption from "./option/SvelteOption.js";
|
4
|
-
import JestOption from "./option/JestOption.js";
|
5
4
|
import HtmlOption from "./option/HtmlOption.js";
|
5
|
+
import JestOption from "./option/JestOption.js";
|
6
6
|
import JsoncOption from "./option/JsoncOption.js";
|
7
7
|
import JsonOption from "./option/JsonOption.js";
|
8
8
|
import YmlOption from "./option/YmlOption.js";
|
9
|
-
export { JsOption, TsOption, SvelteOption,
|
9
|
+
export { JsOption, TsOption, SvelteOption, HtmlOption, JestOption, JsoncOption, JsonOption, YmlOption, };
|
10
10
|
//# sourceMappingURL=Options.js.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import JsRuleset from "./ruleset/JsRuleset.js";
|
2
2
|
import TsRuleset from "./ruleset/TsRuleset.js";
|
3
3
|
import SvelteRuleset from "./ruleset/SvelteRuleset.js";
|
4
|
-
import JestRuleset from "./ruleset/JestRuleset.js";
|
5
4
|
import HtmlRuleset from "./ruleset/HtmlRuleset.js";
|
5
|
+
import JestRuleset from "./ruleset/JestRuleset.js";
|
6
6
|
import JsoncRuleset from "./ruleset/JsoncRuleset.js";
|
7
7
|
import JsonRuleset from "./ruleset/JsonRuleset.js";
|
8
8
|
import YmlRuleset from "./ruleset/YmlRuleset.js";
|
9
|
-
export { JsRuleset, TsRuleset, SvelteRuleset,
|
9
|
+
export { JsRuleset, TsRuleset, SvelteRuleset, HtmlRuleset, JestRuleset, JsoncRuleset, JsonRuleset, YmlRuleset, };
|
10
10
|
//# sourceMappingURL=Rulesets.d.ts.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import JsRuleset from "./ruleset/JsRuleset.js";
|
2
2
|
import TsRuleset from "./ruleset/TsRuleset.js";
|
3
3
|
import SvelteRuleset from "./ruleset/SvelteRuleset.js";
|
4
|
-
import JestRuleset from "./ruleset/JestRuleset.js";
|
5
4
|
import HtmlRuleset from "./ruleset/HtmlRuleset.js";
|
5
|
+
import JestRuleset from "./ruleset/JestRuleset.js";
|
6
6
|
import JsoncRuleset from "./ruleset/JsoncRuleset.js";
|
7
7
|
import JsonRuleset from "./ruleset/JsonRuleset.js";
|
8
8
|
import YmlRuleset from "./ruleset/YmlRuleset.js";
|
9
|
-
export { JsRuleset, TsRuleset, SvelteRuleset,
|
9
|
+
export { JsRuleset, TsRuleset, SvelteRuleset, HtmlRuleset, JestRuleset, JsoncRuleset, JsonRuleset, YmlRuleset, };
|
10
10
|
//# sourceMappingURL=Rulesets.js.map
|
package/dist/bundle/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import type Ruleset from "./config/default/ruleset/base/Ruleset.js";
|
2
|
-
import { JsOption, TsOption, SvelteOption,
|
3
|
-
declare const scopes: readonly ["js", "ts", "svelte", "
|
2
|
+
import { JsOption, TsOption, SvelteOption, HtmlOption, JestOption, JsoncOption, JsonOption, YmlOption } from "./config/default/Options.js";
|
3
|
+
declare const scopes: readonly ["js", "ts", "svelte", "html", "jest", "jsonc", "json", "yml"];
|
4
4
|
declare type Scopes = typeof scopes[number];
|
5
5
|
declare const OptionsConstructor: {
|
6
6
|
readonly js: typeof JsOption;
|
7
7
|
readonly ts: typeof TsOption;
|
8
8
|
readonly svelte: typeof SvelteOption;
|
9
|
-
readonly jest: typeof JestOption;
|
10
9
|
readonly html: typeof HtmlOption;
|
10
|
+
readonly jest: typeof JestOption;
|
11
11
|
readonly jsonc: typeof JsoncOption;
|
12
12
|
readonly json: typeof JsonOption;
|
13
13
|
readonly yml: typeof YmlOption;
|
package/dist/bundle/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import stylistic from "@stylistic/eslint-plugin";
|
2
2
|
import ts from "@typescript-eslint/eslint-plugin";
|
3
3
|
import svelte from "eslint-plugin-svelte";
|
4
|
-
import jest from "eslint-plugin-jest";
|
5
4
|
import html from "@html-eslint/eslint-plugin";
|
5
|
+
import jest from "eslint-plugin-jest";
|
6
6
|
import jsonc from "eslint-plugin-jsonc";
|
7
7
|
import yml from "eslint-plugin-yml";
|
8
8
|
import tsParser from "@typescript-eslint/parser";
|
@@ -10,14 +10,14 @@ import svelteParser from "svelte-eslint-parser";
|
|
10
10
|
import htmlParser from "@html-eslint/parser";
|
11
11
|
import jsoncParser from "jsonc-eslint-parser";
|
12
12
|
import ymlParser from "yaml-eslint-parser";
|
13
|
-
import { JsOption, TsOption, SvelteOption,
|
14
|
-
import { JsRuleset, TsRuleset, SvelteRuleset,
|
13
|
+
import { JsOption, TsOption, SvelteOption, HtmlOption, JestOption, JsoncOption, JsonOption, YmlOption, } from "./config/default/Options.js";
|
14
|
+
import { JsRuleset, TsRuleset, SvelteRuleset, HtmlRuleset, JestRuleset, JsoncRuleset, JsonRuleset, YmlRuleset, } from "./config/default/Rulesets.js";
|
15
15
|
const scopes = [
|
16
16
|
"js",
|
17
17
|
"ts",
|
18
18
|
"svelte",
|
19
|
-
"jest",
|
20
19
|
"html",
|
20
|
+
"jest",
|
21
21
|
"jsonc",
|
22
22
|
"json",
|
23
23
|
"yml",
|
@@ -26,8 +26,8 @@ const OptionsConstructor = {
|
|
26
26
|
js: JsOption,
|
27
27
|
ts: TsOption,
|
28
28
|
svelte: SvelteOption,
|
29
|
-
jest: JestOption,
|
30
29
|
html: HtmlOption,
|
30
|
+
jest: JestOption,
|
31
31
|
jsonc: JsoncOption,
|
32
32
|
json: JsonOption,
|
33
33
|
yml: YmlOption,
|
@@ -36,8 +36,8 @@ const Rulesets = {
|
|
36
36
|
js: JsRuleset,
|
37
37
|
ts: TsRuleset,
|
38
38
|
svelte: SvelteRuleset,
|
39
|
-
jest: JestRuleset,
|
40
39
|
html: HtmlRuleset,
|
40
|
+
jest: JestRuleset,
|
41
41
|
jsonc: JsoncRuleset,
|
42
42
|
json: JsonRuleset,
|
43
43
|
yml: YmlRuleset,
|
@@ -53,12 +53,12 @@ const Plugin = {
|
|
53
53
|
"@typescript-eslint": ts,
|
54
54
|
svelte,
|
55
55
|
},
|
56
|
+
html: { "@html-eslint": html },
|
56
57
|
jest: {
|
57
58
|
"@stylistic": stylistic,
|
58
59
|
"@typescript-eslint": ts,
|
59
60
|
jest,
|
60
61
|
},
|
61
|
-
html: { "@html-eslint": html },
|
62
62
|
jsonc: { jsonc },
|
63
63
|
json: { jsonc },
|
64
64
|
yml: { yml },
|
@@ -97,18 +97,18 @@ export default class {
|
|
97
97
|
.ts, ...files
|
98
98
|
.svelte
|
99
99
|
?? []),
|
100
|
-
jest: new OptionsConstructor
|
101
|
-
.jest(Plugin
|
102
|
-
.jest, Parser
|
103
|
-
.jest, ...files
|
104
|
-
.jest
|
105
|
-
?? []),
|
106
100
|
html: new OptionsConstructor
|
107
101
|
.html(Plugin
|
108
102
|
.html, Parser
|
109
103
|
.html, ...files
|
110
104
|
.html
|
111
105
|
?? []),
|
106
|
+
jest: new OptionsConstructor
|
107
|
+
.jest(Plugin
|
108
|
+
.jest, Parser
|
109
|
+
.jest, ...files
|
110
|
+
.jest
|
111
|
+
?? []),
|
112
112
|
jsonc: new OptionsConstructor
|
113
113
|
.jsonc(Plugin
|
114
114
|
.jsonc, Parser
|
@@ -142,14 +142,14 @@ export default class {
|
|
142
142
|
.svelte
|
143
143
|
.override(override
|
144
144
|
.overrideSvelte),
|
145
|
-
jest: Rulesets
|
146
|
-
.jest
|
147
|
-
.override(override
|
148
|
-
.overrideJest),
|
149
145
|
html: Rulesets
|
150
146
|
.html
|
151
147
|
.override(override
|
152
148
|
.overrideHtml),
|
149
|
+
jest: Rulesets
|
150
|
+
.jest
|
151
|
+
.override(override
|
152
|
+
.overrideJest),
|
153
153
|
jsonc: Rulesets
|
154
154
|
.jsonc
|
155
155
|
.override(override
|
package/dist/bundle/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAClD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,IAAI,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAClD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAC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J,CAAC;QACN,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,YAAY,EACZ,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAW,OAAO;QAGhB,OAAO,MAAM;aACV,GAAG,CACF,QAAQ,CAAC,EAAE,CACT,IAAI;aACD,kBAAkB,CACjB,QAAQ,CACT,CACN;aACA,IAAI,EAAE,CAAC;IACZ,CAAC;IAES,kBAAkB,CAG1B,QAAe;QAIf,MAAM,EACJ,OAAO,EACP,QAAQ,GACT,GAAG,IAAI,CAAC;QACT,MAAM,MAAM,GAAG,OAAO,CACpB,QAAQ,CACT,CAAC;QACF,MAAM,OAAO,GAAG,QAAQ,CACtB,QAAQ,CACT,CAAC;QAEF,OAAO,MAAM;aACV,IAAI;aACJ,KAAK;aACL,MAAM,GAAG,CAAC;YACX,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,OAAO;iBACN,IAAI;iBACJ,GAAG,CACF,KAAK,CAAC,EAAE;gBACN,OAAO;oBACL,KAAK;oBACL,GAAG,MAAM;yBACN,IAAI;iBACR,CAAC;YACJ,CAAC,CACF,CAAC;IACR,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "linted",
|
3
|
-
"version": "12.
|
3
|
+
"version": "12.2.2",
|
4
4
|
"description": "Zero-config ESLint flat config factory for (strict, agglutinative) entire-stack formatting and linting: TypeScript, JavaScript, Svelte, HTML, (Tailwind) CSS, Jest, JSON(C), and sadly YAML.",
|
5
5
|
"keywords": [
|
6
6
|
"eslint",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"type": "module",
|
26
26
|
"private": false,
|
27
27
|
"config": {
|
28
|
-
"PACKAGE_JSON_VERSION": "
|
28
|
+
"PACKAGE_JSON_VERSION": "20.0.0"
|
29
29
|
},
|
30
30
|
"repository": {
|
31
31
|
"type": "git",
|
@@ -80,16 +80,15 @@
|
|
80
80
|
"typescript": "^5.5.2"
|
81
81
|
},
|
82
82
|
"scripts": {
|
83
|
-
"
|
84
|
-
"lint": "npm run lint:cfg && npm run lint:
|
85
|
-
"lint:
|
86
|
-
"lint:
|
87
|
-
"lint:src": "npm run
|
83
|
+
"e": "eslint -c eslint.config.js --cache --fix",
|
84
|
+
"lint": "(npm run lint:project) && (npm run lint:cfg) && (npm run lint:src) && (npm run --if-present lint:ci) && (npm run --if-present lint:svelte)",
|
85
|
+
"lint:project": "npm run e -- project/**/*.js",
|
86
|
+
"lint:cfg": "npm run e -- package.json tsconfig.json eslint.config.js",
|
87
|
+
"lint:src": "npm run e -- src/**/*.ts",
|
88
88
|
"prebuild": "npm run lint",
|
89
89
|
"build": "tsc",
|
90
90
|
"pretest": "npm run build",
|
91
91
|
"test": "exit 0",
|
92
|
-
"prepublishOnly": "npm run test"
|
93
|
-
"dev": "npm test"
|
92
|
+
"prepublishOnly": "npm run test"
|
94
93
|
}
|
95
94
|
}
|