linted 35.1.9 → 35.1.10

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 CHANGED
@@ -1,3 +1,4 @@
1
1
  import Core from "@eslinted/core";
2
- export default function (extensions?: Parameters<typeof Core>[6]): unknown[];
3
- //# sourceMappingURL=index.d.ts.map
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAyBlC,MAAM,CAAC,OAAO,WACZ,UAAU,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAM,aA6B5C"}
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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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"}
@@ -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,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,eAAO,MAAM,MAAM,2FAWT,EACV,QAAQ,qBAAsB,CAAC"}
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"}
@@ -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
- ], optional = ["svelte"];
12
+ ];
13
+ export { optional } from "./optional.js";
14
+ export { tree } from "./tree.js";
14
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,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,EACV,QAAQ,GAAG,CAAC,QAAQ,CAAU,CAAC"}
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,2 @@
1
+ export declare const optional: readonly ["svelte"];
2
+ //# sourceMappingURL=optional.d.ts.map
@@ -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,2 @@
1
+ export const optional = ["svelte"];
2
+ //# sourceMappingURL=optional.js.map
@@ -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"}
@@ -1,2 +1,2 @@
1
- export declare const tree: (readonly ["jsoncc", readonly ["jsonc"]] | readonly ["jsonc", readonly ["json"]] | readonly ["svelte", readonly ["ts"]] | readonly ["mocha", readonly ["ts"]] | readonly ["ts", readonly ["js"]])[];
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
@@ -1 +1 @@
1
- {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,qMAqBhB,CAAC"}
1
+ {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,wMAqBP,CAAC"}
@@ -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;KACD;IACV;QACE,OAAO;QACP,CAAC,MAAM,CAAC;KACA;IACV;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACE;IACV;QACE,OAAO;QACP,CAAC,IAAI,CAAC;KACE;IACV;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACE;CACX,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.9",
6
+ "version": "35.1.10",
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.3",
54
+ "@eslinted/core": "32.0.7",
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>[6] = {},
28
+ extensions: Parameters<typeof Core<typeof scopes[number], typeof optional[number]>>[6] = {},
29
29
  ) {
30
30
  const configs = Core(
31
31
  scopes,
@@ -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
- optional = ["svelte"] as const;
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
- ] as const,
5
+ ],
6
6
  [
7
7
  "jsonc",
8
8
  ["json"],
9
- ] as const,
9
+ ],
10
10
  [
11
11
  "svelte",
12
12
  ["ts"],
13
- ] as const,
13
+ ],
14
14
  [
15
15
  "mocha",
16
16
  ["ts"],
17
- ] as const,
17
+ ],
18
18
  [
19
19
  "ts",
20
20
  ["js"],
21
- ] as const,
22
- ];
21
+ ],
22
+ ] as const;
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "files": [
3
3
  "index.ts",
4
+ "optional.ts",
4
5
  "tree.ts",
5
6
  ],
6
7
  "extends": "../tsconfig-src.json",