@eslinted/core 19.0.2-rc.0 → 19.0.2

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.
Files changed (127) hide show
  1. package/dist/factory/index.d.ts +17 -16
  2. package/dist/factory/index.d.ts.map +1 -1
  3. package/dist/factory/index.js +6 -5
  4. package/dist/factory/index.js.map +1 -1
  5. package/dist/index.d.ts +4 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/interface/input/imports.d.ts +3 -3
  10. package/dist/interface/input/imports.d.ts.map +1 -1
  11. package/dist/interface/input/index.d.ts +2 -2
  12. package/dist/interface/input/index.d.ts.map +1 -1
  13. package/dist/scope/dependencies/index.d.ts +2 -2
  14. package/dist/scope/dependencies/index.d.ts.map +1 -1
  15. package/dist/scope/dependencies/parsers.d.ts +1 -1
  16. package/dist/scope/dependencies/parsers.d.ts.map +1 -1
  17. package/dist/scope/dependencies/plugins.d.ts +1 -1
  18. package/dist/scope/dependencies/plugins.d.ts.map +1 -1
  19. package/dist/scope/index.d.ts +2 -1
  20. package/dist/scope/index.d.ts.map +1 -1
  21. package/dist/scope/index.js +1 -0
  22. package/dist/scope/index.js.map +1 -1
  23. package/dist/scope/registry/index.d.ts +131 -0
  24. package/dist/scope/registry/index.d.ts.map +1 -0
  25. package/dist/{factory/register.js → scope/registry/index.js} +2 -2
  26. package/dist/scope/registry/index.js.map +1 -0
  27. package/dist/scope/registry/manifests/css.d.ts +12 -0
  28. package/dist/scope/registry/manifests/css.d.ts.map +1 -0
  29. package/dist/scope/registry/manifests/css.js.map +1 -0
  30. package/dist/scope/registry/manifests/html.d.ts +12 -0
  31. package/dist/scope/registry/manifests/html.d.ts.map +1 -0
  32. package/dist/scope/registry/manifests/html.js.map +1 -0
  33. package/dist/scope/registry/manifests/js.d.ts +10 -0
  34. package/dist/scope/registry/manifests/js.d.ts.map +1 -0
  35. package/dist/scope/registry/manifests/js.js.map +1 -0
  36. package/dist/scope/registry/manifests/json.d.ts +12 -0
  37. package/dist/scope/registry/manifests/json.d.ts.map +1 -0
  38. package/dist/scope/registry/manifests/json.js.map +1 -0
  39. package/dist/scope/registry/manifests/jsonc.d.ts +11 -0
  40. package/dist/scope/registry/manifests/jsonc.d.ts.map +1 -0
  41. package/dist/scope/registry/manifests/jsonc.js.map +1 -0
  42. package/dist/scope/registry/manifests/jsoncc.d.ts +11 -0
  43. package/dist/scope/registry/manifests/jsoncc.d.ts.map +1 -0
  44. package/dist/scope/registry/manifests/jsoncc.js.map +1 -0
  45. package/dist/scope/registry/manifests/mocha.d.ts +19 -0
  46. package/dist/scope/registry/manifests/mocha.d.ts.map +1 -0
  47. package/dist/scope/registry/manifests/mocha.js.map +1 -0
  48. package/dist/scope/registry/manifests/svelte.d.ts +21 -0
  49. package/dist/scope/registry/manifests/svelte.d.ts.map +1 -0
  50. package/dist/scope/registry/manifests/svelte.js.map +1 -0
  51. package/dist/scope/registry/manifests/ts.d.ts +19 -0
  52. package/dist/scope/registry/manifests/ts.d.ts.map +1 -0
  53. package/dist/scope/registry/manifests/ts.js.map +1 -0
  54. package/dist/scope/registry/manifests/yml.d.ts +11 -0
  55. package/dist/scope/registry/manifests/yml.d.ts.map +1 -0
  56. package/dist/scope/registry/manifests/yml.js.map +1 -0
  57. package/dist/scope/tree/index.d.ts +2 -6
  58. package/dist/scope/tree/index.d.ts.map +1 -1
  59. package/dist/scope/tree/index.js +20 -5
  60. package/dist/scope/tree/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/src/factory/index.ts +15 -13
  63. package/src/factory/model/index.d.ts +2 -0
  64. package/src/factory/{manifests/manifest/index.d.ts → model/manifest.d.ts} +3 -5
  65. package/src/factory/model/tree.d.ts +8 -0
  66. package/src/index.ts +16 -5
  67. package/src/interface/input/imports.ts +4 -4
  68. package/src/interface/input/index.ts +4 -4
  69. package/src/scope/dependencies/index.ts +2 -2
  70. package/src/scope/dependencies/parsers.ts +1 -1
  71. package/src/scope/dependencies/plugins.ts +1 -1
  72. package/src/scope/index.ts +5 -1
  73. package/src/{factory/register.ts → scope/registry/index.ts} +1 -1
  74. package/src/{factory → scope/registry}/manifests/css.ts +1 -3
  75. package/src/{factory → scope/registry}/manifests/html.ts +1 -3
  76. package/src/{factory → scope/registry}/manifests/js.ts +1 -3
  77. package/src/{factory → scope/registry}/manifests/json.ts +1 -3
  78. package/src/{factory → scope/registry}/manifests/jsonc.ts +1 -3
  79. package/src/{factory → scope/registry}/manifests/jsoncc.ts +1 -3
  80. package/src/{factory → scope/registry}/manifests/mocha.ts +1 -3
  81. package/src/{factory → scope/registry}/manifests/svelte.ts +1 -3
  82. package/src/{factory → scope/registry}/manifests/ts.ts +1 -3
  83. package/src/{factory → scope/registry}/manifests/yml.ts +1 -3
  84. package/src/scope/tree/index.ts +21 -11
  85. package/dist/factory/manifests/css.d.ts +0 -3
  86. package/dist/factory/manifests/css.d.ts.map +0 -1
  87. package/dist/factory/manifests/css.js.map +0 -1
  88. package/dist/factory/manifests/html.d.ts +0 -3
  89. package/dist/factory/manifests/html.d.ts.map +0 -1
  90. package/dist/factory/manifests/html.js.map +0 -1
  91. package/dist/factory/manifests/js.d.ts +0 -3
  92. package/dist/factory/manifests/js.d.ts.map +0 -1
  93. package/dist/factory/manifests/js.js.map +0 -1
  94. package/dist/factory/manifests/json.d.ts +0 -3
  95. package/dist/factory/manifests/json.d.ts.map +0 -1
  96. package/dist/factory/manifests/json.js.map +0 -1
  97. package/dist/factory/manifests/jsonc.d.ts +0 -3
  98. package/dist/factory/manifests/jsonc.d.ts.map +0 -1
  99. package/dist/factory/manifests/jsonc.js.map +0 -1
  100. package/dist/factory/manifests/jsoncc.d.ts +0 -3
  101. package/dist/factory/manifests/jsoncc.d.ts.map +0 -1
  102. package/dist/factory/manifests/jsoncc.js.map +0 -1
  103. package/dist/factory/manifests/mocha.d.ts +0 -3
  104. package/dist/factory/manifests/mocha.d.ts.map +0 -1
  105. package/dist/factory/manifests/mocha.js.map +0 -1
  106. package/dist/factory/manifests/svelte.d.ts +0 -3
  107. package/dist/factory/manifests/svelte.d.ts.map +0 -1
  108. package/dist/factory/manifests/svelte.js.map +0 -1
  109. package/dist/factory/manifests/ts.d.ts +0 -3
  110. package/dist/factory/manifests/ts.d.ts.map +0 -1
  111. package/dist/factory/manifests/ts.js.map +0 -1
  112. package/dist/factory/manifests/yml.d.ts +0 -3
  113. package/dist/factory/manifests/yml.d.ts.map +0 -1
  114. package/dist/factory/manifests/yml.js.map +0 -1
  115. package/dist/factory/register.d.ts +0 -13
  116. package/dist/factory/register.d.ts.map +0 -1
  117. package/dist/factory/register.js.map +0 -1
  118. /package/dist/{factory → scope/registry}/manifests/css.js +0 -0
  119. /package/dist/{factory → scope/registry}/manifests/html.js +0 -0
  120. /package/dist/{factory → scope/registry}/manifests/js.js +0 -0
  121. /package/dist/{factory → scope/registry}/manifests/json.js +0 -0
  122. /package/dist/{factory → scope/registry}/manifests/jsonc.js +0 -0
  123. /package/dist/{factory → scope/registry}/manifests/jsoncc.js +0 -0
  124. /package/dist/{factory → scope/registry}/manifests/mocha.js +0 -0
  125. /package/dist/{factory → scope/registry}/manifests/svelte.js +0 -0
  126. /package/dist/{factory → scope/registry}/manifests/ts.js +0 -0
  127. /package/dist/{factory → scope/registry}/manifests/yml.js +0 -0
