@eslinted/core 4.0.0-rc.0 → 4.0.0-rc.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,23 @@
1
- import type { Input, Output } from "./boundary/index.js";
2
- export type * as LintedCore from "./boundary/index.js";
3
- export default function (plugins: Input.Plugins, parsers: Input.Parsers, files: Input.Files, rules: Input.Rules): Output[];
1
+ import type { Scope } from "./scopes/index.js";
2
+ import type * as Core from "./boundary/index.js";
3
+ export default function (plugins: Core.Input.Plugins, parsers: Core.Input.Parsers, files: Core.Input.Files, rules: Core.Input.Rules): Core.Output[];
4
+ declare namespace LintCore {
5
+ type Scopes = Scope;
6
+ namespace Input {
7
+ type Parsers = Core.Input.Parsers;
8
+ type Plugins = Core.Input.Plugins;
9
+ type Files = Core.Input.Files;
10
+ namespace Files {
11
+ type Base = Core.Input.Files.FileBase;
12
+ type Includes = Core.Input.Files.Includes;
13
+ }
14
+ type Rules = Core.Input.Rules;
15
+ namespace Rules {
16
+ type Base = Core.Input.Rules.RuleBase;
17
+ type Overrides = Core.Input.Rules.Overrides;
18
+ }
19
+ }
20
+ type Output = Core.Output[];
21
+ }
22
+ export type { LintCore };
4
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAEzD,YAAY,KAAK,UAAU,MAAM,qBAAqB,CAAC;AACvD,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,GACjB,MAAM,EAAE,CAyEV"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,K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CAAC,EAChB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAClB,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EACxB,CAAC,OAAO,CAAC,KAAK,CAAC,CAChB,CAAC,OAAO;YACX,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EACd,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAChB,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,CAAC,OAAO,CAAC,GAAG,CAAC,CACd,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,EACtC,CAAC,OAAO,CAAC,EAAE,CAAC,CACb,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.17.8",
3
3
  "name": "@eslinted/core",
4
- "version": "4.0.0-rc.0",
4
+ "version": "4.0.0-rc.2",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -5,19 +5,18 @@ import {
5
5
  } from "./factory/index.js";
6
6
  import scopes from "./scopes/index.js";
7
7
  import type { Scope } from "./scopes/index.js";
8
- import type { Input, Output } from "./boundary/index.js";
8
+ import type * as Core from "./boundary/index.js";
9
9
 
10
- export type * as LintedCore from "./boundary/index.js";
11
10
  export default function (
12
- plugins: Input.Plugins,
13
- parsers: Input.Parsers,
14
- files: Input.Files,
15
- rules: Input.Rules,
16
- ): Output[] {
11
+ plugins: Core.Input.Plugins,
12
+ parsers: Core.Input.Parsers,
13
+ files: Core.Input.Files,
14
+ rules: Core.Input.Rules,
15
+ ): Core.Output[] {
17
16
  try {
18
17
  const F = new Files(files),
19
18
  R = new Rulesets(rules),
20
- options: { [S in Scope]: InstanceType<typeof Options[S]>["configs"] } = {
19
+ options: { [S in typeof scopes[number]]: InstanceType<typeof Options[S]>["configs"] } = {
21
20
  js: new Options
22
21
  .js(
23
22
  F.files("js"),
@@ -87,3 +86,24 @@ export default function (
87
86
  }
88
87
  catch (e) { throw new Error(`linted-core`, { cause: e }); }
89
88
  }
89
+
90
+ namespace LintCore {
91
+ export type Scopes = Scope;
92
+ export namespace Input {
93
+ export type Parsers = Core.Input.Parsers;
94
+ export type Plugins = Core.Input.Plugins;
95
+ export type Files = Core.Input.Files;
96
+ export namespace Files {
97
+ export type Base = Core.Input.Files.FileBase;
98
+ export type Includes = Core.Input.Files.Includes;
99
+ }
100
+ export type Rules = Core.Input.Rules;
101
+ export namespace Rules {
102
+ export type Base = Core.Input.Rules.RuleBase;
103
+ export type Overrides = Core.Input.Rules.Overrides;
104
+ }
105
+ }
106
+ export type Output = Core.Output[];
107
+ }
108
+
109
+ export type { LintCore };