@eslinted/core 11.1.0 → 11.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/index.d.ts +2 -3
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/options/index.d.ts +1 -1
- package/dist/factory/options/index.d.ts.map +1 -1
- package/dist/factory/options/index.js.map +1 -1
- package/dist/factory/options/option/index.d.ts +3 -2
- package/dist/factory/options/option/index.d.ts.map +1 -1
- package/dist/factory/options/option/index.js +1 -0
- package/dist/factory/options/option/index.js.map +1 -1
- package/dist/factory/options/option/template/index.d.ts +0 -1
- package/dist/factory/options/option/template/index.d.ts.map +1 -1
- package/dist/factory/rulesets/index.d.ts +1 -1
- package/dist/factory/rulesets/index.d.ts.map +1 -1
- package/dist/factory/rulesets/index.js.map +1 -1
- package/dist/factory/rulesets/ruleset.d.ts +3 -6
- package/dist/factory/rulesets/ruleset.d.ts.map +1 -1
- package/dist/factory/rulesets/ruleset.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/dist/interface/index.d.ts +4 -0
- package/dist/interface/index.d.ts.map +1 -0
- package/dist/{input/rules → interface}/index.js.map +1 -1
- package/dist/interface/input/imports/index.d.ts +8 -0
- package/dist/interface/input/imports/index.d.ts.map +1 -0
- package/dist/interface/input/imports/index.js.map +1 -0
- package/dist/interface/input/imports/parsers/index.d.ts +4 -0
- package/dist/interface/input/imports/parsers/index.d.ts.map +1 -0
- package/dist/interface/input/imports/parsers/index.js.map +1 -0
- package/dist/interface/input/imports/parsers/parser.d.ts +3 -0
- package/dist/interface/input/imports/parsers/parser.d.ts.map +1 -0
- package/dist/interface/input/imports/parsers/parser.js +2 -0
- package/dist/interface/input/imports/parsers/parser.js.map +1 -0
- package/dist/interface/input/imports/plugins.d.ts +3 -0
- package/dist/interface/input/imports/plugins.d.ts.map +1 -0
- package/dist/interface/input/imports/plugins.js.map +1 -0
- package/dist/interface/input/index.d.ts +5 -0
- package/dist/interface/input/index.d.ts.map +1 -0
- package/dist/interface/input/index.js.map +1 -0
- package/dist/interface/input/user/files/defaults.d.ts +3 -0
- package/dist/interface/input/user/files/defaults.d.ts.map +1 -0
- package/dist/interface/input/user/files/defaults.js +2 -0
- package/dist/interface/input/user/files/defaults.js.map +1 -0
- package/dist/interface/input/user/files/includes.d.ts +3 -0
- package/dist/interface/input/user/files/includes.d.ts.map +1 -0
- package/dist/interface/input/user/files/includes.js +2 -0
- package/dist/interface/input/user/files/includes.js.map +1 -0
- package/dist/interface/input/user/files/index.d.ts +8 -0
- package/dist/interface/input/user/files/index.d.ts.map +1 -0
- package/dist/interface/input/user/files/index.js +2 -0
- package/dist/interface/input/user/files/index.js.map +1 -0
- package/dist/interface/input/user/index.d.ts +8 -0
- package/dist/interface/input/user/index.d.ts.map +1 -0
- package/dist/interface/input/user/index.js +2 -0
- package/dist/interface/input/user/index.js.map +1 -0
- package/dist/interface/input/user/rules/defaults.d.ts +3 -0
- package/dist/interface/input/user/rules/defaults.d.ts.map +1 -0
- package/dist/interface/input/user/rules/defaults.js +2 -0
- package/dist/interface/input/user/rules/defaults.js.map +1 -0
- package/dist/interface/input/user/rules/index.d.ts +8 -0
- package/dist/interface/input/user/rules/index.d.ts.map +1 -0
- package/dist/interface/input/user/rules/index.js +2 -0
- package/dist/interface/input/user/rules/index.js.map +1 -0
- package/dist/interface/input/user/rules/overrides.d.ts +4 -0
- package/dist/interface/input/user/rules/overrides.d.ts.map +1 -0
- package/dist/interface/input/user/rules/overrides.js +2 -0
- package/dist/interface/input/user/rules/overrides.js.map +1 -0
- package/dist/interface/output/global/ignores.d.ts +5 -0
- package/dist/interface/output/global/ignores.d.ts.map +1 -0
- package/dist/interface/output/global/ignores.js +2 -0
- package/dist/interface/output/global/ignores.js.map +1 -0
- package/dist/interface/output/global/index.d.ts +8 -0
- package/dist/interface/output/global/index.d.ts.map +1 -0
- package/dist/interface/output/global/index.js +2 -0
- package/dist/interface/output/global/index.js.map +1 -0
- package/dist/interface/output/global/system.d.ts +14 -0
- package/dist/interface/output/global/system.d.ts.map +1 -0
- package/dist/interface/output/global/system.js +2 -0
- package/dist/interface/output/global/system.js.map +1 -0
- package/dist/interface/output/index.d.ts +8 -0
- package/dist/interface/output/index.d.ts.map +1 -0
- package/dist/interface/output/index.js +2 -0
- package/dist/interface/output/index.js.map +1 -0
- package/dist/interface/output/scoped.d.ts +3 -0
- package/dist/interface/output/scoped.d.ts.map +1 -0
- package/dist/interface/output/scoped.js +2 -0
- package/dist/interface/output/scoped.js.map +1 -0
- package/dist/objects/config/index.d.ts +16 -0
- package/dist/objects/config/index.d.ts.map +1 -0
- package/dist/objects/config/index.js +2 -0
- package/dist/objects/config/index.js.map +1 -0
- package/dist/objects/config/property.d.ts +2 -0
- package/dist/objects/config/property.d.ts.map +1 -0
- package/dist/objects/config/property.js +2 -0
- package/dist/objects/config/property.js.map +1 -0
- package/dist/objects/index.d.ts +4 -0
- package/dist/objects/index.d.ts.map +1 -0
- package/dist/objects/index.js +2 -0
- package/dist/{input → objects}/index.js.map +1 -1
- package/dist/objects/plugins/index.d.ts +5 -0
- package/dist/objects/plugins/index.d.ts.map +1 -0
- package/dist/objects/plugins/index.js +2 -0
- package/dist/objects/plugins/index.js.map +1 -0
- package/dist/objects/plugins/plugin.d.ts +2 -0
- package/dist/objects/plugins/plugin.d.ts.map +1 -0
- package/dist/objects/plugins/plugin.js +2 -0
- package/dist/objects/plugins/plugin.js.map +1 -0
- package/dist/{input/rules/entry → objects/rule}/index.d.ts +2 -4
- package/dist/objects/rule/index.d.ts.map +1 -0
- package/dist/objects/rule/index.js +2 -0
- package/dist/objects/rule/index.js.map +1 -0
- package/dist/{input/rules/entry → objects/rule}/record/index.d.ts +1 -0
- package/dist/objects/rule/record/index.d.ts.map +1 -0
- package/dist/objects/rule/record/index.js +2 -0
- package/dist/objects/rule/record/index.js.map +1 -0
- package/dist/objects/rule/record/state.d.ts.map +1 -0
- package/dist/objects/rule/record/state.js.map +1 -0
- package/dist/{scopes.d.ts → scopes/index.d.ts} +1 -1
- package/dist/scopes/index.d.ts.map +1 -0
- package/dist/{scopes.js → scopes/index.js} +1 -1
- package/dist/scopes/index.js.map +1 -0
- package/dist/scopes/index.spec.d.ts +2 -0
- package/dist/scopes/index.spec.d.ts.map +1 -0
- package/dist/{scopes.spec.js → scopes/index.spec.js} +2 -2
- package/dist/scopes/index.spec.js.map +1 -0
- package/package.json +1 -1
- package/src/factory/index.ts +9 -4
- package/src/factory/options/index.ts +4 -1
- package/src/factory/options/option/index.ts +91 -87
- package/src/factory/options/option/template/index.ts +3 -3
- package/src/factory/rulesets/index.ts +5 -3
- package/src/factory/rulesets/ruleset.ts +7 -4
- package/src/index.ts +31 -16
- package/src/interface/index.ts +9 -0
- package/src/interface/input/imports/index.ts +12 -0
- package/src/interface/input/imports/parsers/index.ts +8 -0
- package/src/{input/imports/parsers.ts → interface/input/imports/parsers/parser.ts} +2 -2
- package/src/interface/input/imports/plugins.ts +3 -0
- package/src/interface/input/index.ts +11 -0
- package/src/interface/input/user/files/defaults.ts +6 -0
- package/src/interface/input/user/files/includes.ts +5 -0
- package/src/interface/input/user/files/index.ts +9 -0
- package/src/interface/input/user/index.ts +13 -0
- package/src/interface/input/user/rules/defaults.ts +9 -0
- package/src/interface/input/user/rules/index.ts +13 -0
- package/src/interface/input/user/rules/overrides.ts +7 -0
- package/src/interface/output/global/ignores.ts +11 -0
- package/src/interface/output/global/index.ts +12 -0
- package/src/interface/output/global/system.ts +48 -0
- package/src/interface/output/index.ts +13 -0
- package/src/interface/output/scoped.ts +3 -0
- package/src/objects/config/index.ts +16 -0
- package/src/objects/config/property.ts +12 -0
- package/src/objects/index.ts +10 -0
- package/src/objects/plugins/index.ts +6 -0
- package/src/{input/imports/plugins.ts → objects/plugins/plugin.ts} +1 -1
- package/src/objects/rule/index.ts +8 -0
- package/src/objects/rule/record/index.ts +7 -0
- package/src/{scopes.spec.ts → scopes/index.spec.ts} +1 -1
- package/dist/input/files.d.ts +0 -6
- package/dist/input/files.d.ts.map +0 -1
- package/dist/input/files.js +0 -2
- package/dist/input/files.js.map +0 -1
- package/dist/input/imports/parsers.d.ts +0 -3
- package/dist/input/imports/parsers.d.ts.map +0 -1
- package/dist/input/imports/parsers.js +0 -2
- package/dist/input/imports/parsers.js.map +0 -1
- package/dist/input/imports/plugins.d.ts +0 -2
- package/dist/input/imports/plugins.d.ts.map +0 -1
- package/dist/input/imports/plugins.js.map +0 -1
- package/dist/input/index.d.ts +0 -22
- package/dist/input/index.d.ts.map +0 -1
- package/dist/input/parsers.d.ts +0 -3
- package/dist/input/parsers.d.ts.map +0 -1
- package/dist/input/parsers.js +0 -2
- package/dist/input/parsers.js.map +0 -1
- package/dist/input/plugins.d.ts +0 -5
- package/dist/input/plugins.d.ts.map +0 -1
- package/dist/input/plugins.js +0 -2
- package/dist/input/plugins.js.map +0 -1
- package/dist/input/rules/entry/index.d.ts.map +0 -1
- package/dist/input/rules/entry/index.js.map +0 -1
- package/dist/input/rules/entry/record/index.d.ts.map +0 -1
- package/dist/input/rules/entry/record/index.js.map +0 -1
- package/dist/input/rules/entry/record/state.d.ts.map +0 -1
- package/dist/input/rules/entry/record/state.js.map +0 -1
- package/dist/input/rules/index.d.ts +0 -14
- package/dist/input/rules/index.d.ts.map +0 -1
- package/dist/output.d.ts +0 -30
- package/dist/output.d.ts.map +0 -1
- package/dist/output.js +0 -2
- package/dist/output.js.map +0 -1
- package/dist/scopes.d.ts.map +0 -1
- package/dist/scopes.js.map +0 -1
- package/dist/scopes.spec.d.ts +0 -2
- package/dist/scopes.spec.d.ts.map +0 -1
- package/dist/scopes.spec.js.map +0 -1
- package/src/input/files.ts +0 -6
- package/src/input/index.ts +0 -23
- package/src/input/parsers.ts +0 -3
- package/src/input/plugins.ts +0 -3
- package/src/input/rules/entry/index.ts +0 -7
- package/src/input/rules/entry/record/index.ts +0 -3
- package/src/input/rules/index.ts +0 -14
- package/src/output.ts +0 -68
- /package/dist/{input → interface}/index.js +0 -0
- /package/dist/{input/rules/entry → interface/input/imports}/index.js +0 -0
- /package/dist/{input/rules/entry/record → interface/input/imports/parsers}/index.js +0 -0
- /package/dist/{input → interface/input}/imports/plugins.js +0 -0
- /package/dist/{input/rules → interface/input}/index.js +0 -0
- /package/dist/{input/rules/entry → objects/rule}/record/state.d.ts +0 -0
- /package/dist/{input/rules/entry → objects/rule}/record/state.js +0 -0
- /package/src/{input/rules/entry → objects/rule}/record/state.ts +0 -0
- /package/src/{scopes.ts → scopes/index.ts} +0 -0
package/dist/factory/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
export type { Scope, Input,
|
2
|
-
import type { Input } from "../index.js";
|
1
|
+
export type { Scope, Input, Config, RuleEntry, RuleRecord, } from "../index.js";
|
3
2
|
import { Files } from "./files.js";
|
4
3
|
import { Rulesets } from "./rulesets/index.js";
|
5
4
|
import Options from "./options/index.js";
|
@@ -7,7 +6,7 @@ export { Options };
|
|
7
6
|
export declare class Factory {
|
8
7
|
readonly files: Files;
|
9
8
|
readonly rulesets: Rulesets;
|
10
|
-
constructor(files:
|
9
|
+
constructor(files: ConstructorParameters<typeof Files>[0], rules: ConstructorParameters<typeof Rulesets>[0]);
|
11
10
|
produce(scope: string): readonly [
|
12
11
|
string[],
|
13
12
|
import("./rulesets/ruleset.js").Ruleset
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,YAAY,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,KAAK,EACL,MAAM,EACN,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,qBAAa,OAAO;IAClB,SAAgB,KAAK,EAAE,KAAK,CAAC;IAC7B,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,KAAK,EAAE,qBAAqB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7C,KAAK,EAAE,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IAM3C,OAAO,CAAC,KAAK,EAAE,MAAM;CAM7B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,MAAM,OAAO,OAAO;IACF,KAAK,CAAQ;IACb,QAAQ,CAAW;IAEnC,YACE,KAA6C,EAC7C,KAAgD;QAEhD,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAEM,OAAO,CAAC,KAAa;QAC1B,OAAO;YACL,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YACvB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC;SACpB,CAAC;IACb,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,YAAY,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,MAAM,GACP,MAAM,IAAI,CAAC;AAEZ,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;;;;;;;;;;;AAExB,wBASW"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import type { Scope, Config } from "../index.js";
|
2
|
+
import type { LanguageOptions, Globals } from "./template/index.js";
|
1
3
|
import type { Ruleset } from "../../rulesets/ruleset.js";
|
2
|
-
import type { Scope, Output, LanguageOptions, Globals } from "./template/index.js";
|
3
4
|
export default abstract class Option<S extends Scope, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, Global extends Globals = never, Processor extends object = never, Language extends object = never> {
|
4
5
|
readonly parser: Tuple<ParserCount, unknown>;
|
5
6
|
readonly files: string[];
|
@@ -8,7 +9,7 @@ export default abstract class Option<S extends Scope, ParserOptions extends obje
|
|
8
9
|
abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
|
9
10
|
abstract readonly language: Interface<Language> extends never ? object : Interface<Language> extends Readonly<Record<"language", string>> ? Interface<Language> : object;
|
10
11
|
constructor(parser: Tuple<ParserCount, unknown>, files: string[], ruleset: Ruleset);
|
11
|
-
get configs():
|
12
|
+
get configs(): Config[];
|
12
13
|
private get option();
|
13
14
|
protected abstract get languageOptions(): LanguageOptions<ParserOptions, Global>;
|
14
15
|
protected globals(type: Global): {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACP,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAEV,eAAe,EACf,OAAO,EACR,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,aAAa,SACX,MAAM,GACN,OAAO,GAAG,KAAK,EACjB,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,MAAM,SAAS,OAAO,GAAG,KAAK,EAC9B,SAAS,SAAS,MAAM,GAAG,KAAK,EAChC,QAAQ,SAAS,MAAM,GAAG,KAAK;aAeb,MAAM,EAAE,KAAK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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAY9B,MAAM,CAAC,OAAO,OAAgB,MAAM;IAuBhB;IACA;IACA;IAHlB,YACkB,MAAmC,EACnC,KAAe,EACf,OAAgB;QAFhB,WAAM,GAAN,MAAM,CAA6B;QACnC,UAAK,GAAL,KAAK,CAAU;QACf,YAAO,GAAP,OAAO,CAAS;IAC/B,CAAC;IAEJ,IAAW,OAAO;QAChB,MAAM,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC;QAET,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK;YACzB,MAAM,IAAI,SAAS,CAAC,2CAA2C,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEzH,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;gBACrC,OAAO;oBACL,IAAI,EAAE,UAAU,EAAE,EAAE;oBACpB,KAAK;oBACL,OAAO,EAAE,EAAE;oBACX,KAAK,EAAE,IAAI;oBACX,GAAG,MAAM;iBACV,CAAC;YACJ,CAAC,CAAC,CAAC;IACP,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,eAAe,EACf,SAAS,EACT,QAAQ,GACT,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,eAAe;gBACf,GAAG,SAAS;gBACZ,GAAG,QAAQ;aAMZ,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,IAAY;QAC5B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,YAAY,EACV,eAAe,EACf,OAAO,GACR,CAAC;AACF,MAAM,MAAM,cAAc,CACxB,aAAa,SACX,OAAO,GACP,MAAM,EACR,WAAW,SAAS,OAAO,EAC3B,SAAS,SAAS,MAAM,EACxB,QAAQ,SAAS,MAAM,IAErB;IACA,eAAe,EAAE,eAAe,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;CAC9D,GACC,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,GAClI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA8B;gBAE3C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;IAQ1B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAMvC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,QAAQ;IACF,QAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;IAEvD,YAAY,KAAqB;QAC/B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EACxC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAA0B,CAAC;QAEpD,KAAK,MAAM,KAAK,IAAI,MAAM;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChF,CAAC;IAEM,OAAO,CAAC,KAAa;QAC1B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC;YAC3B,MAAM,IAAI,cAAc,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAC;QAEpE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAY,CAAC;IAC7C,CAAC;CACF"}
|
@@ -1,13 +1,10 @@
|
|
1
|
-
import type {
|
1
|
+
import type { RuleEntry, RuleRecord } from "./index.js";
|
2
2
|
export declare class Ruleset {
|
3
3
|
readonly scope: string;
|
4
4
|
readonly ruleset: {
|
5
5
|
id: string;
|
6
|
-
rule:
|
6
|
+
rule: RuleRecord;
|
7
7
|
}[];
|
8
|
-
constructor(scope: string, rules:
|
9
|
-
string,
|
10
|
-
Input.Rule.Entry.Record
|
11
|
-
])[], override?: Input.Rule.Entry.Record);
|
8
|
+
constructor(scope: string, rules: RuleEntry[], override?: RuleRecord);
|
12
9
|
}
|
13
10
|
//# sourceMappingURL=ruleset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/rulesets/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/rulesets/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACX,MAAM,GAAG,CAAC;AAEX,qBAAa,OAAO;aAIA,KAAK,EAAE,MAAM;IAH/B,SAAgB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,EAAE,CAAC;gBAG1C,KAAK,EAAE,MAAM,EAC7B,KAAK,EAAE,SAAS,EAAE,EAClB,QAAQ,CAAC,EAAE,UAAU;CAgBxB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../../src/factory/rulesets/ruleset.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../../src/factory/rulesets/ruleset.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,CAAqC;IAE5D,YACkB,KAAa,EAC7B,KAAkB,EAClB,QAAqB;QAFL,UAAK,GAAL,KAAK,CAAQ;QAI7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,CAAuB,EAAE,EAAE;YAC/C,OAAO;gBACL,EAAE,EAAE,GAAG,KAAK,IAAI,EAAE,EAAE;gBACpB,IAAI;aACL,CAAC;QACJ,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC/B,GAAG,OAAO,QAAQ,KAAK,WAAW;gBAChC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC3C,CAAC;IACJ,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export type { Scope } from "./scopes.js";
|
2
|
-
|
3
|
-
import type { Output } from "./
|
4
|
-
export type { Input, Output };
|
1
|
+
export type { Scope } from "./scopes/index.js";
|
2
|
+
export type { Plugins, RuleEntry, RuleRecord, RuleState, Config, ConfigProperty, } from "./objects/index.js";
|
3
|
+
import type { Input, Output } from "./interface/index.js";
|
4
|
+
export type { Input, Output, };
|
5
5
|
export default function (input: Input): Output;
|
6
6
|
//# 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":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,GACf,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,KAAK,EACL,MAAM,GACP,CAAC;AAQF,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAwE7C"}
|
package/dist/index.js
CHANGED
@@ -1,19 +1,8 @@
|
|
1
|
-
import { scopes } from "./scopes.js";
|
1
|
+
import { scopes } from "./scopes/index.js";
|
2
2
|
import { Factory, Options, } from "./factory/index.js";
|
3
3
|
export default function (input) {
|
4
4
|
try {
|
5
|
-
const { plugins, parsers, files, rules, } = input,
|
6
|
-
name: "linted",
|
7
|
-
plugins,
|
8
|
-
linterOptions: {
|
9
|
-
noInlineConfig: true,
|
10
|
-
reportUnusedDisableDirectives: "error",
|
11
|
-
},
|
12
|
-
languageOptions: {
|
13
|
-
sourceType: "module",
|
14
|
-
ecmaVersion: 2023,
|
15
|
-
},
|
16
|
-
}, factory = new Factory(files, rules), options = {
|
5
|
+
const { plugins, parsers, files, rules, } = input, factory = new Factory(files, rules), options = {
|
17
6
|
js: new Options
|
18
7
|
.js([], ...factory.produce("js")).configs,
|
19
8
|
ts: new Options
|
@@ -32,7 +21,21 @@ export default function (input) {
|
|
32
21
|
.yml([parsers.yml], ...factory.produce("yml")).configs,
|
33
22
|
};
|
34
23
|
return [
|
35
|
-
|
24
|
+
{
|
25
|
+
ignores: [],
|
26
|
+
},
|
27
|
+
{
|
28
|
+
name: "linted",
|
29
|
+
plugins,
|
30
|
+
linterOptions: {
|
31
|
+
noInlineConfig: true,
|
32
|
+
reportUnusedDisableDirectives: "error",
|
33
|
+
},
|
34
|
+
languageOptions: {
|
35
|
+
sourceType: "module",
|
36
|
+
ecmaVersion: 2023,
|
37
|
+
},
|
38
|
+
},
|
36
39
|
...scopes.flatMap(scope => options[scope]),
|
37
40
|
];
|
38
41
|
}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,OAAO,EACP,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,KAAY;IACnC,IAAI,CAAC;QACH,MAA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,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAC1B,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO;YACL;gBACE,OAAO,EAAE,EAAE;aACH;YACV;gBACE,IAAI,EAAE,QAAQ;gBACd,OAAO;gBACP,aAAa,EAAE;oBACb,cAAc,EAAE,IAAI;oBACpB,6BAA6B,EAAE,OAAO;iBACvC;gBACD,eAAe,EAAE;oBACf,UAAU,EAAE,QAAQ;oBACpB,WAAW,EAAE,IAAI;iBAClB;aACO;YACV,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SAC3C,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,EACN,cAAc,GACf,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export type { Scope, Plugins, } from "../index.js";
|
2
|
+
import type { InputPlugins } from "./plugins.js";
|
3
|
+
import type { InputParsers } from "./parsers/index.js";
|
4
|
+
export interface Imports {
|
5
|
+
plugins: InputPlugins;
|
6
|
+
parsers: InputParsers;
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/imports/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,GACR,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,YAAY,CAAC;CACvB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/input/imports/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/imports/parsers/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,YAAY,GAAG,MAAM,CAC/B,MAAM,EACN,OAAO,CACR,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/input/imports/parsers/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/imports/parsers/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,MAAM,GAAG,KAAK,GACtB,CACE,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACV,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../../src/interface/input/imports/parsers/parser.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/imports/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAEjC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/interface/input/imports/plugins.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/input/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/user/files/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,KAAK,EACL,MAAM,EAAE,CACT,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../../src/interface/input/user/files/defaults.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"includes.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/user/files/includes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,aAAa,CACd,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"includes.js","sourceRoot":"","sources":["../../../../../src/interface/input/user/files/includes.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export type { Scope } from "../index.js";
|
2
|
+
import type { FilesDefaults } from "./defaults.js";
|
3
|
+
import type { FilesIncludes } from "./includes.js";
|
4
|
+
export interface InputFiles {
|
5
|
+
files: FilesDefaults;
|
6
|
+
includes: FilesIncludes;
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/user/files/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/input/user/files/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export type { Scope, RuleEntry, RuleRecord, } from "../index.js";
|
2
|
+
import type { InputFiles } from "./files/index.js";
|
3
|
+
import type { InputRules } from "./rules/index.js";
|
4
|
+
export interface User {
|
5
|
+
files: InputFiles;
|
6
|
+
rules: InputRules;
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/user/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACnB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/input/user/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/user/rules/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EACV,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,KAAK,EACL,SAAS,EAAE,CACZ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../../src/interface/input/user/rules/defaults.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export type { Scope, RuleEntry, RuleRecord, } from "../index.js";
|
2
|
+
import type { RulesDefaults } from "./defaults.js";
|
3
|
+
import type { RulesOverrides } from "./overrides.js";
|
4
|
+
export interface InputRules {
|
5
|
+
rules: RulesDefaults;
|
6
|
+
overrides: RulesOverrides;
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/user/rules/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,cAAc,CAAC;CAC3B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/input/user/rules/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/user/rules/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG,SAAS,CACpC,MAAM,aAAa,EACnB,UAAU,CACX,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../../../../src/interface/input/user/rules/overrides.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/global/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAExC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAC9C,OAAO,CACL,cAAc,EACd,SAAS,CACV,EACD,KAAK,CACN,CAAC,GAAG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/interface/output/global/ignores.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export type { Plugins, ConfigProperty, } from "../index.js";
|
2
|
+
import type { GlobalConfigIgnores } from "./ignores.js";
|
3
|
+
import type { GlobalConfigSystem } from "./system.js";
|
4
|
+
export type GlobalConfigs = readonly [
|
5
|
+
GlobalConfigIgnores,
|
6
|
+
GlobalConfigSystem
|
7
|
+
];
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/global/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,cAAc,GACf,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,mBAAmB;IACnB,kBAAkB;CACnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/output/global/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { Plugins, ConfigProperty } from "./index.js";
|
2
|
+
export type GlobalConfigSystem = Partial<Record<Exclude<ConfigProperty, "name" | "plugins" | "linterOptions" | "languageOptions">, never>> & {
|
3
|
+
name: `linted`;
|
4
|
+
plugins: Plugins;
|
5
|
+
linterOptions: {
|
6
|
+
noInlineConfig: boolean;
|
7
|
+
reportUnusedDisableDirectives: "error" | "warn" | "off";
|
8
|
+
};
|
9
|
+
languageOptions: {
|
10
|
+
sourceType?: "module" | "script";
|
11
|
+
ecmaVersion?: "latest" | 3 | 5 | ToNumber<`20${(15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24)}`>;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=system.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/global/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAC7C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,GACT,eAAe,GACf,iBAAiB,CACpB,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KAAK,CACZ,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CACL,EAAE,CAAC,CAAC;KACR,CAAC;CACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/interface/output/global/system.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export type { Plugins, Config, ConfigProperty, } from "../index.js";
|
2
|
+
import type { GlobalConfigs } from "./global/index.js";
|
3
|
+
import type { ScopedConfig } from "./scoped.js";
|
4
|
+
export type Output = [
|
5
|
+
...GlobalConfigs,
|
6
|
+
...ScopedConfig[]
|
7
|
+
];
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,MAAM,EACN,cAAc,GACf,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,aAAa;IAChB,GAAG,YAAY,EAAE;CAClB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../src/interface/output/scoped.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAEhC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC"}
|