@eslinted/core 11.1.0 → 12.0.0-rc.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/typings/common/utility/primitive/cast/number.d.ts +13 -3
- package/typings/common/utility/primitive/cast/number.spec.d.ts +57 -0
- 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/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
|