@@ -0,0 +1,19 @@
1
+ export declare const ts: {
2
+ languageOptions: {
3
+ parser: "ts";
4
+ globals: null;
5
+ };
6
+ parserOptions: {
7
+ parser: null;
8
+ ecmaFeatures: {
9
+ jsx: boolean;
10
+ globalReturn: boolean;
11
+ };
12
+ jsDocParsingMode: string;
13
+ projectService: boolean;
14
+ warnOnUnsupportedTypeScriptVersion: boolean;
15
+ sourceType: string;
16
+ ecmaVersion: number;
17
+ };
18
+ };
19
+ //# sourceMappingURL=ts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../../src/scope/registry/manifests/ts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;CAoBd,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../../src/scope/registry/manifests/ts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;QACrB,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,mEAAmE;QACnE,8EAA8E;QAC9E,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE;YACZ,GAAG,EAAE,KAAK;YACV,YAAY,EAAE,IAAI;SACnB;QACD,gBAAgB,EAAE,MAAM,CAAC,+DAA+D;QACxF,cAAc,EAAE,IAAI,CAAC,iKAAiK;QACtL,uQAAuQ;QACvQ,kCAAkC,EAAE,KAAK;QACzC,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KAClB;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const yml: {
2
+ languageOptions: {
3
+ parser: "yml";
4
+ globals: null;
5
+ };
6
+ parserOptions: {
7
+ parser: null;
8
+ defaultYAMLVersion: string;
9
+ };
10
+ };
11
+ //# sourceMappingURL=yml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../../src/scope/registry/manifests/yml.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG;;;;;;;;;CAUf,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../../src/scope/registry/manifests/yml.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,eAAe,EAAE;QACf,MAAM,EAAE,KAAc;QACtB,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,oGAAoG;QACpG,MAAM,EAAE,IAAI;QACZ,kBAAkB,EAAE,KAAK,CAAC,6BAA6B;KACxD;CACF,CAAC"}
@@ -1,6 +1,2 @@
1
- import type { scopes } from "../index.js";
2
- export declare const tree: [
3
- typeof scopes[number],
4
- typeof scopes[number][]
5
- ][];
6
- //# sourceMappingURL=index.d.ts.map
1
+ export declare const tree: (readonly ["jsoncc", readonly ["jsonc"]] | readonly ["jsonc", readonly ["json"]] | readonly ["mocha", readonly ["ts"]] | readonly ["svelte", readonly ["ts"]] | readonly ["ts", readonly ["js"]])[];
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scope/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE;IACf,OAAO,MAAM,CAAC,MAAM,CAAC;IACrB,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE;CAC1B,EAMA,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scope/tree/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,qMAqBhB,CAAC"}
@@ -1,8 +1,23 @@
1
1
  export const tree = [
2
- ["jsoncc", ["jsonc"]],
3
- ["jsonc", ["json"]],
4
- ["mocha", ["ts"]],
5
- ["svelte", ["ts"]],
6
- ["ts", ["js"]],
2
+ [
3
+ "jsoncc",
4
+ ["jsonc"],
5
+ ],
6
+ [
7
+ "jsonc",
8
+ ["json"],
9
+ ],
10
+ [
11
+ "mocha",
12
+ ["ts"],
13
+ ],
14
+ [
15
+ "svelte",
16
+ ["ts"],
17
+ ],
18
+ [
19
+ "ts",
20
+ ["js"],
21
+ ],
7
22
  ];
