@eslinted/core 11.0.0 → 11.1.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/dist/factory/options/html.d.ts +1 -1
  2. package/dist/factory/options/html.d.ts.map +1 -1
  3. package/dist/factory/options/html.js.map +1 -1
  4. package/dist/factory/options/js.d.ts +2 -5
  5. package/dist/factory/options/js.d.ts.map +1 -1
  6. package/dist/factory/options/js.js +1 -4
  7. package/dist/factory/options/js.js.map +1 -1
  8. package/dist/factory/options/json.d.ts +1 -1
  9. package/dist/factory/options/json.d.ts.map +1 -1
  10. package/dist/factory/options/json.js.map +1 -1
  11. package/dist/factory/options/jsonc.d.ts +1 -2
  12. package/dist/factory/options/jsonc.d.ts.map +1 -1
  13. package/dist/factory/options/jsonc.js.map +1 -1
  14. package/dist/factory/options/mocha.d.ts +2 -4
  15. package/dist/factory/options/mocha.d.ts.map +1 -1
  16. package/dist/factory/options/mocha.js +5 -3
  17. package/dist/factory/options/mocha.js.map +1 -1
  18. package/dist/factory/options/option/index.d.ts +5 -7
  19. package/dist/factory/options/option/index.d.ts.map +1 -1
  20. package/dist/factory/options/option/index.js +2 -7
  21. package/dist/factory/options/option/index.js.map +1 -1
  22. package/dist/factory/options/option/template/index.d.ts +5 -10
  23. package/dist/factory/options/option/template/index.d.ts.map +1 -1
  24. package/dist/factory/options/option/template/languageOptions.d.ts +9 -0
  25. package/dist/factory/options/option/template/languageOptions.d.ts.map +1 -0
  26. package/dist/factory/options/option/template/languageOptions.js +2 -0
  27. package/dist/factory/options/option/template/languageOptions.js.map +1 -0
  28. package/dist/factory/options/svelte.d.ts +2 -5
  29. package/dist/factory/options/svelte.d.ts.map +1 -1
  30. package/dist/factory/options/svelte.js +1 -3
  31. package/dist/factory/options/svelte.js.map +1 -1
  32. package/dist/factory/options/ts.d.ts +5 -6
  33. package/dist/factory/options/ts.d.ts.map +1 -1
  34. package/dist/factory/options/ts.js +5 -3
  35. package/dist/factory/options/ts.js.map +1 -1
  36. package/dist/factory/options/yml.d.ts +1 -1
  37. package/dist/factory/options/yml.d.ts.map +1 -1
  38. package/dist/factory/options/yml.js.map +1 -1
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +24 -10
  41. package/dist/index.js.map +1 -1
  42. package/dist/output.d.ts +28 -18
  43. package/dist/output.d.ts.map +1 -1
  44. package/package.json +1 -1
  45. package/src/factory/options/html.ts +0 -2
  46. package/src/factory/options/js.ts +2 -8
  47. package/src/factory/options/json.ts +0 -2
  48. package/src/factory/options/jsonc.ts +1 -4
  49. package/src/factory/options/mocha.ts +5 -5
  50. package/src/factory/options/option/index.ts +2 -15
  51. package/src/factory/options/option/template/index.ts +1 -9
  52. package/src/factory/options/option/template/{languageOptions/index.ts → languageOptions.ts} +0 -5
  53. package/src/factory/options/svelte.ts +5 -6
  54. package/src/factory/options/ts.ts +10 -7
  55. package/src/factory/options/yml.ts +0 -2
  56. package/src/index.ts +17 -10
  57. package/src/output.ts +57 -13
  58. package/typings/common/utility/primitive/cast/number.d.ts +3 -0
  59. package/dist/factory/options/option/template/languageOptions/ecma.d.ts +0 -2
  60. package/dist/factory/options/option/template/languageOptions/ecma.d.ts.map +0 -1
  61. package/dist/factory/options/option/template/languageOptions/ecma.js +0 -2
  62. package/dist/factory/options/option/template/languageOptions/ecma.js.map +0 -1
  63. package/dist/factory/options/option/template/languageOptions/index.d.ts +0 -14
  64. package/dist/factory/options/option/template/languageOptions/index.d.ts.map +0 -1
  65. package/dist/factory/options/option/template/languageOptions/index.js +0 -2
  66. package/dist/factory/options/option/template/languageOptions/index.js.map +0 -1
  67. package/dist/factory/options/option/template/languageOptions/source.d.ts +0 -2
  68. package/dist/factory/options/option/template/languageOptions/source.d.ts.map +0 -1
  69. package/dist/factory/options/option/template/languageOptions/source.js +0 -2
  70. package/dist/factory/options/option/template/languageOptions/source.js.map +0 -1
  71. package/dist/factory/options/option/template/linter.d.ts +0 -5
  72. package/dist/factory/options/option/template/linter.d.ts.map +0 -1
  73. package/dist/factory/options/option/template/linter.js +0 -2
  74. package/dist/factory/options/option/template/linter.js.map +0 -1
  75. package/dist/factory/options/option/template/plugins.d.ts +0 -4
  76. package/dist/factory/options/option/template/plugins.d.ts.map +0 -1
  77. package/dist/factory/options/option/template/plugins.js +0 -2
  78. package/dist/factory/options/option/template/plugins.js.map +0 -1
  79. package/src/factory/options/option/template/languageOptions/ecma.ts +0 -3
  80. package/src/factory/options/option/template/languageOptions/source.ts +0 -4
  81. package/src/factory/options/option/template/linter.ts +0 -8
  82. package/src/factory/options/option/template/plugins.ts +0 -1
