@eslinted/core 13.0.0-rc.1 → 13.1.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/factory.d.ts +175 -0
- package/dist/factory/factory.d.ts.map +1 -0
- package/dist/factory/factory.js +42 -0
- package/dist/factory/factory.js.map +1 -0
- package/dist/factory/index.d.ts +2 -3
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +2 -3
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/ruleset.d.ts +3 -3
- package/dist/factory/ruleset.d.ts.map +1 -1
- package/dist/factory/ruleset.js +3 -3
- package/dist/factory/ruleset.js.map +1 -1
- package/dist/factory/{options → settings}/index.d.ts +1 -2
- package/dist/factory/settings/index.d.ts.map +1 -0
- package/dist/factory/settings/index.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/html.d.ts +2 -2
- package/dist/factory/settings/scopes/html.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/html.js +2 -2
- package/dist/factory/settings/scopes/html.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/js.d.ts +2 -2
- package/dist/factory/settings/scopes/js.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/js.js +2 -2
- package/dist/factory/settings/scopes/js.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/json.d.ts +2 -2
- package/dist/factory/settings/scopes/json.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/json.js +2 -2
- package/dist/factory/settings/scopes/json.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/jsonc.d.ts +2 -2
- package/dist/factory/settings/scopes/jsonc.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/jsonc.js +2 -2
- package/dist/factory/settings/scopes/jsonc.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/mocha.d.ts +3 -3
- package/dist/factory/settings/scopes/mocha.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/mocha.js +5 -4
- package/dist/factory/settings/scopes/mocha.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/svelte.d.ts +7 -7
- package/dist/factory/settings/scopes/svelte.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/svelte.js +2 -2
- package/dist/factory/settings/scopes/svelte.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/ts.d.ts +5 -5
- package/dist/factory/settings/scopes/ts.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/ts.js +2 -2
- package/dist/factory/settings/scopes/ts.js.map +1 -0
- package/dist/factory/{options → settings}/scopes/yml.d.ts +2 -2
- package/dist/factory/settings/scopes/yml.d.ts.map +1 -0
- package/dist/factory/{options → settings}/scopes/yml.js +2 -2
- package/dist/factory/settings/scopes/yml.js.map +1 -0
- package/dist/factory/settings/setting.d.ts +48 -0
- package/dist/factory/settings/setting.d.ts.map +1 -0
- package/dist/factory/settings/setting.js +20 -0
- package/dist/factory/settings/setting.js.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -21
- package/dist/index.js.map +1 -1
- package/dist/interface/config/index.d.ts +23 -0
- package/dist/interface/config/index.d.ts.map +1 -0
- package/dist/{config → interface/config}/index.js.map +1 -1
- package/dist/interface/config/rule.d.ts +7 -0
- package/dist/interface/config/rule.d.ts.map +1 -0
- package/dist/{config → interface/config}/rule.js.map +1 -1
- package/dist/interface/configs/globals/ignores.d.ts +6 -0
- package/dist/interface/configs/globals/ignores.d.ts.map +1 -0
- package/dist/interface/configs/globals/ignores.js +2 -0
- package/dist/interface/configs/globals/ignores.js.map +1 -0
- package/dist/interface/configs/globals/index.d.ts +5 -0
- package/dist/interface/configs/globals/index.d.ts.map +1 -0
- package/dist/interface/configs/globals/index.js +2 -0
- package/dist/interface/configs/globals/index.js.map +1 -0
- package/dist/interface/configs/globals/only/index.d.ts +2 -0
- package/dist/interface/configs/globals/only/index.d.ts.map +1 -0
- package/dist/interface/configs/globals/only/index.js +2 -0
- package/dist/interface/configs/globals/only/index.js.map +1 -0
- package/dist/interface/configs/globals/plugins.d.ts +6 -0
- package/dist/interface/configs/globals/plugins.d.ts.map +1 -0
- package/dist/interface/configs/globals/plugins.js +2 -0
- package/dist/interface/configs/globals/plugins.js.map +1 -0
- package/dist/interface/configs/globals/settings.d.ts +7 -0
- package/dist/interface/configs/globals/settings.d.ts.map +1 -0
- package/dist/interface/configs/globals/settings.js +2 -0
- package/dist/interface/configs/globals/settings.js.map +1 -0
- package/dist/interface/configs/index.d.ts +3 -0
- package/dist/interface/configs/index.d.ts.map +1 -0
- package/dist/interface/configs/index.js +2 -0
- package/dist/interface/configs/index.js.map +1 -0
- package/dist/interface/configs/scoped.d.ts +7 -0
- package/dist/interface/configs/scoped.d.ts.map +1 -0
- package/dist/interface/configs/scoped.js +2 -0
- package/dist/interface/configs/scoped.js.map +1 -0
- package/dist/interface/imports/index.d.ts +3 -3
- package/dist/interface/imports/index.d.ts.map +1 -1
- package/dist/interface/imports/parsers.d.ts +2 -0
- package/dist/interface/imports/parsers.d.ts.map +1 -0
- package/dist/interface/imports/parsers.js +2 -0
- package/dist/interface/imports/parsers.js.map +1 -0
- package/dist/interface/imports/plugins.d.ts +2 -0
- package/dist/interface/imports/plugins.d.ts.map +1 -0
- package/dist/interface/imports/plugins.js +2 -0
- package/dist/interface/imports/plugins.js.map +1 -0
- package/dist/interface/index.d.ts +2 -1
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/input.d.ts +13 -13
- package/dist/interface/input.d.ts.map +1 -1
- package/dist/interface/output.d.ts +7 -15
- package/dist/interface/output.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/factory/factory.ts +89 -0
- package/src/factory/index.ts +2 -3
- package/src/factory/ruleset.ts +9 -13
- package/src/factory/{options → settings}/index.ts +1 -2
- package/src/factory/settings/scopes/html.ts +16 -0
- package/src/factory/settings/scopes/js.ts +11 -0
- package/src/factory/settings/scopes/json.ts +16 -0
- package/src/factory/settings/scopes/jsonc.ts +16 -0
- package/src/factory/settings/scopes/mocha.ts +29 -0
- package/src/factory/{options → settings}/scopes/svelte.ts +9 -9
- package/src/factory/settings/scopes/ts.ts +28 -0
- package/src/factory/settings/scopes/yml.ts +17 -0
- package/src/factory/settings/setting.ts +63 -0
- package/src/index.ts +26 -75
- package/src/interface/config/index.ts +42 -0
- package/src/interface/config/rule.ts +14 -0
- package/src/interface/configs/globals/ignores.ts +10 -0
- package/src/interface/configs/globals/index.ts +4 -0
- package/src/interface/configs/globals/only/index.ts +4 -0
- package/src/interface/configs/globals/plugins.ts +10 -0
- package/src/interface/configs/globals/settings.ts +13 -0
- package/src/interface/configs/index.ts +2 -0
- package/src/interface/configs/scoped.ts +7 -0
- package/src/interface/imports/index.ts +2 -16
- package/src/interface/imports/parsers.ts +7 -0
- package/src/interface/imports/plugins.ts +9 -0
- package/src/interface/index.ts +2 -1
- package/src/interface/input.ts +15 -19
- package/src/interface/output.ts +7 -22
- package/dist/config/index.d.ts +0 -23
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/rule.d.ts +0 -7
- package/dist/config/rule.d.ts.map +0 -1
- package/dist/factory/global.d.ts +0 -29
- package/dist/factory/global.d.ts.map +0 -1
- package/dist/factory/global.js +0 -41
- package/dist/factory/global.js.map +0 -1
- package/dist/factory/options/index.d.ts.map +0 -1
- package/dist/factory/options/index.js.map +0 -1
- package/dist/factory/options/option.d.ts +0 -3002
- package/dist/factory/options/option.d.ts.map +0 -1
- package/dist/factory/options/option.js +0 -48
- package/dist/factory/options/option.js.map +0 -1
- package/dist/factory/options/proto.d.ts +0 -19
- package/dist/factory/options/proto.d.ts.map +0 -1
- package/dist/factory/options/proto.js +0 -2
- package/dist/factory/options/proto.js.map +0 -1
- package/dist/factory/options/scopes/html.d.ts.map +0 -1
- package/dist/factory/options/scopes/html.js.map +0 -1
- package/dist/factory/options/scopes/js.d.ts.map +0 -1
- package/dist/factory/options/scopes/js.js.map +0 -1
- package/dist/factory/options/scopes/json.d.ts.map +0 -1
- package/dist/factory/options/scopes/json.js.map +0 -1
- package/dist/factory/options/scopes/jsonc.d.ts.map +0 -1
- package/dist/factory/options/scopes/jsonc.js.map +0 -1
- package/dist/factory/options/scopes/mocha.d.ts.map +0 -1
- package/dist/factory/options/scopes/mocha.js.map +0 -1
- package/dist/factory/options/scopes/svelte.d.ts.map +0 -1
- package/dist/factory/options/scopes/svelte.js.map +0 -1
- package/dist/factory/options/scopes/ts.d.ts.map +0 -1
- package/dist/factory/options/scopes/ts.js.map +0 -1
- package/dist/factory/options/scopes/yml.d.ts.map +0 -1
- package/dist/factory/options/scopes/yml.js.map +0 -1
- package/dist/factory/scoped.d.ts +0 -13
- package/dist/factory/scoped.d.ts.map +0 -1
- package/dist/factory/scoped.js +0 -17
- package/dist/factory/scoped.js.map +0 -1
- package/src/config/index.ts +0 -42
- package/src/config/rule.ts +0 -14
- package/src/factory/global.ts +0 -45
- package/src/factory/options/option.ts +0 -98
- package/src/factory/options/proto.ts +0 -46
- package/src/factory/options/scopes/html.ts +0 -16
- package/src/factory/options/scopes/js.ts +0 -11
- package/src/factory/options/scopes/json.ts +0 -16
- package/src/factory/options/scopes/jsonc.ts +0 -16
- package/src/factory/options/scopes/mocha.ts +0 -29
- package/src/factory/options/scopes/ts.ts +0 -28
- package/src/factory/options/scopes/yml.ts +0 -17
- package/src/factory/scoped.ts +0 -17
- /package/dist/factory/{options → settings}/index.js +0 -0
- /package/dist/{config → interface/config}/index.js +0 -0
- /package/dist/{config → interface/config}/rule.js +0 -0
@@ -0,0 +1,175 @@
|
|
1
|
+
import type { Scopes, Input } from "../index.js";
|
2
|
+
import type Options from "./settings/index.js";
|
3
|
+
export declare class Factory {
|
4
|
+
readonly defaults: Input["defaults"];
|
5
|
+
readonly extensions: {
|
6
|
+
readonly global: NonNullable<Input["extensions"]["*"]>;
|
7
|
+
readonly scopes: Omit<Input["extensions"], "*">;
|
8
|
+
};
|
9
|
+
constructor(defaults: Input["defaults"], { "*": global, ...scopes }?: Input["extensions"]);
|
10
|
+
get settings(): {
|
11
|
+
readonly name: "linted/*/settings";
|
12
|
+
readonly linterOptions: {
|
13
|
+
readonly noInlineConfig: boolean;
|
14
|
+
readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
|
15
|
+
};
|
16
|
+
readonly languageOptions: {
|
17
|
+
readonly sourceType: "module" | "script";
|
18
|
+
readonly ecmaVersion: 2023 | "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2024;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
get ignores(): {
|
22
|
+
readonly name: "linted/*/ignores";
|
23
|
+
readonly ignores: readonly string[];
|
24
|
+
};
|
25
|
+
scope<S extends Scopes>(scope: S, settings: InstanceType<typeof Options[S]>): readonly [
|
26
|
+
] | ({
|
27
|
+
readonly languageOptions: {
|
28
|
+
readonly parser: unknown;
|
29
|
+
readonly parserOptions: {
|
30
|
+
readonly project: "tsconfig.json";
|
31
|
+
readonly sourceType: "module";
|
32
|
+
readonly ecmaVersion: 2023;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
36
|
+
readonly files: readonly [
|
37
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
38
|
+
...string[]
|
39
|
+
];
|
40
|
+
readonly ignores: readonly [
|
41
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
42
|
+
...string[]
|
43
|
+
];
|
44
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
45
|
+
import("../interface/config/rule.js").State,
|
46
|
+
...unknown[]
|
47
|
+
]>>;
|
48
|
+
} | {
|
49
|
+
readonly languageOptions: object;
|
50
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
51
|
+
readonly files: readonly [
|
52
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
53
|
+
...string[]
|
54
|
+
];
|
55
|
+
readonly ignores: readonly [
|
56
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
57
|
+
...string[]
|
58
|
+
];
|
59
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
60
|
+
import("../interface/config/rule.js").State,
|
61
|
+
...unknown[]
|
62
|
+
]>>;
|
63
|
+
} | {
|
64
|
+
readonly languageOptions: {
|
65
|
+
readonly parser: unknown;
|
66
|
+
readonly parserOptions: {
|
67
|
+
readonly parser: unknown;
|
68
|
+
readonly extraFileExtensions: readonly [
|
69
|
+
".svelte"
|
70
|
+
];
|
71
|
+
} & {
|
72
|
+
readonly project: "tsconfig.json";
|
73
|
+
readonly sourceType: "module";
|
74
|
+
readonly ecmaVersion: 2023;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
readonly processor: "svelte/svelte";
|
78
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
79
|
+
readonly files: readonly [
|
80
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
81
|
+
...string[]
|
82
|
+
];
|
83
|
+
readonly ignores: readonly [
|
84
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
85
|
+
...string[]
|
86
|
+
];
|
87
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
88
|
+
import("../interface/config/rule.js").State,
|
89
|
+
...unknown[]
|
90
|
+
]>>;
|
91
|
+
} | {
|
92
|
+
readonly languageOptions: {
|
93
|
+
readonly parser: unknown;
|
94
|
+
readonly parserOptions: {
|
95
|
+
readonly project: "tsconfig.json";
|
96
|
+
readonly sourceType: "module";
|
97
|
+
readonly ecmaVersion: 2023;
|
98
|
+
};
|
99
|
+
};
|
100
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
101
|
+
readonly files: readonly [
|
102
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
103
|
+
...string[]
|
104
|
+
];
|
105
|
+
readonly ignores: readonly [
|
106
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
107
|
+
...string[]
|
108
|
+
];
|
109
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
110
|
+
import("../interface/config/rule.js").State,
|
111
|
+
...unknown[]
|
112
|
+
]>>;
|
113
|
+
} | {
|
114
|
+
readonly languageOptions: object;
|
115
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
116
|
+
readonly files: readonly [
|
117
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
118
|
+
...string[]
|
119
|
+
];
|
120
|
+
readonly ignores: readonly [
|
121
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
122
|
+
...string[]
|
123
|
+
];
|
124
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
125
|
+
import("../interface/config/rule.js").State,
|
126
|
+
...unknown[]
|
127
|
+
]>>;
|
128
|
+
} | {
|
129
|
+
readonly languageOptions: object;
|
130
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
131
|
+
readonly files: readonly [
|
132
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
133
|
+
...string[]
|
134
|
+
];
|
135
|
+
readonly ignores: readonly [
|
136
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
137
|
+
...string[]
|
138
|
+
];
|
139
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
140
|
+
import("../interface/config/rule.js").State,
|
141
|
+
...unknown[]
|
142
|
+
]>>;
|
143
|
+
} | {
|
144
|
+
readonly languageOptions: object;
|
145
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
146
|
+
readonly files: readonly [
|
147
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
148
|
+
...string[]
|
149
|
+
];
|
150
|
+
readonly ignores: readonly [
|
151
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
152
|
+
...string[]
|
153
|
+
];
|
154
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
155
|
+
import("../interface/config/rule.js").State,
|
156
|
+
...unknown[]
|
157
|
+
]>>;
|
158
|
+
} | {
|
159
|
+
readonly languageOptions: object;
|
160
|
+
readonly name: `linted/js:${string}` | `linted/ts:${string}` | `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/html:${string}` | `linted/json:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}`;
|
161
|
+
readonly files: readonly [
|
162
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
163
|
+
...string[]
|
164
|
+
];
|
165
|
+
readonly ignores: readonly [
|
166
|
+
...Readonly<Record<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml" | "*", readonly string[]>>[S],
|
167
|
+
...string[]
|
168
|
+
];
|
169
|
+
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
170
|
+
import("../interface/config/rule.js").State,
|
171
|
+
...unknown[]
|
172
|
+
]>>;
|
173
|
+
})[];
|
174
|
+
}
|
175
|
+
//# sourceMappingURL=factory.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAExC,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC,qBAAa,OAAO;aAOA,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;IAN7C,SAAgB,UAAU,EAAE;QAC1B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,CAAC;KACjD,CAAC;gBAGgB,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,EAC3C,EAAE,GAAG,EAAE,MAAW,EAAE,GAAG,MAAM,EAAE,GAAE,KAAK,CAAC,YAAY,CAAe;IAKpE,IAAW,QAAQ;;;;;;;;;;MAkBlB;IAED,IAAW,OAAO;;;MAkBjB;IAEM,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BnF"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Ruleset } from "./ruleset.js";
|
2
|
+
export class Factory {
|
3
|
+
defaults;
|
4
|
+
extensions;
|
5
|
+
constructor(defaults, { "*": global = {}, ...scopes } = {}) {
|
6
|
+
this.defaults = defaults;
|
7
|
+
this.extensions = { global, scopes };
|
8
|
+
}
|
9
|
+
get settings() {
|
10
|
+
const { defaults: { settings }, extensions: { global: { noInlineConfig = settings.noInlineConfig, reportUnusedDisableDirectives = settings.reportUnusedDisableDirectives, sourceType = settings.sourceType, ecmaVersion = settings.ecmaVersion, }, }, } = this;
|
11
|
+
return {
|
12
|
+
name: "linted/*/settings",
|
13
|
+
linterOptions: { noInlineConfig, reportUnusedDisableDirectives },
|
14
|
+
languageOptions: { sourceType, ecmaVersion },
|
15
|
+
};
|
16
|
+
}
|
17
|
+
get ignores() {
|
18
|
+
const { defaults: { ignores: { "*": defaults } }, extensions: { global: { ignores = [], override = false, }, }, } = this;
|
19
|
+
return {
|
20
|
+
name: "linted/*/ignores",
|
21
|
+
ignores: [
|
22
|
+
...override ? [] : defaults,
|
23
|
+
...ignores,
|
24
|
+
],
|
25
|
+
};
|
26
|
+
}
|
27
|
+
scope(scope, settings) {
|
28
|
+
const { defaults: { files: { [scope]: defaultFiles }, ignores: { [scope]: defaultIgnores }, rules: { [scope]: defaultRules }, }, extensions: { scopes: { [scope]: scopeExtension = {} } }, } = this, { files: extendFiles = [], ignores: extendIgnores = [], rules: extendRules, } = scopeExtension, files = [...defaultFiles, ...extendFiles], ignores = [...defaultIgnores, ...extendIgnores], ruleset = new Ruleset(scope, defaultRules, extendRules);
|
29
|
+
if (ruleset.scope !== settings.scope)
|
30
|
+
throw new TypeError(`Scope mismatch between config "${settings.scope} and inner ruleset "${ruleset.scope}"`);
|
31
|
+
return files.length < 1
|
32
|
+
? []
|
33
|
+
: ruleset.ruleset.map(({ id, rules }) => ({
|
34
|
+
name: `linted/${id}`,
|
35
|
+
files,
|
36
|
+
ignores,
|
37
|
+
rules,
|
38
|
+
...settings.option,
|
39
|
+
}));
|
40
|
+
}
|
41
|
+
}
|
42
|
+
//# sourceMappingURL=factory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,OAAO,OAAO;IAOA;IANF,UAAU,CAGxB;IAEF,YACkB,QAA2B,EAC3C,EAAE,GAAG,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,MAAM,KAA0B,EAAW;QADlD,aAAQ,GAAR,QAAQ,CAAmB;QAG3C,IAAI,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,MAAM,EAAW,CAAC;IAChD,CAAC;IAED,IAAW,QAAQ;QACjB,MAAM,EACJ,QAAQ,EAAE,EAAE,QAAQ,EAAE,EACtB,UAAU,EAAE,EACV,MAAM,EAAE,EACN,cAAc,GAAG,QAAQ,CAAC,cAAc,EACxC,6BAA6B,GAAG,QAAQ,CAAC,6BAA6B,EACtE,UAAU,GAAG,QAAQ,CAAC,UAAU,EAChC,WAAW,GAAG,QAAQ,CAAC,WAAW,GACnC,GACF,GACF,GAAG,IAAI,CAAC;QAET,OAAO;YACL,IAAI,EAAE,mBAAmB;YACzB,aAAa,EAAE,EAAE,cAAc,EAAE,6BAA6B,EAAW;YACzE,eAAe,EAAE,EAAE,UAAU,EAAE,WAAW,EAAW;SAC7C,CAAC;IACb,CAAC;IAED,IAAW,OAAO;QAChB,MAAM,EACJ,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EACxC,UAAU,EAAE,EACV,MAAM,EAAE,EACN,OAAO,GAAG,EAAW,EACrB,QAAQ,GAAG,KAAK,GACjB,GACF,GACF,GAAG,IAAI,CAAC;QAET,OAAO;YACL,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE;gBACP,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAW,CAAC,CAAC,CAAC,QAAQ;gBACpC,GAAG,OAAO;aACF;SACF,CAAC;IACb,CAAC;IAEM,KAAK,CAAmB,KAAQ,EAAE,QAAyC;QAChF,MAAM,EACJ,QAAQ,EAAE,EACR,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,EAChC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,EACpC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,GACjC,EACD,UAAU,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,EAAW,EAAE,EAAE,GAClE,GAAG,IAAI,EACR,EACE,KAAK,EAAE,WAAW,GAAG,EAAW,EAChC,OAAO,EAAE,aAAa,GAAG,EAAW,EACpC,KAAK,EAAE,WAAW,GACnB,GAAG,cAAc,EAClB,KAAK,GAAG,CAAC,GAAG,YAAY,EAAE,GAAG,WAAW,CAAU,EAClD,OAAO,GAAG,CAAC,GAAG,cAAc,EAAE,GAAG,aAAa,CAAU,EACxD,OAAO,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;QAExD,IAAI,OAAO,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK;YAClC,MAAM,IAAI,SAAS,CAAC,kCAAkC,QAAQ,CAAC,KAAK,uBAAuB,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC;QAE/G,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,EAAW;YACb,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;gBACxC,IAAI,EAAE,UAAU,EAAE,EAAE;gBACpB,KAAK;gBACL,OAAO;gBACP,KAAK;gBACL,GAAG,QAAQ,CAAC,MAAM;aACT,CAAA,CAAC,CAAC;IACjB,CAAC;CACF"}
|
package/dist/factory/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/factory/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import type { Scopes,
|
1
|
+
import type { Scopes, Rule } from "../index.js";
|
2
2
|
export declare class Ruleset {
|
3
3
|
readonly scope: Scopes;
|
4
4
|
readonly ruleset: {
|
5
5
|
id: `${Scopes}:${string}`;
|
6
|
-
rules:
|
6
|
+
rules: Rule.Config;
|
7
7
|
}[];
|
8
|
-
constructor(scope: Scopes, defaults:
|
8
|
+
constructor(scope: Scopes, defaults: readonly Rule.Entry[], override?: Rule.Config);
|
9
9
|
}
|
10
10
|
//# sourceMappingURL=ruleset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAEvC,qBAAa,OAAO;aAIA,KAAK,EAAE,MAAM;IAH/B,SAAgB,OAAO,EAAE;QAAE,EAAE,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAA;KAAE,EAAE,CAAC;gBAG3D,KAAK,EAAE,MAAM,EAC7B,QAAQ,EAAE,SAAS,IAAI,CAAC,KAAK,EAAE,EAC/B,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM;CAczB"}
|
package/dist/factory/ruleset.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
export class Ruleset {
|
2
2
|
scope;
|
3
3
|
ruleset;
|
4
|
-
constructor(scope, defaults,
|
4
|
+
constructor(scope, defaults, override) {
|
5
5
|
this.scope = scope;
|
6
6
|
const map = ([id, rules]) => ({
|
7
7
|
id: `${scope}:${id}`,
|
@@ -9,9 +9,9 @@ export class Ruleset {
|
|
9
9
|
});
|
10
10
|
this.ruleset = [
|
11
11
|
...defaults.map(rule => map(rule)),
|
12
|
-
...typeof
|
12
|
+
...typeof override === "undefined"
|
13
13
|
? []
|
14
|
-
: [map([`${scope}:override`,
|
14
|
+
: [map([`${scope}:override`, override])],
|
15
15
|
];
|
16
16
|
}
|
17
17
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,CAAsD;IAE7E,YACkB,KAAa,EAC7B,QAA+B,EAC/B,QAAsB;QAFN,UAAK,GAAL,KAAK,CAAQ;QAI7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,CAAa,EAAE,EAAE,CAAC,CAAC;YACxC,EAAE,EAAE,GAAG,KAAK,IAAI,EAAE,EAAE;YACpB,KAAK;SACI,CAAA,CAAC;QAEZ,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClC,GAAG,OAAO,QAAQ,KAAK,WAAW;gBAChC,CAAC,CAAC,EAAW;gBACb,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAU;SAC3C,CAAC;IACb,CAAC;CACF"}
|
@@ -6,8 +6,7 @@ import html from "./scopes/html.js";
|
|
6
6
|
import json from "./scopes/json.js";
|
7
7
|
import jsonc from "./scopes/jsonc.js";
|
8
8
|
import yml from "./scopes/yml.js";
|
9
|
-
export type * from "./
|
10
|
-
export type * from "./proto.js";
|
9
|
+
export type * from "./setting.js";
|
11
10
|
declare const _default: {
|
12
11
|
readonly js: typeof js;
|
13
12
|
readonly ts: typeof ts;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,mBAAmB,WAAW,CAAC;;;;;;;;;;;AAC/B,wBASW"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAG/B,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
export default class
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
export default class HtmlSetting extends ScopeSetting<"html", true> {
|
3
3
|
readonly scope = "html";
|
4
4
|
readonly processor: {};
|
5
5
|
readonly language: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,EACN,IAAI,CACL;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAGxC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
export default class
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
export default class JsSetting extends ScopeSetting<"js"> {
|
3
3
|
readonly scope = "js";
|
4
4
|
readonly processor: {};
|
5
5
|
readonly language: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY,CAAC,IAAI,CAAC;IACvD,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe,OAEzB;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAkB;IACvC,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,OAAO,EAAW,CAAC;IACrB,CAAC;CACF"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
export default class
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
export default class JsonSetting extends ScopeSetting<"json", true> {
|
3
3
|
readonly scope = "json";
|
4
4
|
readonly processor: {};
|
5
5
|
readonly language: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,EACN,IAAI,CACL;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAGxC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
export default class
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
export default class JsoncSetting extends ScopeSetting<"jsonc", true> {
|
3
3
|
readonly scope = "jsonc";
|
4
4
|
readonly processor: {};
|
5
5
|
readonly language: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,EACP,IAAI,CACL;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAGzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import
|
2
|
-
import type
|
3
|
-
export default class
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
import type TsSetting from "./ts.js";
|
3
|
+
export default class MochaSetting extends ScopeSetting<"mocha", TsSetting["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
|
4
4
|
readonly scope = "mocha";
|
5
5
|
readonly processor: {};
|
6
6
|
readonly language: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,EACP,SAAS,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACvD,CAAC,EACD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,KAAK,qBAAsB;IAE3C,IAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB;CACF"}
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import { mocha } from "globals";
|
2
|
+
import { ScopeSetting } from "../setting.js";
|
3
|
+
export default class MochaSetting extends ScopeSetting {
|
3
4
|
scope = "mocha";
|
4
5
|
processor = {};
|
5
6
|
language = {};
|
6
7
|
types = ["mocha"];
|
7
8
|
get languageOptions() {
|
8
|
-
const [parser] = this.parser
|
9
|
+
const [parser] = this.parser;
|
9
10
|
return {
|
10
11
|
parser,
|
11
12
|
parserOptions: {
|
@@ -13,7 +14,7 @@ export default class Mocha extends Option {
|
|
13
14
|
sourceType: "module",
|
14
15
|
ecmaVersion: 2023,
|
15
16
|
},
|
16
|
-
globals,
|
17
|
+
globals: mocha,
|
17
18
|
};
|
18
19
|
}
|
19
20
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAKzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAE3C,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aACT;YACV,OAAO,EAAE,KAAK;SACN,CAAC;IACb,CAAC;CACF"}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import
|
2
|
-
import type
|
3
|
-
export default class
|
4
|
-
parser: unknown;
|
5
|
-
extraFileExtensions: readonly [
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
import type TsSetting from "./ts.js";
|
3
|
+
export default class SvelteSetting extends ScopeSetting<"svelte", {
|
4
|
+
readonly parser: unknown;
|
5
|
+
readonly extraFileExtensions: readonly [
|
6
6
|
".svelte"
|
7
7
|
];
|
8
|
-
} &
|
9
|
-
processor: "svelte/svelte";
|
8
|
+
} & TsSetting["option"]["languageOptions"]["parserOptions"], 2, false, {
|
9
|
+
readonly processor: "svelte/svelte";
|
10
10
|
}> {
|
11
11
|
readonly scope = "svelte";
|
12
12
|
readonly processor: {
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY,CACrD,QAAQ,EACR;IACE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpD,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EAC3D,CAAC,EACD,KAAK,EACL;IAAE,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CACxC;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IACpE,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;;;;;;;;MAazB;CACF"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
export default class
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
export default class SvelteSetting extends ScopeSetting {
|
3
3
|
scope = "svelte";
|
4
4
|
processor = { processor: "svelte/svelte" };
|
5
5
|
language = {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAS1C;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IACpD,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAEvC,OAAO;YACL,MAAM;YACN,aAAa,EAAE;gBACb,MAAM,EAAE,QAAQ;gBAChB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aACT;SACF,CAAC;IACb,CAAC;CACF"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
2
|
-
export default class
|
3
|
-
project: "tsconfig.json";
|
4
|
-
sourceType: "module";
|
5
|
-
ecmaVersion: 2023;
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
export default class TsSetting extends ScopeSetting<"ts", {
|
3
|
+
readonly project: "tsconfig.json";
|
4
|
+
readonly sourceType: "module";
|
5
|
+
readonly ecmaVersion: 2023;
|
6
6
|
}, 1> {
|
7
7
|
readonly scope = "ts";
|
8
8
|
readonly processor: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY,CACjD,IAAI,EACJ;IACE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;CAC5B,EACD,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;;;;;;MAWzB;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAQtC;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aACT;SACF,CAAC;IACb,CAAC;CACF"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
export default class
|
1
|
+
import { ScopeSetting } from "../setting.js";
|
2
|
+
export default class YmlSetting extends ScopeSetting<"yml", true, 1> {
|
3
3
|
readonly scope = "yml";
|
4
4
|
readonly processor: {};
|
5
5
|
readonly language: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY,CAClD,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAIvC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|