8
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/scope/tree/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAGX;IACJ,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAU;IAC9B,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAU;IAC5B,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAU;IAC1B,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAU;IAC3B,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAU;CACxB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/scope/tree/index.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,OAAO;QACP,CAAC,IAAI,CAAC;KACE;IACV;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACE;IACV;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACE;CACX,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": "@eslinted/core",
6
- "version": "19.0.2-rc.0",
6
+ "version": "19.0.2",
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
8
8
  "private": false,
9
9
  "engineStrict": true,
@@ -1,24 +1,24 @@
1
1
  import globals from "globals";
2
- import { Manifests } from "./register";
3
2
  import type { Input } from "../interface";
4
- import type {
5
- scopes,
6
- tree as Tree,
7
- Dependencies,
8
- } from "../scope";
3
+ import type * as Model from "./model";
9
4
 
10
- export class Factory {
5
+ export class Factory<
6
+ Plugin extends string,
7
+ Parser extends string,
8
+ Scope extends string,
9
+ > {
11
10
  public global;
12
11
  public scopes;
13
12
 
14
13
  constructor(
15
- tree: typeof Tree,
16
- public parsers: Input<Dependencies.Plugins, Dependencies.Parsers, typeof scopes[number]>["imports"]["parsers"],
17
- defaults: Input<Dependencies.Plugins, Dependencies.Parsers, typeof scopes[number]>["configuration"]["defaults"],
14
+ tree: Model.ITree<Scope>,
15
+ private readonly registry: Record<Scope, Model.IManifest<Parser>>,
16
+ public parsers: Record<Parser, unknown>,
17
+ defaults: Input<Plugin, Parser, Scope>["configuration"]["defaults"],
18
18
  {
19
19
  "*": globalExtension = {},
20
20
  ...scopeExtensions
21
- }: Input<Dependencies.Plugins, Dependencies.Parsers, typeof scopes[number]>["configuration"]["extensions"] = {},
21
+ }: Input<Plugin, Parser, Scope>["configuration"]["extensions"] = {},
22
22
  ) {
23
23
  const {
24
24
  noInlineConfig = defaults
@@ -33,6 +33,8 @@ export class Factory {
33
33
  ecmaVersion = defaults
34
34
  .settings
35
35
  .ecmaVersion,
36
+ } = globalExtension,
37
+ {
36
38
  ignores = [],
37
39
  override = false,
38
40
  } = globalExtension;
@@ -127,7 +129,7 @@ export class Factory {
127
129
  ] as const;
128
130
  }
129
131
 
130
- public scope(scope: typeof scopes[number]) {
132
+ public scope(scope: Scope) {
131
133
  const {
132
134
  files: {
133
135
  [scope]: files,
@@ -169,7 +171,7 @@ export class Factory {
169
171
  },
170
172
  processor = null,
171
173
  language = null,
172
- } = Manifests[scope];
174
+ } = this.registry[scope];
173
175
 
174
176
  return files.length === 0
175
177
  ? []
@@ -0,0 +1,2 @@
1
+ export type { IManifest } from "./manifest";
2
+ export type { ITree } from "./tree";
@@ -1,11 +1,9 @@
1
- import type { Dependencies } from "../../../scope";
2
-
3
- export interface IManifest {
1
+ export interface IManifest<Parser> {
4
2
  languageOptions: {
5
3
  [property: string]: unknown;
6
4
  parser:
7
5
  | null
8
- | Dependencies.Parsers
6
+ | Parser
9
7
  ;
10
8
  globals:
11
9
  | null
@@ -16,7 +14,7 @@ export interface IManifest {
16
14
  [property: string]: unknown;
17
15
  parser:
18
16
  | null
19
- | Dependencies.Parsers
17
+ | Parser
20
18
  ;
21
19
  };
22
20
  language?: string;
@@ -0,0 +1,8 @@
1
+ export type ITree<
2
+ Scope extends string,
3
+ > = Array<
4
+ readonly [
5
+ Scope,
6
+ readonly Scope[],
7
+ ]
8
+ >;
package/src/index.ts CHANGED
@@ -2,13 +2,19 @@ import { Factory } from "./factory";
2
2
  import {
3
3
  scopes,
4
4
  tree,
5
+ registry,
6
+ } from "./scope";
7
+ import type {
8
+ Plugin,
9
+ Parser,
5
10
  } from "./scope";
6
- import type { Dependencies } from "./scope";
7
11
  import type {
8
12
  Input,
9
13
  Output,
10
14
  } from "./interface";
11
15
 
16
+ type Scope = typeof scopes[number];
17
+
12
18
  export default function (
13
19
  {
14
20
  imports: {
@@ -20,14 +26,19 @@ export default function (
20
26
  extensions,
21
27
  },
22
28
  }: Input<
23
- Dependencies.Plugins,
24
- Dependencies.Parsers,
25
- typeof scopes[number]
29
+ Plugin,
30
+ Parser,
31
+ Scope
26
32
  >,
27
33
  ) {
28
34
  try {
29
- const factory = new Factory(
35
+ const factory = new Factory<
36
+ Plugin,
37
+ Parser,
38
+ Scope
39
+ >(
30
40
  tree,
41
+ registry,
31
42
  parsers,
32
43
  defaults,
33
44
  extensions,
@@ -1,13 +1,13 @@
1
1
  export interface Imports<
2
- Plugins extends string,
3
- Parsers extends string,
2
+ Plugin extends string,
3
+ Parser extends string,
4
4
  > {
5
5
  plugins: Record<
6
- Plugins,
6
+ Plugin,
7
7
  unknown
8
8
  >;
9
9
  parsers: Record<
10
- Parsers,
10
+ Parser,
11
11
  unknown
12
12
  >;
13
13
  }
@@ -2,13 +2,13 @@ import type { Imports } from "./imports";
2
2
  import type { Configuration } from "./configuration";
3
3
 
4
4
  export interface Input<
5
- Plugins extends string,
6
- Parsers extends string,
5
+ Plugin extends string,
6
+ Parser extends string,
7
7
  Scope extends string,
8
8
  > {
9
9
  imports: Imports<
10
- Plugins,
11
- Parsers
10
+ Plugin,
11
+ Parser
12
12
  >;
13
13
  configuration: Configuration<
14
14
  Scope
@@ -1,2 +1,2 @@
1
- export type { Plugins } from "./plugins";
2
- export type { Parsers } from "./parsers";
1
+ export type { Plugin } from "./plugins";
2
+ export type { Parser } from "./parsers";
@@ -1,4 +1,4 @@
1
- export type Parsers = (
1
+ export type Parser = (
2
2
  | "ts"
3
3
  | "svelte"
4
4
  | "html"
@@ -1,4 +1,4 @@
1
- export type Plugins = (
1
+ export type Plugin = (
2
2
  | "@stylistic"
3
3
  | "@typescript-eslint"
4
4
  | "mocha"
@@ -1,5 +1,9 @@
1
- export type * as Dependencies from "./dependencies";
1
+ export type {
2
+ Plugin,
3
+ Parser,
4
+ } from "./dependencies";
2
5
  export { tree } from "./tree";
6
+ export { registry } from "./registry";
3
7
  export const scopes = [
4
8
  "js",
5
9
  "ts",
@@ -9,7 +9,7 @@ import { jsonc } from "./manifests/jsonc";
9
9
  import { jsoncc } from "./manifests/jsoncc";
10
10
  import { yml } from "./manifests/yml";
11
11
 
12
- export const Manifests = {
12
+ export const registry = {
13
13
  js,
14
14
  ts,
15
15
  mocha,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const css: IManifest = {
1
+ export const css = {
4
2
  languageOptions: {
5
3
  parser: null,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const html: IManifest = {
1
+ export const html = {
4
2
  languageOptions: {
5
3
  parser: "html" as const,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const js: IManifest = {
1
+ export const js = {
4
2
  languageOptions: {
5
3
  parser: null,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const json: IManifest = {
1
+ export const json = {
4
2
  languageOptions: {
5
3
  parser: null,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const jsonc: IManifest = {
1
+ export const jsonc = {
4
2
  languageOptions: {
5
3
  parser: null,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const jsoncc: IManifest = {
1
+ export const jsoncc = {
4
2
  languageOptions: {
5
3
  parser: null,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const mocha: IManifest = {
1
+ export const mocha = {
4
2
  languageOptions: {
5
3
  parser: null,
6
4
  globals: "mocha" as const,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const svelte: IManifest = {
1
+ export const svelte = {
4
2
  languageOptions: {
5
3
  parser: "svelte" as const,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const ts: IManifest = {
1
+ export const ts = {
4
2
  languageOptions: {
5
3
  parser: "ts" as const,
6
4
  globals: null,
@@ -1,6 +1,4 @@
1
- import type { IManifest } from "./manifest";
2
-
3
- export const yml: IManifest = {
1
+ export const yml = {
4
2
  languageOptions: {
5
3
  parser: "yml" as const,
6
4
  globals: null,
@@ -1,12 +1,22 @@
1
- import type { scopes } from "..";
2
-
3
- export const tree: [
4
- typeof scopes[number],
5
- typeof scopes[number][],
6
- ][] = [
7
- ["jsoncc", ["jsonc"]] as const,
8
- ["jsonc", ["json"]] as const,
9
- ["mocha", ["ts"]] as const,
10
- ["svelte", ["ts"]] as const,
11
- ["ts", ["js"]] as const,
1
+ export const tree = [
2
+ [
3
+ "jsoncc",
4
+ ["jsonc"],
5
+ ] as const,
6
+ [
7
+ "jsonc",
8
+ ["json"],
9
+ ] as const,
10
+ [
11
+ "mocha",
12
+ ["ts"],
13
+ ] as const,
14
+ [
15
+ "svelte",
16
+ ["ts"],
17
+ ] as const,
18
+ [
19
+ "ts",
20
+ ["js"],
21
+ ] as const,
12
22
  ];
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const css: IManifest;
3
- //# sourceMappingURL=css.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/css.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,GAAG,EAAE,SAWjB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"css.js","sourceRoot":"","sources":["../../../src/factory/manifests/css.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAc;IAC5B,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,KAAK;KAChB;IACD,aAAa,EAAE;QACb,oGAAoG;QACpG,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const html: IManifest;
3
- //# sourceMappingURL=html.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/html.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,IAAI,EAAE,SAUlB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/factory/manifests/html.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAc;IAC7B,eAAe,EAAE;QACf,MAAM,EAAE,MAAe;QACvB,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,IAAI,CAAC,qFAAqF;KACxG;IACD,QAAQ,EAAE,mBAAmB;CAC9B,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const js: IManifest;
3
- //# sourceMappingURL=js.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/js.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,EAAE,EAAE,SAQhB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/factory/manifests/js.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAc;IAC3B,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const json: IManifest;
3
- //# sourceMappingURL=json.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,IAAI,EAAE,SAUlB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/factory/manifests/json.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAc;IAC7B,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,mBAAmB,EAAE,IAAI;KAC1B;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE,YAAY;CACvB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const jsonc: IManifest;
3
- //# sourceMappingURL=jsonc.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,KAAK,EAAE,SASnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/manifests/jsonc.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAc;IAC9B,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE,YAAY;CACvB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const jsoncc: IManifest;
3
- //# sourceMappingURL=jsoncc.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsoncc.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/jsoncc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,SASpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsoncc.js","sourceRoot":"","sources":["../../../src/factory/manifests/jsoncc.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAc;IAC/B,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAI;KACb;IACD,QAAQ,EAAE,YAAY;CACvB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const mocha: IManifest;
3
- //# sourceMappingURL=mocha.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,KAAK,EAAE,SAmBnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/factory/manifests/mocha.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,KAAK,GAAc;IAC9B,eAAe,EAAE;QACf,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,OAAgB;KAC1B;IACD,aAAa,EAAE;QACb,yEAAyE;QACzE,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE;YACZ,GAAG,EAAE,KAAK;YACV,YAAY,EAAE,IAAI;SACnB;QACD,gBAAgB,EAAE,MAAM,CAAC,+DAA+D;QACxF,cAAc,EAAE,IAAI,CAAC,iKAAiK;QACtL,uQAAuQ;QACvQ,kCAAkC,EAAE,KAAK;QACzC,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KAClB;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const svelte: IManifest;
3
- //# sourceMappingURL=svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,MAAM,EAAE,SAoBpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/manifests/svelte.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAc;IAC/B,eAAe,EAAE;QACf,MAAM,EAAE,QAAiB;QACzB,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,MAAM,EAAE,IAAa;QACrB,mBAAmB,EAAE,CAAC,SAAS,CAAC;QAChC,YAAY,EAAE;YACZ,GAAG,EAAE,KAAK;YACV,YAAY,EAAE,IAAI;SACnB;QACD,gBAAgB,EAAE,MAAM,CAAC,+DAA+D;QACxF,cAAc,EAAE,IAAI,CAAC,iKAAiK;QACtL,uQAAuQ;QACvQ,kCAAkC,EAAE,KAAK;QACzC,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KAClB;IACD,SAAS,EAAE,eAAe;CAC3B,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const ts: IManifest;
3
- //# sourceMappingURL=ts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/ts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,EAAE,EAAE,SAoBhB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/manifests/ts.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAc;IAC3B,eAAe,EAAE;QACf,MAAM,EAAE,IAAa;QACrB,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,mEAAmE;QACnE,8EAA8E;QAC9E,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE;YACZ,GAAG,EAAE,KAAK;YACV,YAAY,EAAE,IAAI;SACnB;QACD,gBAAgB,EAAE,MAAM,CAAC,+DAA+D;QACxF,cAAc,EAAE,IAAI,CAAC,iKAAiK;QACtL,uQAAuQ;QACvQ,kCAAkC,EAAE,KAAK;QACzC,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KAClB;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IManifest } from "./manifest";
2
- export declare const yml: IManifest;
3
- //# sourceMappingURL=yml.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/manifests/yml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,GAAG,EAAE,SAUjB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/manifests/yml.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAc;IAC5B,eAAe,EAAE;QACf,MAAM,EAAE,KAAc;QACtB,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,oGAAoG;QACpG,MAAM,EAAE,IAAI;QACZ,kBAAkB,EAAE,KAAK,CAAC,6BAA6B;KACxD;CACF,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const Manifests: {
2
- js: import("./manifests/manifest").IManifest;
3
- ts: import("./manifests/manifest").IManifest;
4
- mocha: import("./manifests/manifest").IManifest;
5
- svelte: import("./manifests/manifest").IManifest;
6
- html: import("./manifests/manifest").IManifest;
7
- css: import("./manifests/manifest").IManifest;
8
- json: import("./manifests/manifest").IManifest;
9
- jsonc: import("./manifests/manifest").IManifest;
10
- jsoncc: import("./manifests/manifest").IManifest;
11
- yml: import("./manifests/manifest").IManifest;
12
- };
13
- //# sourceMappingURL=register.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/factory/register.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../../src/factory/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,MAAM;IACN,GAAG;CACJ,CAAC"}