@eslinted/core 10.1.0 → 10.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/dist/factory/files.d.ts +1 -1
  2. package/dist/factory/index.d.ts +5 -2
  3. package/dist/factory/index.js +1 -1
  4. package/dist/factory/options/html.d.ts +1 -1
  5. package/dist/factory/options/html.js +1 -1
  6. package/dist/factory/options/index.d.ts +1 -1
  7. package/dist/factory/options/index.js +1 -1
  8. package/dist/factory/options/js.d.ts +1 -1
  9. package/dist/factory/options/js.js +1 -1
  10. package/dist/factory/options/json.d.ts +1 -1
  11. package/dist/factory/options/json.js +1 -1
  12. package/dist/factory/options/jsonc.d.ts +1 -1
  13. package/dist/factory/options/jsonc.js +1 -1
  14. package/dist/factory/options/mocha.d.ts +4 -2
  15. package/dist/factory/options/mocha.js +1 -1
  16. package/dist/factory/options/option/index.d.ts +2 -2
  17. package/dist/factory/options/option/template/index.d.ts +1 -1
  18. package/dist/factory/options/option/template/language/index.d.ts +1 -1
  19. package/dist/factory/options/svelte.d.ts +7 -3
  20. package/dist/factory/options/svelte.js +1 -1
  21. package/dist/factory/options/ts.d.ts +1 -1
  22. package/dist/factory/options/ts.js +1 -1
  23. package/dist/factory/options/yml.d.ts +1 -1
  24. package/dist/factory/options/yml.js +1 -1
  25. package/dist/factory/rulesets/index.d.ts +1 -1
  26. package/dist/factory/rulesets/index.js +1 -1
  27. package/dist/factory/rulesets/ruleset.d.ts +5 -2
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +1 -1
  30. package/dist/input/files.d.ts +1 -1
  31. package/dist/input/imports/parsers.d.ts +1 -1
  32. package/dist/input/index.d.ts +1 -1
  33. package/dist/input/parsers.d.ts +1 -1
  34. package/dist/input/plugins.d.ts +1 -1
  35. package/dist/input/rules/entry/index.d.ts +5 -2
  36. package/dist/input/rules/entry/record/index.d.ts +5 -2
  37. package/dist/input/rules/index.d.ts +1 -1
  38. package/dist/output.d.ts +1 -1
  39. package/dist/scopes.spec.js +1 -1
  40. package/package.json +4 -4
@@ -4,4 +4,4 @@ export declare class Files {
4
4
  constructor(files: Input["files"]);
5
5
  files(scope: string): string[];
6
6
  }
7
- //# sourceMappingURL=files.d.ts.map
7
+ //# sourceMappingURL=files.d.ts.map
@@ -8,6 +8,9 @@ export declare class Factory {
8
8
  readonly files: Files;
9
9
  readonly rulesets: Rulesets;
10
10
  constructor(files: Input["files"], rules: Input["rules"]);
11
- produce(scope: string): readonly [string[], import("./rulesets/ruleset").Ruleset];
11
+ produce(scope: string): readonly [
12
+ string[],
13
+ import("./rulesets/ruleset.js").Ruleset
14
+ ];
12
15
  }
13
- //# sourceMappingURL=index.d.ts.map
16
+ //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,4 @@ export class Factory {
16
16
  ];
17
17
  }
18
18
  }
19
- //# sourceMappingURL=index.js.map
19
+ //# sourceMappingURL=index.js.map
@@ -6,4 +6,4 @@ export default class Html extends Option<"html", "@html-eslint", false, true, 1>
6
6
  readonly parser: unknown;
7
7
  };
8
8
  }
9
- //# sourceMappingURL=html.d.ts.map
9
+ //# sourceMappingURL=html.d.ts.map
@@ -7,4 +7,4 @@ export default class Html extends Option {
7
7
  return { parser };
8
8
  }
9
9
  }
10
- //# sourceMappingURL=html.js.map
10
+ //# sourceMappingURL=html.js.map
@@ -18,4 +18,4 @@ declare const _default: {
18
18
  readonly yml: typeof yml;
19
19
  };
20
20
  export default _default;
