@eslinted/core 1.0.0 → 2.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/boundary.d.ts +4 -0
- package/dist/boundary/boundary.d.ts.map +1 -0
- package/dist/boundary/boundary.js +2 -0
- package/dist/boundary/boundary.js.map +1 -0
- package/dist/boundary/input/files/files.d.ts +4 -6
- package/dist/boundary/input/files/files.d.ts.map +1 -1
- package/dist/boundary/input/files/list/list.d.ts +3 -0
- package/dist/boundary/input/files/list/list.d.ts.map +1 -0
- package/dist/boundary/input/files/list/list.js +2 -0
- package/dist/boundary/input/files/list/list.js.map +1 -0
- package/dist/boundary/input/input.d.ts +6 -20
- package/dist/boundary/input/input.d.ts.map +1 -1
- package/dist/boundary/input/overrides/overrides.d.ts +4 -4
- package/dist/boundary/input/overrides/overrides.d.ts.map +1 -1
- package/dist/boundary/input/parsers/parsers.d.ts +3 -6
- package/dist/boundary/input/parsers/parsers.d.ts.map +1 -1
- package/dist/boundary/input/plugins/plugins.d.ts +5 -6
- package/dist/boundary/input/plugins/plugins.d.ts.map +1 -1
- package/dist/boundary/input/rules/entry/entry.d.ts +3 -3
- package/dist/boundary/input/rules/entry/entry.d.ts.map +1 -1
- package/dist/boundary/input/rules/entry/object/object.d.ts +3 -3
- package/dist/boundary/input/rules/entry/object/object.d.ts.map +1 -1
- package/dist/boundary/input/rules/entry/object/state/level.d.ts +3 -0
- package/dist/boundary/input/rules/entry/object/state/level.d.ts.map +1 -0
- package/dist/boundary/input/rules/entry/object/state/level.js +2 -0
- package/dist/boundary/input/rules/entry/object/state/level.js.map +1 -0
- package/dist/boundary/input/rules/rules.d.ts +4 -5
- package/dist/boundary/input/rules/rules.d.ts.map +1 -1
- package/dist/boundary/output/config/config.d.ts +2 -2
- package/dist/boundary/output/config/config.d.ts.map +1 -1
- package/dist/boundary/output/output.d.ts +2 -2
- package/dist/dependency/dependency.d.ts +4 -0
- package/dist/dependency/dependency.d.ts.map +1 -0
- package/dist/dependency/dependency.js +2 -0
- package/dist/dependency/dependency.js.map +1 -0
- package/dist/dependency/parsers/index.d.ts +3 -0
- package/dist/dependency/parsers/index.d.ts.map +1 -0
- package/dist/dependency/parsers/index.js +2 -0
- package/dist/dependency/parsers/index.js.map +1 -0
- package/dist/dependency/plugins/index.d.ts +3 -0
- package/dist/dependency/plugins/index.d.ts.map +1 -0
- package/dist/dependency/plugins/index.js +2 -0
- package/dist/dependency/plugins/index.js.map +1 -0
- package/dist/factory/factory.d.ts +1 -1
- package/dist/factory/factory.js +1 -1
- package/dist/factory/files/Files.d.ts +2 -2
- package/dist/factory/files/Files.d.ts.map +1 -1
- package/dist/factory/options/{options.d.ts → Options.d.ts} +1 -1
- package/dist/factory/options/{options.d.ts.map → Options.d.ts.map} +1 -1
- package/dist/factory/options/{options.js → Options.js} +1 -1
- package/dist/factory/options/{options.js.map → Options.js.map} +1 -1
- package/dist/factory/options/option/Option.d.ts +4 -3
- package/dist/factory/options/option/Option.d.ts.map +1 -1
- package/dist/factory/options/option/Option.js.map +1 -1
- package/dist/factory/ruleset/Ruleset.d.ts +3 -4
- package/dist/factory/ruleset/Ruleset.d.ts.map +1 -1
- package/dist/factory/ruleset/Ruleset.js.map +1 -1
- package/dist/factory/ruleset/rule/Rule.d.ts +1 -1
- package/dist/factory/ruleset/rule/Rule.d.ts.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -19
- package/dist/index.js.map +1 -1
- package/dist/scopes/{scopes.d.ts → Scopes.d.ts} +1 -1
- package/dist/scopes/Scopes.d.ts.map +1 -0
- package/dist/scopes/{scopes.js → Scopes.js} +1 -1
- package/dist/scopes/Scopes.js.map +1 -0
- package/package.json +7 -5
- package/src/boundary/boundary.ts +4 -0
- package/src/boundary/input/files/files.ts +7 -4
- package/src/boundary/input/files/list/list.ts +6 -0
- package/src/boundary/input/input.ts +12 -21
- package/src/boundary/input/overrides/overrides.ts +7 -4
- package/src/boundary/input/parsers/parsers.ts +7 -8
- package/src/boundary/input/plugins/plugins.ts +7 -4
- package/src/boundary/input/rules/entry/entry.ts +6 -3
- package/src/boundary/input/rules/entry/object/object.ts +10 -3
- package/src/boundary/input/rules/entry/object/state/level.ts +9 -0
- package/src/boundary/input/rules/rules.ts +4 -6
- package/src/boundary/output/config/config.ts +2 -2
- package/src/boundary/output/output.ts +2 -2
- package/src/dependency/dependency.ts +4 -0
- package/src/dependency/parsers/index.ts +9 -0
- package/src/dependency/plugins/index.ts +10 -0
- package/src/factory/factory.ts +1 -1
- package/src/factory/files/Files.ts +2 -2
- package/src/factory/options/option/Option.ts +4 -3
- package/src/factory/ruleset/Ruleset.ts +2 -3
- package/src/factory/ruleset/rule/Rule.ts +1 -1
- package/src/index.ts +42 -31
- package/dist/boundary/input/files/array/filearray.d.ts +0 -3
- package/dist/boundary/input/files/array/filearray.d.ts.map +0 -1
- package/dist/boundary/input/files/array/filearray.js +0 -2
- package/dist/boundary/input/files/array/filearray.js.map +0 -1
- package/dist/boundary/input/parsers.d.ts +0 -7
- package/dist/boundary/input/parsers.d.ts.map +0 -1
- package/dist/boundary/input/parsers.js +0 -2
- package/dist/boundary/input/parsers.js.map +0 -1
- package/dist/boundary/input/plugins.d.ts +0 -7
- package/dist/boundary/input/plugins.d.ts.map +0 -1
- package/dist/boundary/input/plugins.js +0 -2
- package/dist/boundary/input/plugins.js.map +0 -1
- package/dist/boundary/input/ruleRecord.d.ts +0 -6
- package/dist/boundary/input/ruleRecord.d.ts.map +0 -1
- package/dist/boundary/input/ruleRecord.js +0 -2
- package/dist/boundary/input/ruleRecord.js.map +0 -1
- package/dist/boundary/input/rules/entry/object/state/severity.d.ts +0 -3
- package/dist/boundary/input/rules/entry/object/state/severity.d.ts.map +0 -1
- package/dist/boundary/input/rules/entry/object/state/severity.js +0 -2
- package/dist/boundary/input/rules/entry/object/state/severity.js.map +0 -1
- package/dist/boundary/input.d.ts +0 -10
- package/dist/boundary/input.d.ts.map +0 -1
- package/dist/boundary/input.js +0 -2
- package/dist/boundary/input.js.map +0 -1
- package/dist/boundary/output/IConfig.d.ts +0 -19
- package/dist/boundary/output/IConfig.d.ts.map +0 -1
- package/dist/boundary/output/IConfig.js +0 -2
- package/dist/boundary/output/IConfig.js.map +0 -1
- package/dist/boundary/output.d.ts +0 -3
- package/dist/boundary/output.d.ts.map +0 -1
- package/dist/boundary/output.js +0 -2
- package/dist/boundary/output.js.map +0 -1
- package/dist/scopes/scopes.d.ts.map +0 -1
- package/dist/scopes/scopes.js.map +0 -1
- package/src/boundary/input/files/array/filearray.ts +0 -3
- package/src/boundary/input/rules/entry/object/state/severity.ts +0 -6
- /package/{types/project → src}/OmitFilesRuleset.d.ts +0 -0
- /package/src/factory/options/{options.ts → Options.ts} +0 -0
- /package/src/scopes/{scopes.ts → Scopes.ts} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,YAAY,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,MAAM,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"boundary.js","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":""}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
2
|
-
import type
|
3
|
-
type Files =
|
4
|
-
|
5
|
-
};
|
6
|
-
export type { Files as default };
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
|
+
import type * as Files from "./list/list.js";
|
3
|
+
type Files = Readonly<Record<Scope, Files.List>>;
|
4
|
+
export type { Files as default, Files, };
|
7
5
|
//# sourceMappingURL=files.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/files/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/files/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAC;AAE7C,KAAK,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAEjD,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/list/list.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,GAAG,SAAS,MAAM,EAAE,CAAC;AAE9B,YAAY,EACV,IAAI,IAAI,OAAO,EACf,IAAI,GACL,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/list/list.ts"],"names":[],"mappings":""}
|
@@ -1,21 +1,7 @@
|
|
1
|
-
import type
|
2
|
-
import type
|
3
|
-
import type
|
4
|
-
import type
|
5
|
-
import type
|
6
|
-
|
7
|
-
declare namespace Input {
|
8
|
-
type Plugins = plugins;
|
9
|
-
type Parsers = parsers;
|
10
|
-
type Files = files;
|
11
|
-
type Rules = rules;
|
12
|
-
namespace Rules {
|
13
|
-
type Entry = RuleEntry;
|
14
|
-
namespace Entry {
|
15
|
-
type Object = RuleObject;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
type Overrides = overrides;
|
19
|
-
}
|
20
|
-
export type { Input as default };
|
1
|
+
import type Plugins from "./plugins/plugins.js";
|
2
|
+
import type Parsers from "./parsers/parsers.js";
|
3
|
+
import type Files from "./files/files.js";
|
4
|
+
import type Rules from "./rules/rules.js";
|
5
|
+
import type Overrides from "./overrides/overrides.js";
|
6
|
+
export type { Plugins, Parsers, Files, Rules, Overrides, };
|
21
7
|
//# sourceMappingURL=input.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAEtD,YAAY,EACV,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,GACV,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
2
|
-
import type
|
3
|
-
type Overrides = Particord<Scope,
|
4
|
-
export type { Overrides as default };
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
|
+
import type { Rules } from "../input.js";
|
3
|
+
type Overrides = Readonly<Particord<Scope, Rules.Entry.Object>>;
|
4
|
+
export type { Overrides as default, Overrides, };
|
5
5
|
//# sourceMappingURL=overrides.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/overrides/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/overrides/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhE,YAAY,EACV,SAAS,IAAI,OAAO,EACpB,SAAS,GACV,CAAC"}
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
type Parsers
|
4
|
-
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
|
5
|
-
};
|
6
|
-
export type { Parsers as default };
|
1
|
+
import type { Parsers as Dependencies } from "../../../dependency/dependency.js";
|
2
|
+
type Parsers = Readonly<Record<Dependencies, unknown>>;
|
3
|
+
export type { Parsers as default, Parsers, Dependencies, };
|
7
4
|
//# sourceMappingURL=parsers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjF,KAAK,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;AAEvD,YAAY,EACV,OAAO,IAAI,OAAO,EAClB,OAAO,EACP,YAAY,GACb,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
};
|
6
|
-
export type { Plugins as default };
|
1
|
+
import type { Plugins as Dependencies } from "../../../dependency/dependency.js";
|
2
|
+
type Plugins = Readonly<Record<Dependencies, {
|
3
|
+
configs: unknown;
|
4
|
+
}>>;
|
5
|
+
export type { Plugins as default, Plugins, Dependencies, };
|
7
6
|
//# sourceMappingURL=plugins.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjF,KAAK,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAAC;AAEpE,YAAY,EACV,OAAO,IAAI,OAAO,EAClB,OAAO,EACP,YAAY,GACb,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
2
|
-
type
|
3
|
-
export type {
|
1
|
+
import type * as Entry from "./object/object.js";
|
2
|
+
type Entry = readonly [string, Entry.Object];
|
3
|
+
export type { Entry as default, Entry, };
|
4
4
|
//# sourceMappingURL=entry.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/entry/entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/entry/entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,KAAK,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7C,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
2
|
-
type
|
3
|
-
export type {
|
1
|
+
import type * as Object from "./state/level.js";
|
2
|
+
type Object = Readonly<Record<string, Object.Level | readonly [Object.Level, ...unknown[]]>>;
|
3
|
+
export type { Object as default, Object, };
|
4
4
|
//# sourceMappingURL=object.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/entry/object/object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/entry/object/object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAEhD,KAAK,MAAM,GAAG,QAAQ,CAAC,MAAM,CAC3B,MAAM,EACJ,MAAM,CAAC,KAAK,GACZ,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CACxC,CAAC,CAAC;AAEH,YAAY,EACV,MAAM,IAAI,OAAO,EACjB,MAAM,GACP,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/level.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GACN,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"level.js","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/level.ts"],"names":[],"mappings":""}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
2
|
-
import type
|
3
|
-
|
4
|
-
type Rules
|
5
|
-
export type { Rules as default, RuleEntry, RuleObject, };
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
|
+
import type * as Rules from "./entry/entry.js";
|
3
|
+
type Rules = Readonly<Record<Scope, readonly Rules.Entry[]>>;
|
4
|
+
export type { Rules as default, Rules, };
|
6
5
|
//# sourceMappingURL=rules.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/rules/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/rules/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAE/C,KAAK,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAE7D,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type
|
1
|
+
import type { Rules } from "../../input/input.js";
|
2
2
|
export default interface Config {
|
3
3
|
name: `linted/scope:${string}/rule:${string}+${string}`;
|
4
|
-
rules:
|
4
|
+
rules: Rules.Entry.Object;
|
5
5
|
files: readonly string[];
|
6
6
|
linterOptions: {
|
7
7
|
noInlineConfig: true;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,OAAO,WAAW,MAAM;IAC7B,IAAI,EAAE,gBAAgB,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACxD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IAC1B,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"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import type
|
2
|
-
export type {
|
1
|
+
import type Config from "./config/config.js";
|
2
|
+
export type { Config as default };
|
3
3
|
//# sourceMappingURL=output.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dependency.d.ts","sourceRoot":"","sources":["../../src/dependency/dependency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../src/dependency/dependency.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/parsers/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GACR,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACR;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dependency/parsers/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/plugins/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GACR,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,cAAc,GACd,OAAO,GACP,KAAK,CACR;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dependency/plugins/index.ts"],"names":[],"mappings":""}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Ruleset, { Rule } from "./ruleset/Ruleset.js";
|
2
2
|
import Files from "./files/Files.js";
|
3
|
-
import Options from "./options/
|
3
|
+
import Options from "./options/Options.js";
|
4
4
|
export { Options, Files, Ruleset, Rule, };
|
5
5
|
//# sourceMappingURL=factory.d.ts.map
|
package/dist/factory/factory.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Scope } from "../../scopes/
|
2
|
-
import type Input from "../../boundary/
|
1
|
+
import type { Scope } from "../../scopes/Scopes.js";
|
2
|
+
import type { Input } from "../../boundary/boundary.js";
|
3
3
|
export default class Files {
|
4
4
|
private readonly base;
|
5
5
|
private readonly includes;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM
|
1
|
+
{"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,CAAC,OAAO,OAAO,KAAK;IAEtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;IAG1C,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE;CAc9C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;;;;;;;;;;AAE9C,wBAQW"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,eAAe;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,SAAS;CACN,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
2
|
import type { Ruleset } from "../../factory.js";
|
3
|
-
import type
|
4
|
-
|
3
|
+
import type { Plugins } from "../../../dependency/dependency.js";
|
4
|
+
import type { Output } from "../../../boundary/boundary.js";
|
5
|
+
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 string = never, Processor extends object = never> {
|
5
6
|
readonly files: readonly string[];
|
6
7
|
readonly ruleset: Ruleset<S>;
|
7
8
|
readonly plugins: IOPlugins<PluginId>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,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,GA4BjB;IAED,SAAS,CAAC,QAAQ,KAAK,eAAe,IAAI,UAAU,CAClD,MAAM,EACN,aAAa,EACb,WAAW,CACZ,CAAC;CACH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,OAAgB,MAAM;IAsBhB;IACA;IACA;IACA;IAhBD,aAAa,GAAG;QAC/B,cAAc,EAAE,IAAI;QACpB,6BAA6B,EAAE,OAAO;KAC9B,CAAC;IASX,YACkB,KAAwB,EACxB,OAAmB,EACnB,OAA4B,EAC5B,MAAmC;QAHnC,UAAK,GAAL,KAAK,CAAmB;QACxB,YAAO,GAAP,OAAO,CAAY;QACnB,YAAO,GAAP,OAAO,CAAqB;QAC5B,WAAM,GAAN,MAAM,CAA6B;IAClD,CAAC;IAEJ,IAAW,OAAO;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC;YAET,IAAI,OAAO,CAAC,EAAE,KAAK,KAAK;gBACtB,MAAM,IAAI,SAAS,CACjB,mCAAmC,EACnC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,CAClD,CAAC;iBACC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;gBACvB,OAAO,EAAE,CAAC;iBACP,CAAC;gBACJ,MAAM,QAAQ,GAAG,gBAAgB,KAAK,SAAS,OAAO,CAAC,EAAE,EAAW,CAAC;gBAErE,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CACxB,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE;oBAClB,MAAM,IAAI,GAAG,GAAG,QAAQ,IAAI,MAAM,EAAW,CAAC;oBAE9C,OAAO;wBACL,IAAI;wBACJ,KAAK;wBACL,KAAK;wBACL,GAAG,MAAM;qBACV,CAAC;gBACJ,CAAC,CACF,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,KAAK,WAAW,EACpD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,aAAa;gBACb,eAAe;gBACf,OAAO;gBACP,GAAG,SAAS;aAOb,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,KAAK,UAAU,EACnD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CAOF"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import type { Scope } from "../../scopes/
|
2
|
-
import type Input from "../../boundary/input/input.js";
|
1
|
+
import type { Scope } from "../../scopes/Scopes.js";
|
3
2
|
import Rule from "./rule/Rule.js";
|
4
3
|
export { Rule };
|
5
4
|
export default class Ruleset<S extends Scope> {
|
@@ -8,7 +7,7 @@ export default class Ruleset<S extends Scope> {
|
|
8
7
|
overrides: Null<Rule>;
|
9
8
|
constructor(scope: literalful<S>, ...rules: readonly Rule[]);
|
10
9
|
get id(): literalful<S>;
|
11
|
-
get records(): (readonly [string, import("../../boundary/input/rules/rules.js").
|
12
|
-
override(overrides: undefined |
|
10
|
+
get records(): (readonly [string, Readonly<Record<string, import("../../boundary/input/rules/entry/object/state/level.js").default | readonly [import("../../boundary/input/rules/entry/object/state/level.js").default, ...unknown[]]>>])[];
|
11
|
+
override(overrides: undefined | Rule["rules"]): this;
|
13
12
|
}
|
14
13
|
//# sourceMappingURL=Ruleset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,
|
1
|
+
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAKxC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAGjB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EACrC,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAa3B,IAAW,EAAE,kBAYZ;IAED,IAAW,OAAO,kOAejB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;CAiBrD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO;IAKP;IAJH,OAAO,CAAkB;IAClC,SAAS,GAAe,I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V,CAAC;YAEJ,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,kCAAkC,EAClC,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,
|
1
|
+
{"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO;aAEM,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM;gBAD/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM;CAElD"}
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import { type Scope } from "./scopes/
|
2
|
-
import type
|
3
|
-
|
4
|
-
export
|
5
|
-
export default function (plugins: Input.Plugins, parsers: Input.Parsers, base: Input.Files, includes: Partial<Input.Files>, rules: Input.Rules, overrides: Input.Overrides): Output[];
|
1
|
+
import { type Scope } from "./scopes/Scopes.js";
|
2
|
+
import type * as Boundary from "./boundary/boundary.js";
|
3
|
+
export type { Scope, Boundary, };
|
4
|
+
export default function (plugins: Boundary.Input.Plugins, parsers: Boundary.Input.Parsers, base: Boundary.Input.Files, includes: Partial<Boundary.Input.Files>, rules: Boundary.Input.Rules, overrides: Boundary.Input.Overrides): Boundary.Output[];
|
6
5
|
//# 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,OAAe,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AAQxD,YAAY,EACV,KAAK,EACL,QAAQ,GACT,CAAC;AACF,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAC3B,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,SAAS,GAClC,QAAQ,CAAC,MAAM,EAAE,CAqInB"}
|
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import scopes, {} from "./scopes/
|
1
|
+
import scopes, {} from "./scopes/Scopes.js";
|
2
2
|
import { Options, Files, Ruleset, Rule, } from "./factory/factory.js";
|
3
3
|
export default function (plugins, parsers, base, includes, rules, overrides) {
|
4
4
|
try {
|
@@ -10,41 +10,47 @@ export default function (plugins, parsers, base, includes, rules, overrides) {
|
|
10
10
|
json: new Ruleset("json", ...rules.json.map(args => new Rule(...args))),
|
11
11
|
jsonc: new Ruleset("jsonc", ...rules.jsonc.map(args => new Rule(...args))),
|
12
12
|
yml: new Ruleset("yml", ...rules.yml.map(args => new Rule(...args))),
|
13
|
-
},
|
14
|
-
js: [
|
15
|
-
ts: [
|
16
|
-
svelte: [
|
17
|
-
|
18
|
-
|
19
|
-
],
|
20
|
-
|
21
|
-
json: [plugins.json, [parsers.json]],
|
22
|
-
jsonc: [plugins.jsonc, [parsers.jsonc]],
|
23
|
-
yml: [plugins.yml, [parsers.yml]],
|
13
|
+
}, scopedParsers = {
|
14
|
+
js: [],
|
15
|
+
ts: [parsers.ts],
|
16
|
+
svelte: [parsers.svelte, parsers.ts],
|
17
|
+
html: [parsers.html],
|
18
|
+
json: [parsers.jsonc],
|
19
|
+
jsonc: [parsers.jsonc],
|
20
|
+
yml: [parsers.yml],
|
24
21
|
};
|
25
22
|
for (const scope of scopes)
|
26
23
|
rulesets[scope].override(overrides[scope]);
|
27
24
|
const options = {
|
28
25
|
js: new Options
|
29
|
-
.js(files.files("js"), rulesets.js,
|
26
|
+
.js(files.files("js"), rulesets.js, {
|
27
|
+
"@stylistic": plugins["@stylistic"],
|
28
|
+
}, scopedParsers.js)
|
30
29
|
.configs,
|
31
30
|
ts: new Options
|
32
|
-
.ts(files.files("ts"), rulesets.ts,
|
31
|
+
.ts(files.files("ts"), rulesets.ts, {
|
32
|
+
"@stylistic": plugins["@stylistic"],
|
33
|
+
"@typescript-eslint": plugins["@typescript-eslint"],
|
34
|
+
}, scopedParsers.ts)
|
33
35
|
.configs,
|
34
36
|
svelte: new Options
|
35
|
-
.svelte(files.files("svelte"), rulesets.svelte,
|
37
|
+
.svelte(files.files("svelte"), rulesets.svelte, {
|
38
|
+
"@stylistic": plugins["@stylistic"],
|
39
|
+
"@typescript-eslint": plugins["@typescript-eslint"],
|
40
|
+
svelte: plugins.svelte,
|
41
|
+
}, scopedParsers.svelte)
|
36
42
|
.configs,
|
37
43
|
html: new Options
|
38
|
-
.html(files.files("html"), rulesets.html,
|
44
|
+
.html(files.files("html"), rulesets.html, { "@html-eslint": plugins["@html-eslint"] }, scopedParsers.html)
|
39
45
|
.configs,
|
40
46
|
json: new Options
|
41
|
-
.json(files.files("json"), rulesets.json,
|
47
|
+
.json(files.files("json"), rulesets.json, { jsonc: plugins.jsonc }, scopedParsers.json)
|
42
48
|
.configs,
|
43
49
|
jsonc: new Options
|
44
|
-
.jsonc(files.files("jsonc"), rulesets.jsonc,
|
50
|
+
.jsonc(files.files("jsonc"), rulesets.jsonc, { jsonc: plugins.jsonc }, scopedParsers.jsonc)
|
45
51
|
.configs,
|
46
52
|
yml: new Options
|
47
|
-
.yml(files.files("yml"), rulesets.yml,
|
53
|
+
.yml(files.files("yml"), rulesets.yml, { yml: plugins.yml }, scopedParsers.yml)
|
48
54
|
.configs,
|
49
55
|
};
|
50
56
|
return scopes
|
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,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,oBAAoB,CAAC;AAExD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,sBAAsB,CAAC;AAM9B,MAAM,CAAC,OAAO,WACZ,OAA+B,EAC/B,OAA+B,EAC/B,IAA0B,EAC1B,QAAuC,EACvC,KAA2B,EAC3B,SAAmC;IAEnC,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,IAAI,EACJ,QAAQ,CACT,EACD,QAAQ,GAAG;YACT,EAAE,EAAE,IAAI,OAAO,CACb,IAAI,EACJ,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAC3C;YACD,EAAE,EAAE,IAAI,OAAO,CACb,IAAI,EACJ,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAC3C;YACD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,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EACpB,QAAQ,CAAC,KAAK,EACd,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EACxB,aAAa,CAAC,KAAK,CACpB;iBACA,OAAO;YACV,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAClB,QAAQ,CAAC,GAAG,EACZ,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,aAAa,CAAC,GAAG,CAClB;iBACA,OAAO;SACX,CAAC;QAEF,OAAO,MAAM;aACV,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aAC5B,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,aAAa,EACb,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Scopes.d.ts","sourceRoot":"","sources":["../../src/scopes/Scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Scopes.js","sourceRoot":"","sources":["../../src/scopes/Scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC;AAEX,eAAe,MAAM,CAAC"}
|