@@ -2,8 +2,6 @@ import Option from "./option";
2
2
 
3
3
  export default class Json extends Option<
4
4
  "json",
5
- "jsonc",
6
- false,
7
5
  true,
8
6
  1
9
7
  > {
@@ -1,12 +1,9 @@
1
1
  import Option from "./option";
2
- import type Json from "./json";
3
2
 
4
3
  export default class Jsonc extends Option<
5
4
  "jsonc",
6
- keyof Json["plugins"],
7
- false,
8
5
  true,
9
- ConstructorParameters<typeof Json>[1]["length"]
6
+ 1
10
7
  > {
11
8
  public readonly scope = "jsonc";
12
9
  public readonly processor = {};
@@ -3,8 +3,6 @@ import type Ts from "./ts";
3
3
 
4
4
  export default class Mocha extends Option<
5
5
  "mocha",
6
- "mocha" | keyof Ts["option"]["plugins"],
7
- true,
8
6
  Ts["option"]["languageOptions"]["parserOptions"],
9
7
  1,
10
8
  "mocha"
@@ -19,10 +17,12 @@ export default class Mocha extends Option<
19
17
  globals = this.globals("mocha");
20
18
 
21
19
  return {
22
- ecmaVersion: "latest",
23
- sourceType: "module",
24
20
  parser,
25
- parserOptions: { project: "tsconfig.json", ecmaVersion: "latest", sourceType: "module" },
21
+ parserOptions: {
22
+ project: "tsconfig.json",
23
+ sourceType: "module",
24
+ ecmaVersion: 2023,
25
+ },
26
26
  globals,
27
27
  } as const;
28
28
  }
@@ -2,26 +2,20 @@ import globals from "globals";
2
2
  import type { Ruleset } from "../../rulesets/ruleset";
3
3
  import type {
4
4
  Scope,
5
- Input,
6
5
  Output,
7
6
  OptionTemplate,
8
7
  LanguageOptions,
9
- Plugins,
10
8
  Globals,
11
9
  } from "./template";
12
10
 
13
11
  export default abstract class Option<
14
12
  S extends Scope,
15
- Plugin extends keyof Input["plugins"],
16
- IsEcma extends boolean = true,
17
13
  ParserOptions extends object | boolean = false,
18
14
  ParserCount extends 0 | 1 | 2 = 0,
19
15
  Global extends Globals = never,
20
16
  Processor extends object = never,
21
17
  Language extends object = never,
22
18
  > {
23
- private readonly linterOptions = { noInlineConfig: true, reportUnusedDisableDirectives: "error" } as const;
24
-
25
19
  public abstract readonly scope: literalful<S>;
26
20
  public abstract readonly processor: Interface<Processor> extends never
27
21
  ? object
@@ -35,13 +29,12 @@ export default abstract class Option<
35
29
  : object;
36
30
 
37
31
  constructor(
38
- public readonly plugins: Plugins<Plugin>,
39
32
  public readonly parser: Tuple<ParserCount, unknown>,
40
33
  public readonly files: string[],
41
34
  public readonly ruleset: Ruleset,
42
35
  ) {}
43
36
 
44
- public get configs(): Output {
37
+ public get configs(): Output[1][] {
45
38
  const {
46
39
  scope,
47
40
  ruleset,
@@ -67,22 +60,16 @@ export default abstract class Option<
67
60
  private get option() {
68
61
  try {
69
62
  const {
70
- plugins,
71
- linterOptions,
72
63
  languageOptions,
73
64
  processor,
74
65
  language,
75
66
  } = this;
76
67
 
77
68
  return {
78
- plugins,
79
- linterOptions,
80
69
  languageOptions,
81
70
  ...processor,
82
71
  ...language,
83
72
  } satisfies OptionTemplate<
84
- Plugin,
85
- IsEcma,
86
73
  ParserOptions,
87
74
  Global,
88
75
  Processor,
@@ -92,7 +79,7 @@ export default abstract class Option<
92
79
  catch (e) { throw new Error(`linted.factory.Option/scope:${this.scope}: option`, { cause: e }); }
93
80
  }
94
81
 
95
- protected abstract get languageOptions(): LanguageOptions<IsEcma, ParserOptions, Global>;
82
+ protected abstract get languageOptions(): LanguageOptions<ParserOptions, Global>;
96
83
 
97
84
  protected globals(type: Global) {
98
85
  return globals[type];
@@ -1,28 +1,20 @@
1
1
  export type { Scope, Input, Output } from "../..";
2
2
 
3
3
  import type { LanguageOptions } from "./languageOptions";
4
- import type { Linter } from "./linter";
5
- import type { Plugins } from "./plugins";
6
4
  import type { Globals } from "./globals";
7
5
 
8
6
  export type {
9
7
  LanguageOptions,
10
- Linter,
11
- Plugins,
12
8
  Globals,
13
9
  };
14
10
  export type OptionTemplate<
15
- PluginId extends string,
16
- IsEcma extends boolean,
17
11
  ParserOptions extends boolean | object,
18
12
  GlobalTypes extends Globals,
19
13
  Processor extends object,
20
14
  Language extends object,
21
15
  > =
22
16
  & {
23
- linterOptions: Linter;
24
- languageOptions: LanguageOptions<IsEcma, ParserOptions, GlobalTypes>;
17
+ languageOptions: LanguageOptions<ParserOptions, GlobalTypes>;
25
18
  }
26
- & (Plugins<PluginId> extends never ? object : { plugins: Plugins<PluginId> })
27
19
  & (Interface<Processor> extends never ? object : Interface<Processor> extends { processor: string } ? Interface<Processor> : object)
28
20
  & (Interface<Language> extends never ? object : Interface<Language> extends { language: string } ? Interface<Language> : object);
@@ -1,12 +1,7 @@
1
- import type { EcmaVersion } from "./ecma";
2
- import type { SourceType } from "./source";
3
-
4
1
  export type LanguageOptions<
5
- IsEcma extends boolean,
6
2
  ParserOptions extends object | boolean,
7
3
  GlobalTypes extends string,
8
4
  > =
9
- & (Truth<IsEcma> extends never ? object : { ecmaVersion: EcmaVersion; sourceType: SourceType })
10
5
  & (literalful<GlobalTypes> extends never ? object : { globals: Record<string, unknown> })
11
6
  & (
12
7
  ParserOptions extends boolean
@@ -3,9 +3,10 @@ import type Ts from "./ts";
3
3
 
4
4
  export default class Svelte extends Option<
5
5
  "svelte",
6
- "svelte" | keyof Ts["option"]["plugins"],
7
- true,
8
- { parser: unknown } & { extraFileExtensions: readonly [".svelte"] } & Ts["option"]["languageOptions"]["parserOptions"],
6
+ {
7
+ parser: unknown;
8
+ extraFileExtensions: readonly [".svelte"];
9
+ } & Ts["option"]["languageOptions"]["parserOptions"],
9
10
  2,
10
11
  never,
11
12
  { processor: "svelte/svelte" }
@@ -18,15 +19,13 @@ export default class Svelte extends Option<
18
19
  const [parser, tsParser] = this.parser;
19
20
 
20
21
  return {
21
- ecmaVersion: "latest",
22
- sourceType: "module",
23
22
  parser,
24
23
  parserOptions: {
25
24
  parser: tsParser,
26
25
  extraFileExtensions: [".svelte"] as const,
27
26
  project: "tsconfig.json",
28
- ecmaVersion: "latest",
29
27
  sourceType: "module",
28
+ ecmaVersion: 2023,
30
29
  },
31
30
  } as const;
32
31
  }
@@ -1,11 +1,12 @@
1
1
  import Option from "./option";
2
- import type Js from "./js";
3
2
 
4
3
  export default class Ts extends Option<
5
4
  "ts",
6
- "@typescript-eslint" | keyof Js["option"]["plugins"],
7
- true,
8
- { project: "tsconfig.json" } & Js["option"]["languageOptions"],
5
+ {
6
+ project: "tsconfig.json";
7
+ sourceType: "module";
8
+ ecmaVersion: 2023;
9
+ },
9
10
  1
10
11
  > {
11
12
  public readonly scope = "ts";
@@ -16,10 +17,12 @@ export default class Ts extends Option<
16
17
  const [parser] = this.parser;
17
18
 
18
19
  return {
19
- ecmaVersion: "latest",
20
- sourceType: "module",
21
20
  parser,
22
- parserOptions: { project: "tsconfig.json", ecmaVersion: "latest", sourceType: "module" },
21
+ parserOptions: {
22
+ project: "tsconfig.json",
23
+ sourceType: "module",
24
+ ecmaVersion: 2023,
25
+ },
23
26
  } as const;
24
27
  }
25
28
  }
@@ -2,8 +2,6 @@ import Option from "./option";
2
2
 
3
3
  export default class Yml extends Option<
4
4
  "yml",
5
- "yml",
6
- false,
7
5
  true,
8
6
  1
9
7
  > {
package/src/index.ts CHANGED
@@ -14,64 +14,71 @@ import {
14
14
  export default function (input: Input): Output {
15
15
  try {
16
16
  const {
17
- parsers,
18
17
  plugins,
18
+ parsers,
19
19
  files,
20
20
  rules,
21
21
  } = input,
22
+ base = {
23
+ name: "linted",
24
+ plugins,
25
+ linterOptions: {
26
+ noInlineConfig: true,
27
+ reportUnusedDisableDirectives: "error",
28
+ },
29
+ languageOptions: {
30
+ sourceType: "module",
31
+ ecmaVersion: 2023,
32
+ },
33
+ } as const,
22
34
  factory = new Factory(files, rules),
23
35
  options: { [S in typeof scopes[number]]: InstanceType<typeof Options[S]>["configs"] } = {
24
36
  js: new Options
25
37
  .js(
26
- { "@stylistic": plugins["@stylistic"] },
27
38
  [],
28
39
  ...factory.produce("js"),
29
40
  ).configs,
30
41
  ts: new Options
31
42
  .ts(
32
- { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"] },
33
43
  [parsers.ts],
34
44
  ...factory.produce("ts"),
35
45
  ).configs,
36
46
  svelte: new Options
37
47
  .svelte(
38
- { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], svelte: plugins.svelte },
39
48
  [parsers.svelte, parsers.ts],
40
49
  ...factory.produce("svelte"),
41
50
  ).configs,
42
51
  mocha: new Options
43
52
  .mocha(
44
- { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], mocha: plugins.mocha },
45
53
  [parsers.ts],
46
54
  ...factory.produce("mocha"),
47
55
  ).configs,
48
56
  html: new Options
49
57
  .html(
50
- { "@html-eslint": plugins["@html-eslint"] },
51
58
  [parsers.html],
52
59
  ...factory.produce("html"),
53
60
  ).configs,
54
61
  json: new Options
55
62
  .json(
56
- { jsonc: plugins.jsonc },
57
63
  [parsers.jsonc],
58
64
  ...factory.produce("json"),
59
65
  ).configs,
60
66
  jsonc: new Options
61
67
  .jsonc(
62
- { jsonc: plugins.jsonc },
63
68
  [parsers.jsonc],
64
69
  ...factory.produce("jsonc"),
65
70
  ).configs,
66
71
  yml: new Options
67
72
  .yml(
68
- { yml: plugins.yml },
69
73
  [parsers.yml],
70
74
  ...factory.produce("yml"),
71
75
  ).configs,
72
76
  };
73
77
 
74
- return scopes.flatMap(scope => options[scope]);
78
+ return [
79
+ base,
80
+ ...scopes.flatMap(scope => options[scope]),
81
+ ];
75
82
  }
76
83
  catch (e) { throw new Error(`Linted Core`, { cause: e }); }
77
84
  }
package/src/output.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import type { Input } from ".";
2
2
 
3
- export type Output = (
3
+ export type Output = [
4
4
  {
5
- name: `linted/${string}`;
6
- rules: Input["rules"]["rules"]["html"][number][1];
7
- files: string[];
5
+ name: `linted`;
6
+ plugins: Table<Record<"configs", unknown>>;
8
7
  linterOptions: {
9
8
  noInlineConfig: true;
10
9
  reportUnusedDisableDirectives: "error";
@@ -12,13 +11,58 @@ export type Output = (
12
11
  languageOptions: {
13
12
  sourceType?:
14
13
  | "module"
15
- | "script";
16
- ecmaVersion?: "latest";
17
- globals?: Table<true>;
18
- parser?: unknown;
19
- parserOptions?: Table;
14
+ | "script"
15
+ ;
16
+ ecmaVersion?:
17
+ | "latest"
18
+ | 3
19
+ | 5
20
+ | ToNumber<`20${
21
+ | 15
22
+ | 16
23
+ | 17
24
+ | 18
25
+ | 19
26
+ | 20
27
+ | 21
28
+ | 22
29
+ | 23
30
+ | 24
31
+ }`>;
20
32
  };
21
- plugins: Table<Record<"configs", unknown>>;
22
- processor?: string;
23
- }
24
- )[];
33
+ },
34
+ ...(
35
+ {
36
+ name: `linted/${string}`;
37
+ rules: Input["rules"]["rules"]["html"][number][1];
38
+ files: string[];
39
+ languageOptions: {
40
+ sourceType?:
41
+ | "module"
42
+ | "script"
43
+ ;
44
+ ecmaVersion?:
45
+ | "latest"
46
+ | 3
47
+ | 5
48
+ | ToNumber<`20${
49
+ | 15
50
+ | 16
51
+ | 17
52
+ | 18
53
+ | 19
54
+ | 20
55
+ | 21
56
+ | 22
57
+ | 23
58
+ | 24
59
+ }`>;
60
+ globals?: Table<true>;
61
+ parser?: unknown;
62
+ parserOptions?: Table;
63
+ };
64
+ processor?: string;
65
+ language?: string;
66
+ }
67
+ )[],
68
+ ];
@@ -0,0 +1,3 @@
1
+ declare type ToNumber<Value extends string> = literalful<Value> extends `${infer Number extends number}`
2
+ ? Number
3
+ : never;
@@ -1,2 +0,0 @@
1
- export type EcmaVersion = ("latest");
2
- //# sourceMappingURL=ecma.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecma.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/ecma.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CACtB,QAAQ,CACX,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ecma.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecma.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/ecma.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import type { EcmaVersion } from "./ecma.js";
2
- import type { SourceType } from "./source.js";
3
- export type LanguageOptions<IsEcma extends boolean, ParserOptions extends object | boolean, GlobalTypes extends string> = (Truth<IsEcma> extends never ? object : {
4
- ecmaVersion: EcmaVersion;
5
- sourceType: SourceType;
6
- }) & (literalful<GlobalTypes> extends never ? object : {
7
- globals: Record<string, unknown>;
8
- }) & (ParserOptions extends boolean ? Truth<ParserOptions> extends never ? object : {
9
- parser: unknown;
10
- } : ParserOptions extends object ? Interface<ParserOptions> extends never ? object : {
11
- parser: unknown;
12
- parserOptions: ParserOptions;
13
- } : object);
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,eAAe,CACzB,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,MAAM,IAEzB,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE,CAAC,GAC7F,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,GACvF,CACC,aAAa,SAAS,OAAO,GACzB,KAAK,CAAC,aAAa,CAAC,SAAS,KAAK,GAChC,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACrB,aAAa,SAAS,MAAM,GAC1B,SAAS,CAAC,aAAa,CAAC,SAAS,KAAK,GACpC,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,GACnD,MAAM,CACb,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/index.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type SourceType = ("module" | "script");
2
- //# sourceMappingURL=source.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/source.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,CACrB,QAAQ,GACR,QAAQ,CACX,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/source.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export interface Linter {
2
- noInlineConfig: boolean;
3
- reportUnusedDisableDirectives: "error" | "warn" | "off";
4
- }
5
- //# sourceMappingURL=linter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/linter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;CACF"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=linter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linter.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/linter.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export type Plugins<PluginId extends string> = Record<literalful<PluginId>, {
2
- configs: unknown;
3
- }>;
4
- //# sourceMappingURL=plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,QAAQ,SAAS,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/plugins.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export type EcmaVersion = (
2
- | "latest"
3
- );
@@ -1,4 +0,0 @@
1
- export type SourceType = (
2
- | "module"
3
- | "script"
4
- );
@@ -1,8 +0,0 @@
1
- export interface Linter {
2
- noInlineConfig: boolean;
3
- reportUnusedDisableDirectives:
4
- | "error"
5
- | "warn"
6
- | "off"
7
- ;
8
- }
@@ -1 +0,0 @@
1
- export type Plugins<PluginId extends string> = Record<literalful<PluginId>, { configs: unknown }>;