21
- //# sourceMappingURL=index.d.ts.map
21
+ //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,4 @@ export default {
16
16
  jsonc,
17
17
  yml,
18
18
  };
19
- //# sourceMappingURL=index.js.map
19
+ //# sourceMappingURL=index.js.map
@@ -7,4 +7,4 @@ export default class Js extends Option<"js", "@stylistic"> {
7
7
  readonly sourceType: "module";
8
8
  };
9
9
  }
10
- //# sourceMappingURL=js.d.ts.map
10
+ //# sourceMappingURL=js.d.ts.map
@@ -9,4 +9,4 @@ export default class Js extends Option {
9
9
  };
10
10
  }
11
11
  }
12
- //# sourceMappingURL=js.js.map
12
+ //# sourceMappingURL=js.js.map
@@ -6,4 +6,4 @@ export default class Json extends Option<"json", "jsonc", false, true, 1> {
6
6
  readonly parser: unknown;
7
7
  };
8
8
  }
9
- //# sourceMappingURL=json.d.ts.map
9
+ //# sourceMappingURL=json.d.ts.map
@@ -7,4 +7,4 @@ export default class Json extends Option {
7
7
  return { parser };
8
8
  }
9
9
  }
10
- //# sourceMappingURL=json.js.map
10
+ //# sourceMappingURL=json.js.map
@@ -6,4 +6,4 @@ export default class Jsonc extends Option<"jsonc", "jsonc", false, true, 1> {
6
6
  readonly parser: unknown;
7
7
  };
8
8
  }
9
- //# sourceMappingURL=jsonc.d.ts.map
9
+ //# sourceMappingURL=jsonc.d.ts.map
@@ -7,4 +7,4 @@ export default class Jsonc extends Option {
7
7
  return { parser };
8
8
  }
9
9
  }
10
- //# sourceMappingURL=jsonc.js.map
10
+ //# sourceMappingURL=jsonc.js.map
@@ -3,7 +3,9 @@ import type Ts from "./ts.js";
3
3
  export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"]["plugins"], true, Ts["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
4
4
  readonly scope = "mocha";
5
5
  readonly processor: {};
6
- readonly types: readonly ["mocha"];
6
+ readonly types: readonly [
7
+ "mocha"
8
+ ];
7
9
  get languageOptions(): {
8
10
  readonly ecmaVersion: "latest";
9
11
  readonly sourceType: "module";
@@ -37,4 +39,4 @@ export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"][
37
39
  };
38
40
  };
39
41
  }
40
- //# sourceMappingURL=mocha.d.ts.map
42
+ //# sourceMappingURL=mocha.d.ts.map
@@ -14,4 +14,4 @@ export default class Mocha extends Option {
14
14
  };
15
15
  }
16
16
  }
17
- //# sourceMappingURL=mocha.js.map
17
+ //# sourceMappingURL=mocha.js.map
@@ -2566,7 +2566,7 @@ export default abstract class Option<S extends Scope, Plugin extends keyof Input
2566
2566
  readonly WritableStreamDefaultWriter: false;
2567
2567
  readonly XMLHttpRequest: false;
2568
2568
  };
2569
- readonly 'shared-node-browser': {
2569
+ readonly "shared-node-browser": {
2570
2570
  readonly AbortController: false;
2571
2571
  readonly AbortSignal: false;
2572
2572
  readonly atob: false;
@@ -2985,4 +2985,4 @@ export default abstract class Option<S extends Scope, Plugin extends keyof Input
2985
2985
  };
2986
2986
  }[Global];
2987
2987
  }
2988
- //# sourceMappingURL=index.d.ts.map
2988
+ //# sourceMappingURL=index.d.ts.map
@@ -12,4 +12,4 @@ export type OptionTemplate<PluginId extends string, IsEcma extends boolean, Pars
12
12
  }) & (Interface<Processor> extends never ? object : Interface<Processor> extends {
13
13
  processor: string;
14
14
  } ? Interface<Processor> : object);
15
- //# sourceMappingURL=index.d.ts.map
15
+ //# sourceMappingURL=index.d.ts.map
@@ -11,4 +11,4 @@ export type LanguageOptions<IsEcma extends boolean, ParserOptions extends object
11
11
  parser: unknown;
