@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
@@ -0,0 +1,13 @@
|
|
1
|
+
export type {
|
2
|
+
Scope,
|
3
|
+
RuleEntry,
|
4
|
+
RuleRecord,
|
5
|
+
} from "..";
|
6
|
+
|
7
|
+
import type { RulesDefaults } from "./defaults";
|
8
|
+
import type { RulesOverrides } from "./overrides";
|
9
|
+
|
10
|
+
export interface InputRules {
|
11
|
+
rules: RulesDefaults;
|
12
|
+
overrides: RulesOverrides;
|
13
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export type {
|
2
|
+
Plugins,
|
3
|
+
ConfigProperty,
|
4
|
+
} from "..";
|
5
|
+
|
6
|
+
import type { GlobalConfigIgnores } from "./ignores";
|
7
|
+
import type { GlobalConfigSystem } from "./system";
|
8
|
+
|
9
|
+
export type GlobalConfigs = readonly [
|
10
|
+
GlobalConfigIgnores,
|
11
|
+
GlobalConfigSystem,
|
12
|
+
];
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import type {
|
2
|
+
Plugins,
|
3
|
+
ConfigProperty,
|
4
|
+
} from ".";
|
5
|
+
|
6
|
+
export type GlobalConfigSystem = Partial<Record<
|
7
|
+
Exclude<
|
8
|
+
ConfigProperty,
|
9
|
+
| "name"
|
10
|
+
| "plugins"
|
11
|
+
| "linterOptions"
|
12
|
+
| "languageOptions"
|
13
|
+
>,
|
14
|
+
never
|
15
|
+
>> & {
|
16
|
+
name: `linted`;
|
17
|
+
plugins: Plugins;
|
18
|
+
linterOptions: {
|
19
|
+
noInlineConfig: boolean;
|
20
|
+
reportUnusedDisableDirectives:
|
21
|
+
| "error"
|
22
|
+
| "warn"
|
23
|
+
| "off"
|
24
|
+
;
|
25
|
+
};
|
26
|
+
languageOptions: {
|
27
|
+
sourceType?:
|
28
|
+
| "module"
|
29
|
+
| "script"
|
30
|
+
;
|
31
|
+
ecmaVersion?:
|
32
|
+
| "latest"
|
33
|
+
| 3
|
34
|
+
| 5
|
35
|
+
| ToNumber<`20${(
|
36
|
+
| 15
|
37
|
+
| 16
|
38
|
+
| 17
|
39
|
+
| 18
|
40
|
+
| 19
|
41
|
+
| 20
|
42
|
+
| 21
|
43
|
+
| 22
|
44
|
+
| 23
|
45
|
+
| 24
|
46
|
+
)}`>;
|
47
|
+
};
|
48
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { RuleRecord } from "..";
|
2
|
+
|
3
|
+
export interface Config {
|
4
|
+
name: `linted/${string}`;
|
5
|
+
rules: RuleRecord;
|
6
|
+
files: string[];
|
7
|
+
ignores: string[];
|
8
|
+
languageOptions: {
|
9
|
+
parser?: unknown;
|
10
|
+
parserOptions?: Table;
|
11
|
+
globals?: Table<true>;
|
12
|
+
};
|
13
|
+
processor?: string;
|
14
|
+
language?: string;
|
15
|
+
}
|
16
|
+
export type { ConfigProperty } from "./property";
|
package/dist/input/files.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/input/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;CACxC"}
|
package/dist/input/files.js
DELETED
package/dist/input/files.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/input/files.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG,KAAK,GACvB,CACE,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACV,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,OAAO,GACP,KAAK,CACR,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":""}
|
package/dist/input/index.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
export type { Scope } from "../scopes.js";
|
2
|
-
import type { PluginsInput } from "./plugins.js";
|
3
|
-
import type { ParsersInput } from "./parsers.js";
|
4
|
-
import type { FilesInput } from "./files.js";
|
5
|
-
import type { RulesInput } from "./rules/index.js";
|
6
|
-
export interface Input {
|
7
|
-
plugins: PluginsInput;
|
8
|
-
parsers: ParsersInput;
|
9
|
-
files: FilesInput;
|
10
|
-
rules: RulesInput;
|
11
|
-
}
|
12
|
-
export declare namespace Input {
|
13
|
-
type Rule = RulesInput;
|
14
|
-
namespace Rule {
|
15
|
-
type Entry = RulesInput.Entry;
|
16
|
-
namespace Entry {
|
17
|
-
type Id = RulesInput.Entry.Id;
|
18
|
-
type Record = RulesInput.Entry.Record;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACnB;AACD,yBAAiB,KAAK,CAAC;IACrB,KAAY,IAAI,GAAG,UAAU,CAAC;IAC9B,UAAiB,IAAI,CAAC;QACpB,KAAY,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QACrC,UAAiB,KAAK,CAAC;YACrB,KAAY,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YACrC,KAAY,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC;SAC9C;KACF;CACF"}
|
package/dist/input/parsers.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../src/input/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/input/parsers.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/input/parsers.ts"],"names":[],"mappings":""}
|
package/dist/input/plugins.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/input/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/input/plugins.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/input/plugins.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input/rules/entry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACtD,yBAAiB,SAAS,CAAC;IACzB,KAAY,EAAE,GAAG,MAAM,CAAC;IACxB,KAAY,MAAM,GAAG,UAAU,CAAC;CACjC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/input/rules/entry/index.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/index.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/state.ts"],"names":[],"mappings":""}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { Scope } from "../index.js";
|
2
|
-
import type { RuleEntry } from "./entry/index.js";
|
3
|
-
export interface RulesInput {
|
4
|
-
rules: Record<Scope, RuleEntry[]>;
|
5
|
-
overrides: Partial<Record<Scope, RuleEntry.Record>>;
|
6
|
-
}
|
7
|
-
export declare namespace RulesInput {
|
8
|
-
type Entry = RuleEntry;
|
9
|
-
namespace Entry {
|
10
|
-
type Id = RuleEntry.Id;
|
11
|
-
type Record = RuleEntry.Record;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;CACrD;AACD,yBAAiB,UAAU,CAAC;IAC1B,KAAY,KAAK,GAAG,SAAS,CAAC;IAC9B,UAAiB,KAAK,CAAC;QACrB,KAAY,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC;QAC9B,KAAY,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;KACvC;CACF"}
|
package/dist/output.d.ts
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
import type { Input } from "./index.js";
|
2
|
-
export type Output = [
|
3
|
-
{
|
4
|
-
name: `linted`;
|
5
|
-
plugins: Table<Record<"configs", unknown>>;
|
6
|
-
linterOptions: {
|
7
|
-
noInlineConfig: true;
|
8
|
-
reportUnusedDisableDirectives: "error";
|
9
|
-
};
|
10
|
-
languageOptions: {
|
11
|
-
sourceType?: "module" | "script";
|
12
|
-
ecmaVersion?: "latest" | 3 | 5 | ToNumber<`20${15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24}`>;
|
13
|
-
};
|
14
|
-
},
|
15
|
-
...({
|
16
|
-
name: `linted/${string}`;
|
17
|
-
rules: Input["rules"]["rules"]["html"][number][1];
|
18
|
-
files: string[];
|
19
|
-
languageOptions: {
|
20
|
-
sourceType?: "module" | "script";
|
21
|
-
ecmaVersion?: "latest" | 3 | 5 | ToNumber<`20${15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24}`>;
|
22
|
-
globals?: Table<true>;
|
23
|
-
parser?: unknown;
|
24
|
-
parserOptions?: Table;
|
25
|
-
};
|
26
|
-
processor?: string;
|
27
|
-
language?: string;
|
28
|
-
})[]
|
29
|
-
];
|
30
|
-
//# sourceMappingURL=output.d.ts.map
|
package/dist/output.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,MAAM,GAAG;IACnB;QACE,IAAI,EAAE,QAAQ,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;QAC3C,aAAa,EAAE;YACb,cAAc,EAAE,IAAI,CAAC;YACrB,6BAA6B,EAAE,OAAO,CAAC;SACxC,CAAC;QACF,eAAe,EAAE;YACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;YACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KACT,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EACF,EAAE,CAAC,CAAC;SACP,CAAC;KACH;IACD,GAAG,CACD;QACE,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;QACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,eAAe,EAAE;YACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;YACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KACT,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EACF,EAAE,CAAC,CAAC;YACN,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,aAAa,CAAC,EAAE,KAAK,CAAC;SACvB,CAAC;QACF,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CACF,EAAE;CACJ,CAAC"}
|
package/dist/output.js
DELETED
package/dist/output.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":""}
|
package/dist/scopes.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,eAAO,MAAM,MAAM,0EAST,CAAC"}
|
package/dist/scopes.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC"}
|
package/dist/scopes.spec.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scopes.spec.d.ts","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":""}
|
package/dist/scopes.spec.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scopes.spec.js","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,sBAAsB,EAAE;YACzB,MAAM,CAAC,MAAM,CAAC;iBACX,EAAE,CAAC,OAAO,CAAC;iBACX,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,cAAc,EAAE;YACjB,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;YACvC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,SAAS,EAAE;YACZ,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBACzB,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,YAAY,EAAE;YACf,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAC7B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/src/input/files.ts
DELETED
package/src/input/index.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
export type { Scope } from "../scopes";
|
2
|
-
|
3
|
-
import type { PluginsInput } from "./plugins";
|
4
|
-
import type { ParsersInput } from "./parsers";
|
5
|
-
import type { FilesInput } from "./files";
|
6
|
-
import type { RulesInput } from "./rules";
|
7
|
-
|
8
|
-
export interface Input {
|
9
|
-
plugins: PluginsInput;
|
10
|
-
parsers: ParsersInput;
|
11
|
-
files: FilesInput;
|
12
|
-
rules: RulesInput;
|
13
|
-
}
|
14
|
-
export namespace Input {
|
15
|
-
export type Rule = RulesInput;
|
16
|
-
export namespace Rule {
|
17
|
-
export type Entry = RulesInput.Entry;
|
18
|
-
export namespace Entry {
|
19
|
-
export type Id = RulesInput.Entry.Id;
|
20
|
-
export type Record = RulesInput.Entry.Record;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
package/src/input/parsers.ts
DELETED
package/src/input/plugins.ts
DELETED
package/src/input/rules/index.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { Scope } from "..";
|
2
|
-
import type { RuleEntry } from "./entry";
|
3
|
-
|
4
|
-
export interface RulesInput {
|
5
|
-
rules: Record<Scope, RuleEntry[]>;
|
6
|
-
overrides: Partial<Record<Scope, RuleEntry.Record>>;
|
7
|
-
}
|
8
|
-
export namespace RulesInput {
|
9
|
-
export type Entry = RuleEntry;
|
10
|
-
export namespace Entry {
|
11
|
-
export type Id = RuleEntry.Id;
|
12
|
-
export type Record = RuleEntry.Record;
|
13
|
-
}
|
14
|
-
}
|
package/src/output.ts
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
import type { Input } from ".";
|
2
|
-
|
3
|
-
export type Output = [
|
4
|
-
{
|
5
|
-
name: `linted`;
|
6
|
-
plugins: Table<Record<"configs", unknown>>;
|
7
|
-
linterOptions: {
|
8
|
-
noInlineConfig: true;
|
9
|
-
reportUnusedDisableDirectives: "error";
|
10
|
-
};
|
11
|
-
languageOptions: {
|
12
|
-
sourceType?:
|
13
|
-
| "module"
|
14
|
-
| "script"
|
15
|
-
;
|
16
|
-
ecmaVersion?:
|
17
|
-
| "latest"
|
18
|
-
| 3
|
19
|
-
| 5
|
20
|
-
| ToNumber<`20${
|
21
|
-
| 15
|
22
|
-
| 16
|
23
|
-
| 17
|
24
|
-
| 18
|
25
|
-
| 19
|
26
|
-
| 20
|
27
|
-
| 21
|
28
|
-
| 22
|
29
|
-
| 23
|
30
|
-
| 24
|
31
|
-
}`>;
|
32
|
-
};
|
33
|
-
},
|
34
|
-
...(
|
35
|
-
{
|
36
|
-
name: `linted/${string}`;
|
37
|
-
rules: Input["rules"]["rules"]["html"][number][1];
|
38
|
-
files: string[];
|
39
|
-
languageOptions: {
|
40
|
-
sourceType?:
|
41
|
-
| "module"
|
42
|
-
| "script"
|
43
|
-
;
|
44
|
-
ecmaVersion?:
|
45
|
-
| "latest"
|
46
|
-
| 3
|
47
|
-
| 5
|
48
|
-
| ToNumber<`20${
|
49
|
-
| 15
|
50
|
-
| 16
|
51
|
-
| 17
|
52
|
-
| 18
|
53
|
-
| 19
|
54
|
-
| 20
|
55
|
-
| 21
|
56
|
-
| 22
|
57
|
-
| 23
|
58
|
-
| 24
|
59
|
-
}`>;
|
60
|
-
globals?: Table<true>;
|
61
|
-
parser?: unknown;
|
62
|
-
parserOptions?: Table;
|
63
|
-
};
|
64
|
-
processor?: string;
|
65
|
-
language?: string;
|
66
|
-
}
|
67
|
-
)[],
|
68
|
-
];
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|