@eslinted/core 4.0.0-rc.2 → 4.0.0
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 +13 -13
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +17 -17
package/dist/index.d.ts
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
import type { Scope } from "./scopes/index.js";
|
2
|
-
import type * as
|
3
|
-
export default function (plugins:
|
4
|
-
declare namespace
|
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 Core {
|
5
5
|
type Scopes = Scope;
|
6
6
|
namespace Input {
|
7
|
-
type Parsers =
|
8
|
-
type Plugins =
|
9
|
-
type Files =
|
7
|
+
type Parsers = core.Input.Parsers;
|
8
|
+
type Plugins = core.Input.Plugins;
|
9
|
+
type Files = core.Input.Files;
|
10
10
|
namespace Files {
|
11
|
-
type Base =
|
12
|
-
type Includes =
|
11
|
+
type Base = core.Input.Files.FileBase;
|
12
|
+
type Includes = core.Input.Files.Includes;
|
13
13
|
}
|
14
|
-
type Rules =
|
14
|
+
type Rules = core.Input.Rules;
|
15
15
|
namespace Rules {
|
16
|
-
type Base =
|
17
|
-
type Overrides =
|
16
|
+
type Base = core.Input.Rules.RuleBase;
|
17
|
+
type Overrides = core.Input.Rules.Overrides;
|
18
18
|
}
|
19
19
|
}
|
20
|
-
type Output =
|
20
|
+
type Output = core.Output[];
|
21
21
|
}
|
22
|
-
export type {
|
22
|
+
export type { Core };
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CA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AAI,CAAC,KAAK,CAAC,KAAK,CAAC;QACrC,UAAiB,KAAK,CAAC;YACrB,KAAY,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC7C,KAAY,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;SACpD;KACF;IACD,KAAY,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;CACpC;AAED,YAAY,EAAE,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -5,14 +5,14 @@ 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 * as
|
8
|
+
import type * as core from "./boundary/index.js";
|
9
9
|
|
10
10
|
export default function (
|
11
|
-
plugins:
|
12
|
-
parsers:
|
13
|
-
files:
|
14
|
-
rules:
|
15
|
-
):
|
11
|
+
plugins: core.Input.Plugins,
|
12
|
+
parsers: core.Input.Parsers,
|
13
|
+
files: core.Input.Files,
|
14
|
+
rules: core.Input.Rules,
|
15
|
+
): core.Output[] {
|
16
16
|
try {
|
17
17
|
const F = new Files(files),
|
18
18
|
R = new Rulesets(rules),
|
@@ -87,23 +87,23 @@ export default function (
|
|
87
87
|
catch (e) { throw new Error(`linted-core`, { cause: e }); }
|
88
88
|
}
|
89
89
|
|
90
|
-
namespace
|
90
|
+
namespace Core {
|
91
91
|
export type Scopes = Scope;
|
92
92
|
export namespace Input {
|
93
|
-
export type Parsers =
|
94
|
-
export type Plugins =
|
95
|
-
export type Files =
|
93
|
+
export type Parsers = core.Input.Parsers;
|
94
|
+
export type Plugins = core.Input.Plugins;
|
95
|
+
export type Files = core.Input.Files;
|
96
96
|
export namespace Files {
|
97
|
-
export type Base =
|
98
|
-
export type Includes =
|
97
|
+
export type Base = core.Input.Files.FileBase;
|
98
|
+
export type Includes = core.Input.Files.Includes;
|
99
99
|
}
|
100
|
-
export type Rules =
|
100
|
+
export type Rules = core.Input.Rules;
|
101
101
|
export namespace Rules {
|
102
|
-
export type Base =
|
103
|
-
export type Overrides =
|
102
|
+
export type Base = core.Input.Rules.RuleBase;
|
103
|
+
export type Overrides = core.Input.Rules.Overrides;
|
104
104
|
}
|
105
105
|
}
|
106
|
-
export type Output =
|
106
|
+
export type Output = core.Output[];
|
107
107
|
}
|
108
108
|
|
109
|
-
export type {
|
109
|
+
export type { Core };
|