12
12
  parserOptions: ParserOptions;
13
13
  } : object);
14
- //# sourceMappingURL=index.d.ts.map
14
+ //# sourceMappingURL=index.d.ts.map
@@ -3,7 +3,9 @@ import type Ts from "./ts.js";
3
3
  export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option"]["plugins"], true, {
4
4
  parser: unknown;
5
5
  } & {
6
- extraFileExtensions: readonly [".svelte"];
6
+ extraFileExtensions: readonly [
7
+ ".svelte"
8
+ ];
7
9
  } & Ts["option"]["languageOptions"]["parserOptions"], 2, never, {
8
10
  processor: "svelte/svelte";
9
11
  }> {
@@ -17,11 +19,13 @@ export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option
17
19
  readonly parser: unknown;
18
20
  readonly parserOptions: {
19
21
  readonly parser: unknown;
20
- readonly extraFileExtensions: readonly [".svelte"];
22
+ readonly extraFileExtensions: readonly [
23
+ ".svelte"
24
+ ];
21
25
  readonly project: "tsconfig.json";
22
26
  readonly ecmaVersion: "latest";
23
27
  readonly sourceType: "module";
24
28
  };
25
29
  };
26
30
  }
27
- //# sourceMappingURL=svelte.d.ts.map
31
+ //# sourceMappingURL=svelte.d.ts.map
@@ -18,4 +18,4 @@ export default class Svelte extends Option {
18
18
  };
19
19
  }
20
20
  }
21
- //# sourceMappingURL=svelte.js.map
21
+ //# sourceMappingURL=svelte.js.map
@@ -16,4 +16,4 @@ export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["op
16
16
  };
17
17
  };
18
18
  }
19
- //# sourceMappingURL=ts.d.ts.map
19
+ //# sourceMappingURL=ts.d.ts.map
@@ -12,4 +12,4 @@ export default class Ts extends Option {
12
12
  };
13
13
  }
14
14
  }
15
- //# sourceMappingURL=ts.js.map
15
+ //# sourceMappingURL=ts.js.map
@@ -6,4 +6,4 @@ export default class Yml extends Option<"yml", "yml", false, true, 1> {
6
6
  readonly parser: unknown;
7
7
  };
8
8
  }
9
- //# sourceMappingURL=yml.d.ts.map
9
+ //# sourceMappingURL=yml.d.ts.map
@@ -7,4 +7,4 @@ export default class Yml extends Option {
7
7
  return { parser };
8
8
  }
9
9
  }
10
- //# sourceMappingURL=yml.js.map
10
+ //# sourceMappingURL=yml.js.map
@@ -6,4 +6,4 @@ export declare class Rulesets {
6
6
  constructor(rules: Input["rules"]);
7
7
  ruleset(scope: string): Ruleset;
8
8
  }
9
- //# sourceMappingURL=index.d.ts.map
9
+ //# sourceMappingURL=index.d.ts.map
@@ -12,4 +12,4 @@ export class Rulesets {
12
12
  return this.rulesets.get(scope);
13
13
  }
14
14
  }
15
- //# sourceMappingURL=index.js.map
15
+ //# sourceMappingURL=index.js.map
@@ -5,6 +5,9 @@ export declare class Ruleset {
5
5
  id: string;
6
6
  rule: Input.Rule.Entry.Record;
7
7
  }[];
8
- constructor(scope: string, rules: (readonly [string, Input.Rule.Entry.Record])[], override?: Input.Rule.Entry.Record);
8
+ constructor(scope: string, rules: (readonly [
9
+ string,
10
+ Input.Rule.Entry.Record
11
+ ])[], override?: Input.Rule.Entry.Record);
9
12
  }
10
- //# sourceMappingURL=ruleset.d.ts.map
13
+ //# sourceMappingURL=ruleset.d.ts.map
package/dist/index.d.ts CHANGED
@@ -3,4 +3,4 @@ import type { Input } from "./input/index.js";
3
3
  import type { Output } from "./output.js";
4
4
  export type { Input, Output };
5
5
  export default function (input: Input): Output;
