linted 35.1.9 → 35.1.11
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/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/scope/index.d.ts +2 -3
- package/dist/scope/index.d.ts.map +1 -1
- package/dist/scope/index.js +3 -2
- package/dist/scope/index.js.map +1 -1
- package/dist/scope/optional.d.ts +2 -0
- package/dist/scope/optional.d.ts.map +1 -0
- package/dist/scope/optional.js +2 -0
- package/dist/scope/optional.js.map +1 -0
- package/dist/scope/tree.d.ts +1 -1
- package/dist/scope/tree.d.ts.map +1 -1
- package/dist/scope/tree.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/src/scope/index.ts +4 -3
- package/src/scope/optional.ts +1 -0
- package/src/scope/tree.ts +6 -6
- package/src/scope/tsconfig.json +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import Core from "@eslinted/core";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { scopes, optional } from "./scope/index.js";
|
|
3
|
+
export default function (extensions?: Parameters<typeof Core<typeof scopes[number], typeof optional[number]>>[6]): unknown[];
|
|
4
|
+
//# 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":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACL,MAAM,EACN,QAAQ,EAET,MAAM,SAAS,CAAC;AAoBjB,MAAM,CAAC,OAAO,WACZ,UAAU,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAM,aA6B5F"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAI1C,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EACL,MAAM,IAAI,EAAE,EACZ,MAAM,IAAI,QAAQ,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,MAAM,CAAC,OAAO,WACZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAI1C,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EACL,MAAM,IAAI,EAAE,EACZ,MAAM,IAAI,QAAQ,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;AAChC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,MAAM,CAAC,OAAO,WACZ,aAAyF,EAAE;IAE3F,MAAM,OAAO,GAAG,IAAI,CAClB,MAAM,EACN,QAAQ,EACR,IAAI,EACJ;QACE,EAAE,EAAE,QAAmB;QACvB,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,SAAS;KACf,EACD,QAAQ,EACR,QAAQ,EACR,UAAU,CACX,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;QACxB,OAAO,EAAE;YACP,SAAS;YACT,EAAE,EAAE,EAAa;YACjB,IAAI,EAAE,IAAe;YACrB,GAAG;YACH,IAAI;YACJ,KAAK;YACL,GAAG;SACJ;KACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/scope/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { tree } from "./tree.js";
|
|
2
1
|
export declare const scopes: readonly [
|
|
3
2
|
"js",
|
|
4
3
|
"ts",
|
|
@@ -10,7 +9,7 @@ export declare const scopes: readonly [
|
|
|
10
9
|
"jsonc",
|
|
11
10
|
"jsoncc",
|
|
12
11
|
"yml"
|
|
13
|
-
], optional: readonly [
|
|
14
|
-
"svelte"
|
|
15
12
|
];
|
|
13
|
+
export { optional } from "./optional.js";
|
|
14
|
+
export { tree } from "./tree.js";
|
|
16
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,2FAWT,CAAC;AAEX,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/scope/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { tree } from "./tree.js";
|
|
2
1
|
export const scopes = [
|
|
3
2
|
"js",
|
|
4
3
|
"ts",
|
|
@@ -10,5 +9,7 @@ export const scopes = [
|
|
|
10
9
|
"jsonc",
|
|
11
10
|
"jsoncc",
|
|
12
11
|
"yml",
|
|
13
|
-
]
|
|
12
|
+
];
|
|
13
|
+
export { optional } from "./optional.js";
|
|
14
|
+
export { tree } from "./tree.js";
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
package/dist/scope/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;CACG,CAAC;AAEX,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../src/scope/optional.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,qBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional.js","sourceRoot":"","sources":["../../src/scope/optional.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,QAAQ,CAAU,CAAC"}
|
package/dist/scope/tree.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const tree:
|
|
1
|
+
export declare const tree: readonly [readonly ["jsoncc", readonly ["jsonc"]], readonly ["jsonc", readonly ["json"]], readonly ["svelte", readonly ["ts"]], readonly ["mocha", readonly ["ts"]], readonly ["ts", readonly ["js"]]];
|
|
2
2
|
//# sourceMappingURL=tree.d.ts.map
|
package/dist/scope/tree.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,wMAqBP,CAAC"}
|
package/dist/scope/tree.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;QACE,QAAQ;QACR,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;QACE,QAAQ;QACR,CAAC,OAAO,CAAC;KACV;IACD;QACE,OAAO;QACP,CAAC,MAAM,CAAC;KACT;IACD;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACP;IACD;QACE,OAAO;QACP,CAAC,IAAI,CAAC;KACP;IACD;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACP;CACO,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": "35.1.
|
|
6
|
+
"version": "35.1.11",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted",
|
|
8
8
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
|
9
9
|
"keywords": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@eslint/css": "0.14.1",
|
|
53
53
|
"@eslint/json": "0.14.0",
|
|
54
|
-
"@eslinted/core": "32.0
|
|
54
|
+
"@eslinted/core": "32.1.0",
|
|
55
55
|
"@eslinted/defaults": "17.6.2",
|
|
56
56
|
"@html-eslint/eslint-plugin": "0.50.0",
|
|
57
57
|
"@stylistic/eslint-plugin": "5.6.1",
|
package/src/index.ts
CHANGED
|
@@ -25,7 +25,7 @@ import ymlParser from "yaml-eslint-parser";
|
|
|
25
25
|
// #endregion
|
|
26
26
|
|
|
27
27
|
export default function (
|
|
28
|
-
extensions: Parameters<typeof Core
|
|
28
|
+
extensions: Parameters<typeof Core<typeof scopes[number], typeof optional[number]>>[6] = {},
|
|
29
29
|
) {
|
|
30
30
|
const configs = Core(
|
|
31
31
|
scopes,
|
package/src/scope/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { tree } from "./tree";
|
|
2
1
|
export const scopes = [
|
|
3
2
|
"js",
|
|
4
3
|
"ts",
|
|
@@ -10,5 +9,7 @@ export const scopes = [
|
|
|
10
9
|
"jsonc",
|
|
11
10
|
"jsoncc",
|
|
12
11
|
"yml",
|
|
13
|
-
] as const
|
|
14
|
-
|
|
12
|
+
] as const;
|
|
13
|
+
|
|
14
|
+
export { optional } from "./optional";
|
|
15
|
+
export { tree } from "./tree";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const optional = ["svelte"] as const;
|
package/src/scope/tree.ts
CHANGED
|
@@ -2,21 +2,21 @@ export const tree = [
|
|
|
2
2
|
[
|
|
3
3
|
"jsoncc",
|
|
4
4
|
["jsonc"],
|
|
5
|
-
]
|
|
5
|
+
],
|
|
6
6
|
[
|
|
7
7
|
"jsonc",
|
|
8
8
|
["json"],
|
|
9
|
-
]
|
|
9
|
+
],
|
|
10
10
|
[
|
|
11
11
|
"svelte",
|
|
12
12
|
["ts"],
|
|
13
|
-
]
|
|
13
|
+
],
|
|
14
14
|
[
|
|
15
15
|
"mocha",
|
|
16
16
|
["ts"],
|
|
17
|
-
]
|
|
17
|
+
],
|
|
18
18
|
[
|
|
19
19
|
"ts",
|
|
20
20
|
["js"],
|
|
21
|
-
]
|
|
22
|
-
];
|
|
21
|
+
],
|
|
22
|
+
] as const;
|