@eslinted/core 3.1.4 → 3.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/index.d.ts +4 -3
- package/dist/boundary/index.d.ts.map +1 -1
- package/dist/boundary/input/index.d.ts +11 -3
- package/dist/boundary/input/index.d.ts.map +1 -1
- package/dist/boundary/output/config/index.d.ts +3 -1
- package/dist/boundary/output/config/index.d.ts.map +1 -1
- package/dist/boundary/output/config/option/index.d.ts +14 -0
- package/dist/boundary/output/config/option/index.d.ts.map +1 -0
- package/dist/boundary/output/config/option/index.js +2 -0
- package/dist/boundary/output/config/option/index.js.map +1 -0
- package/dist/boundary/output/config/option/language/ecma/index.d.ts +3 -0
- package/dist/boundary/output/config/option/language/ecma/index.d.ts.map +1 -0
- package/dist/boundary/output/config/option/language/ecma/index.js +2 -0
- package/dist/boundary/output/config/option/language/ecma/index.js.map +1 -0
- package/dist/boundary/output/config/option/language/index.d.ts +15 -0
- package/dist/boundary/output/config/option/language/index.d.ts.map +1 -0
- package/dist/boundary/output/config/option/language/index.js +2 -0
- package/dist/boundary/output/config/option/language/index.js.map +1 -0
- package/dist/boundary/output/config/option/language/source/index.d.ts +3 -0
- package/dist/boundary/output/config/option/language/source/index.d.ts.map +1 -0
- package/dist/boundary/output/config/option/language/source/index.js +2 -0
- package/dist/boundary/output/config/option/language/source/index.js.map +1 -0
- package/dist/boundary/output/config/option/linter/index.d.ts +5 -0
- package/dist/boundary/output/config/option/linter/index.d.ts.map +1 -0
- package/dist/boundary/output/config/option/linter/index.js +2 -0
- package/dist/boundary/output/config/option/linter/index.js.map +1 -0
- package/dist/boundary/output/config/option/plugins/index.d.ts +5 -0
- package/dist/boundary/output/config/option/plugins/index.d.ts.map +1 -0
- package/dist/boundary/output/config/option/plugins/index.js +2 -0
- package/dist/boundary/output/config/option/plugins/index.js.map +1 -0
- package/dist/boundary/output/index.d.ts +1 -1
- package/dist/boundary/output/index.d.ts.map +1 -1
- package/dist/factory/options/option/index.d.ts +3 -3
- package/dist/factory/options/option/index.d.ts.map +1 -1
- package/dist/factory/options/option/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/boundary/index.ts +5 -3
- package/src/boundary/input/index.ts +20 -3
- package/src/boundary/output/config/index.ts +4 -1
- package/src/boundary/output/config/option/index.ts +24 -0
- package/src/boundary/output/config/option/language/ecma/index.ts +3 -0
- package/src/boundary/output/config/option/language/{index.d.ts → index.ts} +7 -2
- package/src/boundary/output/config/option/language/source/index.ts +3 -0
- package/src/boundary/output/config/option/linter/{index.d.ts → index.ts} +1 -1
- package/src/boundary/output/config/option/plugins/index.ts +3 -0
- package/src/boundary/output/index.ts +1 -1
- package/src/factory/options/option/index.ts +3 -3
- package/src/index.ts +2 -2
- package/src/boundary/output/config/option/index.d.ts +0 -17
- package/src/boundary/output/config/option/language/ecma/index.d.ts +0 -1
- package/src/boundary/output/config/option/language/source/index.d.ts +0 -3
- package/src/boundary/output/config/option/plugins/index.d.ts +0 -1
- package/src/boundary/output/config/option/processor/index.d.ts +0 -1
package/dist/boundary/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import type
|
2
|
-
|
3
|
-
|
1
|
+
import type * as Input from "./input/index.js";
|
2
|
+
import type * as Output from "./output/index.js";
|
3
|
+
type Output = Output.Config;
|
4
|
+
export type { Input, Output };
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/boundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/boundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAEjD,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAE5B,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC"}
|
@@ -1,6 +1,14 @@
|
|
1
1
|
import type Plugins from "./plugins/index.js";
|
2
2
|
import type Parsers from "./parsers/index.js";
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
import type * as Files from "./files/index.js";
|
4
|
+
import type * as Rules from "./rules/index.js";
|
5
|
+
type Files = Files.Files;
|
6
|
+
type Rules = Rules.Rules;
|
7
|
+
interface Input {
|
8
|
+
files: Files;
|
9
|
+
rules: Rules;
|
10
|
+
plugins: Plugins;
|
11
|
+
parsers: Parsers;
|
12
|
+
}
|
13
|
+
export type { Files, Rules, Plugins, Parsers, Input, Input as default, };
|
6
14
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAE/C,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AACzB,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AAEzB,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,YAAY,EACV,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,IAAI,OAAO,GACjB,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { Rules } from "../../input/index.js";
|
2
|
-
|
2
|
+
import type * as Config from "./option/index.js";
|
3
|
+
interface Config {
|
3
4
|
name: `linted/scope:${string}/rule:${string}+${string}`;
|
4
5
|
rules: Rules.Preset.Entry.Object;
|
5
6
|
files: readonly string[];
|
@@ -17,4 +18,5 @@ export default interface Config {
|
|
17
18
|
plugins: Record<string, Record<"configs", unknown>>;
|
18
19
|
processor?: string;
|
19
20
|
}
|
21
|
+
export type { Config, Config as default };
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAEjD,UAAU,MAAM;IACd,IAAI,EAAE,gBAAgB,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACxD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IACjC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type Language from "./language/index.js";
|
2
|
+
import type Linter from "./linter/index.js";
|
3
|
+
import type Plugins from "./plugins/index.js";
|
4
|
+
type IOption<PluginId extends string, IsEcma extends boolean, ParserOptions extends boolean | object, GlobalTypes extends string, Processor extends object> = {
|
5
|
+
linterOptions: Linter;
|
6
|
+
} & {
|
7
|
+
languageOptions: Language<IsEcma, ParserOptions, GlobalTypes>;
|
8
|
+
} & (Plugins<PluginId> extends never ? object : {
|
9
|
+
plugins: Plugins<PluginId>;
|
10
|
+
}) & (Interface<Processor> extends never ? object : Interface<Processor> extends {
|
11
|
+
processor: string;
|
12
|
+
} ? Interface<Processor> : object);
|
13
|
+
export type { Plugins, Linter, Language, IOption, IOption as default, };
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/output/config/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,KAAK,OAAO,CACV,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,OAAO,GAAG,MAAM,EACtC,WAAW,SAAS,MAAM,EAC1B,SAAS,SAAS,MAAM,IAEtB;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,eAAe,EAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,CAAC,CAAA;CAAE,GACjE,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,CAAC,GAC3E,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,SAAS;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,CACrI;AAED,YAAY,EACV,OAAO,EACP,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,IAAI,OAAO,GACnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/boundary/output/config/option/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/output/config/option/language/ecma/index.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,GAAG,QAAQ,CAAC;AAErB,YAAY,EAAE,IAAI,EAAE,IAAI,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/boundary/output/config/option/language/ecma/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type Ecma from "./ecma/index.js";
|
2
|
+
import type Source from "./source/index.js";
|
3
|
+
type Language<IsEcma extends boolean, ParserOptions extends object | boolean, GlobalTypes extends string> = (True<IsEcma> extends never ? object : {
|
4
|
+
ecmaVersion: Ecma;
|
5
|
+
sourceType: Source;
|
6
|
+
}) & (literalful<GlobalTypes> extends never ? object : {
|
7
|
+
globals: Record<string, unknown>;
|
8
|
+
}) & (ParserOptions extends boolean ? True<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
|
+
export type { Language, Language as default };
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/output/config/option/language/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,KAAK,QAAQ,CACX,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,MAAM,IAEzB,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,WAAW,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GACjF,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,IAAI,CAAC,aAAa,CAAC,SAAS,KAAK,GAC/B,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;AAEJ,YAAY,EAAE,QAAQ,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/boundary/output/config/option/language/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/output/config/option/language/source/index.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElC,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/boundary/output/config/option/language/source/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/output/config/option/linter/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,MAAM;IAC7B,cAAc,EAAE,IAAI,CAAC;IACrB,6BAA6B,EAAE,OAAO,CAAC;CACxC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/boundary/output/config/option/linter/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/output/config/option/plugins/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,CAAC,QAAQ,SAAS,MAAM,IAAI,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAE3F,YAAY,EAAE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/boundary/output/config/option/plugins/index.ts"],"names":[],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
@@ -6,15 +6,15 @@ import type { Output } from "../../../boundary/index.js";
|
|
6
6
|
export default abstract class Option<S extends Scope, PluginId extends Plugins, IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, GlobalTypes extends keyof typeof globals = never, Processor extends object = never> {
|
7
7
|
readonly files: readonly string[];
|
8
8
|
readonly ruleset: Ruleset<S>;
|
9
|
-
readonly plugins:
|
9
|
+
readonly plugins: Output.Config.Plugins<PluginId>;
|
10
10
|
readonly parser: Tuple<unknown, ParserCount>;
|
11
11
|
private readonly linterOptions;
|
12
12
|
abstract readonly scope: literalful<S>;
|
13
13
|
abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
|
14
|
-
constructor(files: readonly string[], ruleset: Ruleset<S>, plugins:
|
14
|
+
constructor(files: readonly string[], ruleset: Ruleset<S>, plugins: Output.Config.Plugins<PluginId>, parser: Tuple<unknown, ParserCount>);
|
15
15
|
get configs(): Output[];
|
16
16
|
private get option();
|
17
|
-
protected abstract get languageOptions():
|
17
|
+
protected abstract get languageOptions(): Output.Config.Language<IsEcma, ParserOptions, GlobalTypes>;
|
18
18
|
protected globals(type: GlobalTypes): {
|
19
19
|
readonly amd: {
|
20
20
|
readonly define: false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MA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AAI,KAAK,CAAC,+BAA+B,IAAI,CAAC,KAAK,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACpG,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,OAAO;gBACP,aAAa;gBACb,eAAe;gBACf,GAAG,SAAS;aAOb,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,+BAA+B,IAAI,CAAC,KAAK,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACnG,CAAC;IAIS,OAAO,CAAC,IAAiB;QACjC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import type * as Boundary from "./boundary/index.js";
|
2
2
|
export type { Boundary };
|
3
|
-
export default function (plugins: Boundary.Input.Plugins, parsers: Boundary.Input.Parsers, files: Boundary.Input.Files
|
3
|
+
export default function (plugins: Boundary.Input.Plugins, parsers: Boundary.Input.Parsers, files: Boundary.Input.Files, rules: Boundary.Input.Rules): Boundary.Output[];
|
4
4
|
//# 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":"AACA,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAGrD,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAGrD,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,GAC1B,QAAQ,CAAC,MAAM,EAAE,CAoFnB"}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9D,MAAM,CAAC,OAAO,WACZ,OAA+B,EAC/B,OAA+B,EAC/B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9D,MAAM,CAAC,OAAO,WACZ,OAA+B,EAC/B,OAA+B,EAC/B,KAA2B,EAC3B,KAA2B;IAE3B,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,EAC1B,CAAC,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,EACvB,EAAE,GAAkE;YAClE,EAAE,EAAE,EAAW;YACf,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CA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CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,EACtC,EAAE,CAAC,EAAE,CACN,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
package/src/boundary/index.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
import type
|
1
|
+
import type * as Input from "./input/index.js";
|
2
|
+
import type * as Output from "./output/index.js";
|
2
3
|
|
3
|
-
|
4
|
-
|
4
|
+
type Output = Output.Config;
|
5
|
+
|
6
|
+
export type { Input, Output };
|
@@ -1,6 +1,23 @@
|
|
1
1
|
import type Plugins from "./plugins/index.js";
|
2
2
|
import type Parsers from "./parsers/index.js";
|
3
|
+
import type * as Files from "./files/index.js";
|
4
|
+
import type * as Rules from "./rules/index.js";
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
-
|
6
|
+
type Files = Files.Files;
|
7
|
+
type Rules = Rules.Rules;
|
8
|
+
|
9
|
+
interface Input {
|
10
|
+
files: Files;
|
11
|
+
rules: Rules;
|
12
|
+
plugins: Plugins;
|
13
|
+
parsers: Parsers;
|
14
|
+
}
|
15
|
+
|
16
|
+
export type {
|
17
|
+
Files,
|
18
|
+
Rules,
|
19
|
+
Plugins,
|
20
|
+
Parsers,
|
21
|
+
Input,
|
22
|
+
Input as default,
|
23
|
+
};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { Rules } from "../../input/index.js";
|
2
|
+
import type * as Config from "./option/index.js";
|
2
3
|
|
3
|
-
|
4
|
+
interface Config {
|
4
5
|
name: `linted/scope:${string}/rule:${string}+${string}`;
|
5
6
|
rules: Rules.Preset.Entry.Object;
|
6
7
|
files: readonly string[];
|
@@ -20,3 +21,5 @@ export default interface Config {
|
|
20
21
|
plugins: Record<string, Record<"configs", unknown>>;
|
21
22
|
processor?: string;
|
22
23
|
}
|
24
|
+
|
25
|
+
export type { Config, Config as default };
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type Language from "./language/index.js";
|
2
|
+
import type Linter from "./linter/index.js";
|
3
|
+
import type Plugins from "./plugins/index.js";
|
4
|
+
|
5
|
+
type IOption<
|
6
|
+
PluginId extends string,
|
7
|
+
IsEcma extends boolean,
|
8
|
+
ParserOptions extends boolean | object,
|
9
|
+
GlobalTypes extends string,
|
10
|
+
Processor extends object,
|
11
|
+
> =
|
12
|
+
& { linterOptions: Linter }
|
13
|
+
& { languageOptions: Language<IsEcma, ParserOptions, GlobalTypes> }
|
14
|
+
& (Plugins<PluginId> extends never ? object : { plugins: Plugins<PluginId> })
|
15
|
+
& (Interface<Processor> extends never ? object : Interface<Processor> extends { processor: string } ? Interface<Processor> : object)
|
16
|
+
;
|
17
|
+
|
18
|
+
export type {
|
19
|
+
Plugins,
|
20
|
+
Linter,
|
21
|
+
Language,
|
22
|
+
IOption,
|
23
|
+
IOption as default,
|
24
|
+
};
|
@@ -1,9 +1,12 @@
|
|
1
|
-
|
1
|
+
import type Ecma from "./ecma/index.js";
|
2
|
+
import type Source from "./source/index.js";
|
3
|
+
|
4
|
+
type Language<
|
2
5
|
IsEcma extends boolean,
|
3
6
|
ParserOptions extends object | boolean,
|
4
7
|
GlobalTypes extends string,
|
5
8
|
> =
|
6
|
-
& (True<IsEcma> extends never ? object : { ecmaVersion:
|
9
|
+
& (True<IsEcma> extends never ? object : { ecmaVersion: Ecma; sourceType: Source })
|
7
10
|
& (literalful<GlobalTypes> extends never ? object : { globals: Record<string, unknown> })
|
8
11
|
& (
|
9
12
|
ParserOptions extends boolean
|
@@ -16,3 +19,5 @@ declare type IOLanguage<
|
|
16
19
|
: { parser: unknown; parserOptions: ParserOptions }
|
17
20
|
: object
|
18
21
|
);
|
22
|
+
|
23
|
+
export type { Language, Language as default };
|
@@ -25,7 +25,7 @@ export default abstract class Option<
|
|
25
25
|
constructor(
|
26
26
|
public readonly files: readonly string[],
|
27
27
|
public readonly ruleset: Ruleset<S>,
|
28
|
-
public readonly plugins:
|
28
|
+
public readonly plugins: Output.Config.Plugins<PluginId>,
|
29
29
|
public readonly parser: Tuple<unknown, ParserCount>,
|
30
30
|
) {}
|
31
31
|
|
@@ -74,7 +74,7 @@ export default abstract class Option<
|
|
74
74
|
linterOptions,
|
75
75
|
languageOptions,
|
76
76
|
...processor,
|
77
|
-
} satisfies IOption<
|
77
|
+
} satisfies Output.Config.IOption<
|
78
78
|
PluginId,
|
79
79
|
IsEcma,
|
80
80
|
ParserOptions,
|
@@ -85,7 +85,7 @@ export default abstract class Option<
|
|
85
85
|
catch (e) { throw new Error(`linted.factory.Option/scope:${this.scope}: option`, { cause: e }); }
|
86
86
|
}
|
87
87
|
|
88
|
-
protected abstract get languageOptions():
|
88
|
+
protected abstract get languageOptions(): Output.Config.Language<IsEcma, ParserOptions, GlobalTypes>;
|
89
89
|
|
90
90
|
protected globals(type: GlobalTypes) {
|
91
91
|
return globals[type];
|
package/src/index.ts
CHANGED
@@ -6,8 +6,8 @@ export type { Boundary };
|
|
6
6
|
export default function (
|
7
7
|
plugins: Boundary.Input.Plugins,
|
8
8
|
parsers: Boundary.Input.Parsers,
|
9
|
-
files: Boundary.Input.Files
|
10
|
-
rules: Boundary.Input.Rules
|
9
|
+
files: Boundary.Input.Files,
|
10
|
+
rules: Boundary.Input.Rules,
|
11
11
|
): Boundary.Output[] {
|
12
12
|
try {
|
13
13
|
const F = new Files(files),
|
@@ -1,17 +0,0 @@
|
|
1
|
-
declare type IOption<
|
2
|
-
PluginId extends string,
|
3
|
-
IsEcma extends boolean,
|
4
|
-
ParserOptions extends object | boolean,
|
5
|
-
GlobalTypes extends string,
|
6
|
-
Processor extends object,
|
7
|
-
> =
|
8
|
-
{
|
9
|
-
linterOptions: IOLinter;
|
10
|
-
languageOptions: IOLanguage<
|
11
|
-
IsEcma,
|
12
|
-
ParserOptions,
|
13
|
-
GlobalTypes
|
14
|
-
>;
|
15
|
-
}
|
16
|
-
& (IOPlugins<PluginId> extends never ? object : { plugins: IOPlugins<PluginId> })
|
17
|
-
& (Interface<Processor> extends never ? object : Interface<Processor> extends { "interface": string } ? Interface<Processor> : object);
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type IOLanguageEcma = "latest";
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type IOPlugins<PluginId extends string> = Record<literalful<PluginId>, { configs: unknown }>;
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type IOProcessor<ProcessorId extends string> = literalful<ProcessorId>;
|