6
- //# sourceMappingURL=index.d.ts.map
6
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -26,4 +26,4 @@ export default function (input) {
26
26
  throw new Error(`linted-core`, { cause: e });
27
27
  }
28
28
  }
29
- //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=index.js.map
@@ -3,4 +3,4 @@ export interface FilesInput {
3
3
  files: Record<Scope, string[]>;
4
4
  includes: Partial<FilesInput["files"]>;
5
5
  }
6
- //# sourceMappingURL=files.d.ts.map
6
+ //# sourceMappingURL=files.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import type { Scope } from "../index.js";
2
2
  export type Parsers = Scope & ("ts" | "svelte" | "html" | "jsonc" | "yml");
3
- //# sourceMappingURL=parsers.d.ts.map
3
+ //# sourceMappingURL=parsers.d.ts.map
@@ -19,4 +19,4 @@ export declare namespace Input {
19
19
  }
20
20
  }
21
21
  }
22
- //# sourceMappingURL=index.d.ts.map
22
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import type { Parsers } from "./imports/parsers.js";
2
2
  export type ParsersInput = Record<Parsers, unknown>;
3
- //# sourceMappingURL=parsers.d.ts.map
3
+ //# sourceMappingURL=parsers.d.ts.map
@@ -2,4 +2,4 @@ import type { Plugins } from "./imports/plugins.js";
2
2
  export type PluginsInput = Record<Plugins, {
3
3
  configs: unknown;
4
4
  }>;
5
- //# sourceMappingURL=plugins.d.ts.map
5
+ //# sourceMappingURL=plugins.d.ts.map
@@ -1,7 +1,10 @@
1
1
  import type { RuleRecord } from "./record/index.js";
2
- export type RuleEntry = readonly [string, RuleRecord];
2
+ export type RuleEntry = readonly [
3
+ string,
4
+ RuleRecord
5
+ ];
3
6
  export declare namespace RuleEntry {
4
7
  type Id = string;
5
8
  type Record = RuleRecord;
6
9
  }
7
- //# sourceMappingURL=index.d.ts.map
10
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,6 @@
1
1
  import type { RuleState } from "./state.js";
2
- export type RuleRecord = Table<RuleState | readonly [RuleState, ...unknown[]]>;
3
- //# sourceMappingURL=index.d.ts.map
2
+ export type RuleRecord = Table<RuleState | readonly [
3
+ RuleState,
4
+ ...unknown[]
5
+ ]>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -11,4 +11,4 @@ export declare namespace RulesInput {
11
11
  type Record = RuleEntry.Record;
12
12
  }
13
13
  }
14
- //# sourceMappingURL=index.d.ts.map
14
+ //# sourceMappingURL=index.d.ts.map
package/dist/output.d.ts CHANGED
@@ -17,4 +17,4 @@ export type Output = ({
17
17
  plugins: Table<Record<"configs", unknown>>;
18
18
  processor?: string;
19
19
  })[];
20
- //# sourceMappingURL=output.d.ts.map
20
+ //# sourceMappingURL=output.d.ts.map
@@ -34,4 +34,4 @@ describe("Scopes", function () {
34
34
  });
35
35
  });
36
36
  });
37
- //# sourceMappingURL=scopes.spec.js.map
37
+ //# sourceMappingURL=scopes.spec.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "_schemaVersion": "22.10.2",
2
+ "_schemaVersion": "22.11.0",
3
3
  "name": "@eslinted/core",
4
- "version": "10.1.0",
4
+ "version": "10.1.2",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "engineStrict": true,
25
25
  "engines": {
26
- "node": ">=22.10.0",
26
+ "node": ">=22.11.0",
27
27
  "npm": ">=10.9.0"
28
28
  },
29
29
  "peerDependenciesMeta": {},
@@ -37,7 +37,7 @@
37
37
  "mocha": "^10.8.2",
38
38
  "npm-run-all": "^4.1.5",
39
39
  "run-script-os": "^1.1.6",
40
- "ts-add-js-extension": "^1.6.4",
40
+ "ts-add-js-extension": "^1.6.5",
41
41
  "typescript": "^5.6.3"
42
42
  },
43
43
  "scripts": {