linted 30.0.0-rc.0 → 30.0.0-rc.1
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/dist/imports/parsers.d.ts +0 -2
- package/dist/imports/parsers.d.ts.map +1 -1
- package/dist/imports/parsers.js +0 -2
- package/dist/imports/parsers.js.map +1 -1
- package/dist/imports/plugins.d.ts +0 -2
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports/plugins.js +0 -2
- package/dist/imports/plugins.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +9 -6
- package/src/imports/parsers.ts +0 -2
- package/src/imports/plugins.ts +0 -2
- package/src/index.ts +14 -6
@@ -1,9 +1,7 @@
|
|
1
|
-
import svelte from "svelte-eslint-parser";
|
2
1
|
import html from "@html-eslint/parser";
|
3
2
|
import yml from "yaml-eslint-parser";
|
4
3
|
export declare const parsers: {
|
5
4
|
ts: import("@typescript-eslint/utils/ts-eslint").Parser.LooseParserModule;
|
6
|
-
svelte: typeof svelte;
|
7
5
|
html: typeof html;
|
8
6
|
yml: typeof yml;
|
9
7
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,eAAO,MAAM,OAAO;;;;CAInB,CAAC"}
|
package/dist/imports/parsers.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,
|
1
|
+
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,EAAE;IACF,IAAI;IACJ,GAAG;CACJ,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import chai_friendly from "eslint-plugin-chai-friendly";
|
2
2
|
import chai_expect from "eslint-plugin-chai-expect";
|
3
|
-
import svelte from "eslint-plugin-svelte";
|
4
3
|
import html_eslint from "@html-eslint/eslint-plugin";
|
5
4
|
import css from "@eslint/css";
|
6
5
|
import json from "@eslint/json";
|
@@ -13,7 +12,6 @@ export declare const plugins: {
|
|
13
12
|
mocha: import("eslint").ESLint.Plugin;
|
14
13
|
"chai-friendly": typeof chai_friendly;
|
15
14
|
"chai-expect": typeof chai_expect;
|
16
|
-
svelte: typeof svelte;
|
17
15
|
"@html-eslint": typeof html_eslint;
|
18
16
|
css: typeof css;
|
19
17
|
json: typeof json;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,C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;;;;;;;;;;;;;;;;;;CADj8L,CAAC"}
|
package/dist/imports/plugins.js
CHANGED
@@ -3,7 +3,6 @@ import { plugin as typescript_eslint } from "typescript-eslint";
|
|
3
3
|
import mocha from "eslint-plugin-mocha";
|
4
4
|
import chai_friendly from "eslint-plugin-chai-friendly";
|
5
5
|
import chai_expect from "eslint-plugin-chai-expect";
|
6
|
-
import svelte from "eslint-plugin-svelte";
|
7
6
|
import html_eslint from "@html-eslint/eslint-plugin";
|
8
7
|
import css from "@eslint/css";
|
9
8
|
import json from "@eslint/json";
|
@@ -15,7 +14,6 @@ export const plugins = {
|
|
15
14
|
mocha,
|
16
15
|
"chai-friendly": chai_friendly,
|
17
16
|
"chai-expect": chai_expect,
|
18
|
-
svelte,
|
19
17
|
"@html-eslint": html_eslint,
|
20
18
|
css,
|
21
19
|
json,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAAiB;IACvC,KAAK;IACL,eAAe,EAAE,aAAa;IAC9B,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,WAAW;IAC3B,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import Core from "@eslinted/core";
|
2
|
-
export default function (extensions?: Parameters<typeof Core>[0]["extensions"]): unknown[];
|
2
|
+
export default function (extensions?: Parameters<typeof Core>[0]["configuration"]["extensions"], optional?: Parameters<typeof Core>[0]["imports"]["optional"]): unknown[];
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,MAAM,CAAC,OAAO,WACZ,UAAU,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,YAAY,CAAM,EAC1E,QAAQ,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,CAAM,aAsBjE"}
|
package/dist/index.js
CHANGED
@@ -1,12 +1,17 @@
|
|
1
|
-
import
|
1
|
+
import * as required from "./imports/index.js";
|
2
2
|
import * as defaults from "@eslinted/defaults";
|
3
|
-
import
|
4
|
-
export default function (extensions = {}) {
|
3
|
+
import Core from "@eslinted/core";
|
4
|
+
export default function (extensions = {}, optional = {}) {
|
5
5
|
try {
|
6
6
|
return Core({
|
7
|
-
imports
|
8
|
-
|
9
|
-
|
7
|
+
imports: {
|
8
|
+
required,
|
9
|
+
optional,
|
10
|
+
},
|
11
|
+
configuration: {
|
12
|
+
defaults,
|
13
|
+
extensions,
|
14
|
+
},
|
10
15
|
});
|
11
16
|
}
|
12
17
|
catch (e) {
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,MAAM,CAAC,OAAO,WACZ,aAAwE,EAAE,EAC1E,WAA8D,EAAE;IAEhE,IAAI,CAAC;QACH,OAAO,IAAI,CACT;YACE,OAAO,EAAE;gBACP,QAAQ;gBACR,QAAQ;aACT;YACD,aAAa,EAAE;gBACb,QAAQ;gBACR,UAAU;aACX;SACF,CACF,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,UAAU,EACV,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
5
5
|
"name": "linted",
|
6
|
-
"version": "30.0.0-rc.
|
6
|
+
"version": "30.0.0-rc.1",
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted",
|
8
8
|
"private": false,
|
9
9
|
"engineStrict": true,
|
@@ -13,12 +13,16 @@
|
|
13
13
|
},
|
14
14
|
"type": "module",
|
15
15
|
"peerDependencies": {
|
16
|
-
"eslint": "~9.30.
|
16
|
+
"eslint": "~9.30.1",
|
17
|
+
"eslint-plugin-svelte": "~3.10.1",
|
17
18
|
"mocha": "^11.7.1",
|
18
|
-
"svelte": "^5.
|
19
|
+
"svelte": "^5.35.1",
|
19
20
|
"typescript": "^5.8.3"
|
20
21
|
},
|
21
22
|
"peerDependenciesMeta": {
|
23
|
+
"eslint-plugin-svelte": {
|
24
|
+
"optional": true
|
25
|
+
},
|
22
26
|
"mocha": {
|
23
27
|
"optional": true
|
24
28
|
},
|
@@ -32,8 +36,8 @@
|
|
32
36
|
"dependencies": {
|
33
37
|
"@eslint/css": "0.9.0",
|
34
38
|
"@eslint/json": "0.12.0",
|
35
|
-
"@eslinted/core": "
|
36
|
-
"@eslinted/defaults": "10.
|
39
|
+
"@eslinted/core": "20.0.0-rc.0",
|
40
|
+
"@eslinted/defaults": "10.35.0",
|
37
41
|
"@html-eslint/eslint-plugin": "0.42.0",
|
38
42
|
"@stylistic/eslint-plugin": "5.1.0",
|
39
43
|
"eslint-plugin-chai-expect": "3.1.0",
|
@@ -42,7 +46,6 @@
|
|
42
46
|
"eslint-plugin-mocha": "11.1.0",
|
43
47
|
"eslint-plugin-svelte": "3.10.1",
|
44
48
|
"eslint-plugin-yml": "1.18.0",
|
45
|
-
"svelte": "^5.34.9",
|
46
49
|
"typescript-eslint": "8.35.1"
|
47
50
|
},
|
48
51
|
"devDependencies": {
|
package/src/imports/parsers.ts
CHANGED
package/src/imports/plugins.ts
CHANGED
@@ -3,7 +3,6 @@ import { plugin as typescript_eslint } from "typescript-eslint";
|
|
3
3
|
import mocha from "eslint-plugin-mocha";
|
4
4
|
import chai_friendly from "eslint-plugin-chai-friendly";
|
5
5
|
import chai_expect from "eslint-plugin-chai-expect";
|
6
|
-
import svelte from "eslint-plugin-svelte";
|
7
6
|
import html_eslint from "@html-eslint/eslint-plugin";
|
8
7
|
import css from "@eslint/css";
|
9
8
|
import json from "@eslint/json";
|
@@ -16,7 +15,6 @@ export const plugins = {
|
|
16
15
|
mocha,
|
17
16
|
"chai-friendly": chai_friendly,
|
18
17
|
"chai-expect": chai_expect,
|
19
|
-
svelte,
|
20
18
|
"@html-eslint": html_eslint,
|
21
19
|
css,
|
22
20
|
json,
|
package/src/index.ts
CHANGED
@@ -1,14 +1,22 @@
|
|
1
|
-
import
|
1
|
+
import * as required from "./imports";
|
2
2
|
import * as defaults from "@eslinted/defaults";
|
3
|
-
import
|
3
|
+
import Core from "@eslinted/core";
|
4
4
|
|
5
|
-
export default function (
|
5
|
+
export default function (
|
6
|
+
extensions: Parameters<typeof Core>[0]["configuration"]["extensions"] = {},
|
7
|
+
optional: Parameters<typeof Core>[0]["imports"]["optional"] = {},
|
8
|
+
) {
|
6
9
|
try {
|
7
10
|
return Core(
|
8
11
|
{
|
9
|
-
imports
|
10
|
-
|
11
|
-
|
12
|
+
imports: {
|
13
|
+
required,
|
14
|
+
optional,
|
15
|
+
},
|
16
|
+
configuration: {
|
17
|
+
defaults,
|
18
|
+
extensions,
|
19
|
+
},
|
12
20
|
},
|
13
21
|
);
|
14
22
|
}
|