@eslinted/core 13.1.0 → 13.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/factory/factory.d.ts +47 -46
- package/dist/factory/factory.d.ts.map +1 -1
- package/dist/factory/factory.js.map +1 -1
- package/dist/factory/ruleset.d.ts +4 -4
- package/dist/factory/ruleset.d.ts.map +1 -1
- package/dist/factory/ruleset.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interface/index.d.ts +1 -2
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/input.d.ts +5 -16
- package/dist/interface/input.d.ts.map +1 -1
- package/dist/interface/inputs/imports.d.ts +6 -0
- package/dist/interface/inputs/imports.d.ts.map +1 -0
- package/dist/interface/inputs/imports.js +2 -0
- package/dist/interface/inputs/imports.js.map +1 -0
- package/dist/interface/inputs/index.d.ts +3 -0
- package/dist/interface/inputs/index.d.ts.map +1 -0
- package/dist/interface/{config → inputs}/index.js.map +1 -1
- package/dist/interface/inputs/options/defaults.d.ts +8 -0
- package/dist/interface/inputs/options/defaults.d.ts.map +1 -0
- package/dist/interface/inputs/options/defaults.js +2 -0
- package/dist/interface/inputs/options/defaults.js.map +1 -0
- package/dist/interface/inputs/options/index.d.ts +13 -0
- package/dist/interface/inputs/options/index.d.ts.map +1 -0
- package/dist/interface/inputs/options/index.js.map +1 -0
- package/dist/interface/output.d.ts +6 -6
- package/dist/interface/output.d.ts.map +1 -1
- package/dist/interface/outputs/common/ignores.d.ts +5 -0
- package/dist/interface/outputs/common/ignores.d.ts.map +1 -0
- package/dist/interface/outputs/common/ignores.js.map +1 -0
- package/dist/interface/{configs/globals → outputs/common}/index.d.ts +0 -1
- package/dist/interface/outputs/common/index.d.ts.map +1 -0
- package/dist/interface/outputs/common/index.js.map +1 -0
- package/dist/interface/outputs/common/plugins.d.ts +5 -0
- package/dist/interface/outputs/common/plugins.d.ts.map +1 -0
- package/dist/interface/outputs/common/plugins.js.map +1 -0
- package/dist/interface/outputs/common/settings.d.ts +5 -0
- package/dist/interface/outputs/common/settings.d.ts.map +1 -0
- package/dist/interface/outputs/common/settings.js.map +1 -0
- package/dist/interface/{configs → outputs}/index.d.ts +1 -1
- package/dist/interface/outputs/index.d.ts.map +1 -0
- package/dist/interface/{imports → outputs}/index.js.map +1 -1
- package/dist/interface/{configs → outputs}/scoped.d.ts +1 -2
- package/dist/interface/outputs/scoped.d.ts.map +1 -0
- package/dist/interface/{configs → outputs}/scoped.js.map +1 -1
- package/dist/interface/{config → shared/config}/index.d.ts +3 -2
- package/dist/interface/shared/config/index.d.ts.map +1 -0
- package/dist/interface/shared/config/index.js.map +1 -0
- package/dist/interface/shared/config/rule/index.d.ts +7 -0
- package/dist/interface/shared/config/rule/index.d.ts.map +1 -0
- package/dist/interface/shared/config/rule/index.js +2 -0
- package/dist/interface/shared/config/rule/index.js.map +1 -0
- package/dist/interface/shared/index.d.ts +2 -0
- package/dist/interface/shared/index.d.ts.map +1 -0
- package/dist/interface/shared/index.js +2 -0
- package/dist/interface/{configs → shared}/index.js.map +1 -1
- package/dist/scopes/imports/index.d.ts.map +1 -0
- package/dist/scopes/imports/index.js +2 -0
- package/dist/scopes/imports/index.js.map +1 -0
- package/dist/scopes/imports/parsers.d.ts.map +1 -0
- package/dist/scopes/imports/parsers.js.map +1 -0
- package/dist/scopes/imports/plugins.d.ts.map +1 -0
- package/dist/scopes/imports/plugins.js.map +1 -0
- package/dist/scopes/index.d.ts +13 -0
- 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/factory.ts +7 -6
- package/src/factory/ruleset.ts +6 -6
- package/src/index.ts +4 -3
- package/src/interface/index.ts +1 -2
- package/src/interface/input.ts +12 -20
- package/src/interface/inputs/imports.ts +12 -0
- package/src/interface/inputs/index.ts +2 -0
- package/src/interface/inputs/options/defaults.ts +8 -0
- package/src/interface/inputs/options/index.ts +19 -0
- package/src/interface/output.ts +9 -6
- package/src/interface/outputs/common/ignores.ts +6 -0
- package/src/interface/{configs/globals → outputs/common}/index.ts +0 -1
- package/src/interface/outputs/common/plugins.ts +7 -0
- package/src/interface/outputs/common/settings.ts +7 -0
- package/src/interface/outputs/index.ts +2 -0
- package/src/interface/{configs → outputs}/scoped.ts +1 -2
- package/src/interface/{config → shared/config}/index.ts +18 -3
- package/src/interface/{config/rule.ts → shared/config/rule/index.ts} +3 -3
- package/src/interface/shared/index.ts +1 -0
- package/src/{scopes.spec.ts → scopes/index.spec.ts} +1 -1
- package/src/{scopes.ts → scopes/index.ts} +1 -0
- package/dist/interface/config/index.d.ts.map +0 -1
- package/dist/interface/config/rule.d.ts +0 -7
- package/dist/interface/config/rule.d.ts.map +0 -1
- package/dist/interface/config/rule.js +0 -2
- package/dist/interface/config/rule.js.map +0 -1
- package/dist/interface/configs/globals/ignores.d.ts +0 -6
- package/dist/interface/configs/globals/ignores.d.ts.map +0 -1
- package/dist/interface/configs/globals/ignores.js.map +0 -1
- package/dist/interface/configs/globals/index.d.ts.map +0 -1
- package/dist/interface/configs/globals/index.js.map +0 -1
- package/dist/interface/configs/globals/only/index.d.ts +0 -2
- package/dist/interface/configs/globals/only/index.d.ts.map +0 -1
- package/dist/interface/configs/globals/only/index.js.map +0 -1
- package/dist/interface/configs/globals/plugins.d.ts +0 -6
- package/dist/interface/configs/globals/plugins.d.ts.map +0 -1
- package/dist/interface/configs/globals/plugins.js.map +0 -1
- package/dist/interface/configs/globals/settings.d.ts +0 -7
- package/dist/interface/configs/globals/settings.d.ts.map +0 -1
- package/dist/interface/configs/globals/settings.js.map +0 -1
- package/dist/interface/configs/index.d.ts.map +0 -1
- package/dist/interface/configs/scoped.d.ts.map +0 -1
- package/dist/interface/imports/index.d.ts.map +0 -1
- package/dist/interface/imports/parsers.d.ts.map +0 -1
- package/dist/interface/imports/parsers.js.map +0 -1
- package/dist/interface/imports/plugins.d.ts.map +0 -1
- package/dist/interface/imports/plugins.js.map +0 -1
- package/dist/scopes.d.ts +0 -3
- 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/interface/configs/globals/ignores.ts +0 -10
- package/src/interface/configs/globals/only/index.ts +0 -4
- package/src/interface/configs/globals/plugins.ts +0 -10
- package/src/interface/configs/globals/settings.ts +0 -13
- package/src/interface/configs/index.ts +0 -2
- /package/dist/interface/{config → inputs}/index.js +0 -0
- /package/dist/interface/{configs/globals → inputs/options}/index.js +0 -0
- /package/dist/interface/{configs/globals → outputs/common}/ignores.js +0 -0
- /package/dist/interface/{configs/globals/only → outputs/common}/index.js +0 -0
- /package/dist/interface/{configs/globals → outputs/common}/plugins.js +0 -0
- /package/dist/interface/{configs/globals → outputs/common}/settings.js +0 -0
- /package/dist/interface/{configs → outputs}/index.js +0 -0
- /package/dist/interface/{configs → outputs}/scoped.js +0 -0
- /package/dist/interface/{imports → shared/config}/index.js +0 -0
- /package/dist/{interface → scopes}/imports/index.d.ts +0 -0
- /package/dist/{interface → scopes}/imports/parsers.d.ts +0 -0
- /package/dist/{interface → scopes}/imports/parsers.js +0 -0
- /package/dist/{interface → scopes}/imports/plugins.d.ts +0 -0
- /package/dist/{interface → scopes}/imports/plugins.js +0 -0
- /package/src/{interface → scopes}/imports/index.ts +0 -0
- /package/src/{interface → scopes}/imports/parsers.ts +0 -0
- /package/src/{interface → scopes}/imports/plugins.ts +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type { Scopes
|
|
1
|
+
import type { Scopes } from "../index.js";
|
|
2
|
+
import type Core from "../index.js";
|
|
2
3
|
import type Options from "./settings/index.js";
|
|
3
4
|
export declare class Factory {
|
|
4
|
-
readonly defaults:
|
|
5
|
+
readonly defaults: Parameters<typeof Core>[0]["defaults"];
|
|
5
6
|
readonly extensions: {
|
|
6
|
-
readonly global: NonNullable<
|
|
7
|
-
readonly scopes: Omit<
|
|
7
|
+
readonly global: NonNullable<Parameters<typeof Core>[0]["extensions"]["*"]>;
|
|
8
|
+
readonly scopes: Omit<Parameters<typeof Core>[0]["extensions"], "*">;
|
|
8
9
|
};
|
|
9
|
-
constructor(defaults:
|
|
10
|
+
constructor(defaults: Parameters<typeof Core>[0]["defaults"], { "*": global, ...scopes }?: Parameters<typeof Core>[0]["extensions"]);
|
|
10
11
|
get settings(): {
|
|
11
12
|
readonly name: "linted/*/settings";
|
|
12
13
|
readonly linterOptions: {
|
|
@@ -15,7 +16,7 @@ export declare class Factory {
|
|
|
15
16
|
};
|
|
16
17
|
readonly languageOptions: {
|
|
17
18
|
readonly sourceType: "module" | "script";
|
|
18
|
-
readonly ecmaVersion:
|
|
19
|
+
readonly ecmaVersion: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
get ignores(): {
|
|
@@ -32,32 +33,32 @@ export declare class Factory {
|
|
|
32
33
|
readonly ecmaVersion: 2023;
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
|
-
readonly name: `linted/
|
|
36
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
36
37
|
readonly files: readonly [
|
|
37
|
-
...Readonly<Record<"
|
|
38
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
38
39
|
...string[]
|
|
39
40
|
];
|
|
40
41
|
readonly ignores: readonly [
|
|
41
|
-
...Readonly<Record<"
|
|
42
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
42
43
|
...string[]
|
|
43
44
|
];
|
|
44
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
45
|
-
import("../interface/config/rule.js").State,
|
|
45
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
46
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
46
47
|
...unknown[]
|
|
47
48
|
]>>;
|
|
48
49
|
} | {
|
|
49
50
|
readonly languageOptions: object;
|
|
50
|
-
readonly name: `linted/
|
|
51
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
51
52
|
readonly files: readonly [
|
|
52
|
-
...Readonly<Record<"
|
|
53
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
53
54
|
...string[]
|
|
54
55
|
];
|
|
55
56
|
readonly ignores: readonly [
|
|
56
|
-
...Readonly<Record<"
|
|
57
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
57
58
|
...string[]
|
|
58
59
|
];
|
|
59
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
60
|
-
import("../interface/config/rule.js").State,
|
|
60
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
61
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
61
62
|
...unknown[]
|
|
62
63
|
]>>;
|
|
63
64
|
} | {
|
|
@@ -75,17 +76,17 @@ export declare class Factory {
|
|
|
75
76
|
};
|
|
76
77
|
};
|
|
77
78
|
readonly processor: "svelte/svelte";
|
|
78
|
-
readonly name: `linted/
|
|
79
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
79
80
|
readonly files: readonly [
|
|
80
|
-
...Readonly<Record<"
|
|
81
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
81
82
|
...string[]
|
|
82
83
|
];
|
|
83
84
|
readonly ignores: readonly [
|
|
84
|
-
...Readonly<Record<"
|
|
85
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
85
86
|
...string[]
|
|
86
87
|
];
|
|
87
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
88
|
-
import("../interface/config/rule.js").State,
|
|
88
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
89
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
89
90
|
...unknown[]
|
|
90
91
|
]>>;
|
|
91
92
|
} | {
|
|
@@ -97,77 +98,77 @@ export declare class Factory {
|
|
|
97
98
|
readonly ecmaVersion: 2023;
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
|
-
readonly name: `linted/
|
|
101
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
101
102
|
readonly files: readonly [
|
|
102
|
-
...Readonly<Record<"
|
|
103
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
103
104
|
...string[]
|
|
104
105
|
];
|
|
105
106
|
readonly ignores: readonly [
|
|
106
|
-
...Readonly<Record<"
|
|
107
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
107
108
|
...string[]
|
|
108
109
|
];
|
|
109
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
110
|
-
import("../interface/config/rule.js").State,
|
|
110
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
111
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
111
112
|
...unknown[]
|
|
112
113
|
]>>;
|
|
113
114
|
} | {
|
|
114
115
|
readonly languageOptions: object;
|
|
115
|
-
readonly name: `linted/
|
|
116
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
116
117
|
readonly files: readonly [
|
|
117
|
-
...Readonly<Record<"
|
|
118
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
118
119
|
...string[]
|
|
119
120
|
];
|
|
120
121
|
readonly ignores: readonly [
|
|
121
|
-
...Readonly<Record<"
|
|
122
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
122
123
|
...string[]
|
|
123
124
|
];
|
|
124
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
125
|
-
import("../interface/config/rule.js").State,
|
|
125
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
126
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
126
127
|
...unknown[]
|
|
127
128
|
]>>;
|
|
128
129
|
} | {
|
|
129
130
|
readonly languageOptions: object;
|
|
130
|
-
readonly name: `linted/
|
|
131
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
131
132
|
readonly files: readonly [
|
|
132
|
-
...Readonly<Record<"
|
|
133
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
133
134
|
...string[]
|
|
134
135
|
];
|
|
135
136
|
readonly ignores: readonly [
|
|
136
|
-
...Readonly<Record<"
|
|
137
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
137
138
|
...string[]
|
|
138
139
|
];
|
|
139
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
140
|
-
import("../interface/config/rule.js").State,
|
|
140
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
141
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
141
142
|
...unknown[]
|
|
142
143
|
]>>;
|
|
143
144
|
} | {
|
|
144
145
|
readonly languageOptions: object;
|
|
145
|
-
readonly name: `linted/
|
|
146
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
146
147
|
readonly files: readonly [
|
|
147
|
-
...Readonly<Record<"
|
|
148
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
148
149
|
...string[]
|
|
149
150
|
];
|
|
150
151
|
readonly ignores: readonly [
|
|
151
|
-
...Readonly<Record<"
|
|
152
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
152
153
|
...string[]
|
|
153
154
|
];
|
|
154
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
155
|
-
import("../interface/config/rule.js").State,
|
|
155
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
156
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
156
157
|
...unknown[]
|
|
157
158
|
]>>;
|
|
158
159
|
} | {
|
|
159
160
|
readonly languageOptions: object;
|
|
160
|
-
readonly name: `linted/
|
|
161
|
+
readonly name: `linted/svelte:${string}` | `linted/mocha:${string}` | `linted/jsonc:${string}` | `linted/yml:${string}` | `linted/ts:${string}` | `linted/html:${string}` | `linted/js:${string}` | `linted/json:${string}`;
|
|
161
162
|
readonly files: readonly [
|
|
162
|
-
...Readonly<Record<"
|
|
163
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
163
164
|
...string[]
|
|
164
165
|
];
|
|
165
166
|
readonly ignores: readonly [
|
|
166
|
-
...Readonly<Record<"
|
|
167
|
+
...Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", readonly string[]>>[S],
|
|
167
168
|
...string[]
|
|
168
169
|
];
|
|
169
|
-
readonly rules: Readonly<Record<string, import("../interface/config/rule.js").State | readonly [
|
|
170
|
-
import("../interface/config/rule.js").State,
|
|
170
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
|
171
|
+
import("../interface/shared/config/rule/index.js").State,
|
|
171
172
|
...unknown[]
|
|
172
173
|
]>>;
|
|
173
174
|
})[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,IAAI,CAAC;AAE3B,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC,qBAAa,OAAO;aAOA,QAAQ,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IANlE,SAAgB,UAAU,EAAE;QAC1B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5E,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,CAAC;KACtE,CAAC;gBAGgB,QAAQ,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAChE,EAAE,GAAG,EAAE,MAAW,EAAE,GAAG,MAAM,EAAE,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAe;IAKzF,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mapp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
|
1
|
+
import type { Rule } from "../index.js";
|
|
2
|
+
export declare class Ruleset<Scopes extends string> {
|
|
3
3
|
readonly scope: Scopes;
|
|
4
4
|
readonly ruleset: {
|
|
5
5
|
id: `${Scopes}:${string}`;
|
|
6
|
-
rules: Rule.
|
|
6
|
+
rules: Rule.Bag;
|
|
7
7
|
}[];
|
|
8
|
-
constructor(scope: Scopes, defaults: readonly Rule.
|
|
8
|
+
constructor(scope: Scopes, defaults: readonly Rule.NamedBag[], override?: Rule.Bag);
|
|
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,EAAE,
|
|
1
|
+
{"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE/B,qBAAa,OAAO,CAAC,MAAM,SAAS,MAAM;aAItB,KAAK,EAAE,MAAM;IAH/B,SAAgB,OAAO,EAAE;QAAE,EAAE,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAA;KAAE,EAAE,CAAC;gBAGxD,KAAK,EAAE,MAAM,EAC7B,QAAQ,EAAE,SAAS,IAAI,CAAC,QAAQ,EAAE,EAClC,QAAQ,CAAC,EAAE,IAAI,CAAC,GAAG;CActB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,
|
|
1
|
+
{"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../src/factory/ruleset.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,CAAmD;IAE1E,YACkB,KAAa,EAC7B,QAAkC,EAClC,QAAmB;QAFH,UAAK,GAAL,KAAK,CAAQ;QAI7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,CAAgB,EAAE,EAAE,CAAC,CAAC;YAC3C,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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Input, Output } from "./interface/index.js";
|
|
2
|
-
|
|
2
|
+
import type { Scopes, Plugins, Parsers } from "./scopes/index.js";
|
|
3
3
|
export type * from "./interface/index.js";
|
|
4
|
-
export
|
|
4
|
+
export type * from "./scopes/index.js";
|
|
5
|
+
export default function ({ imports: { plugins, parsers }, defaults, extensions, }: Input<Scopes, Plugins, Parsers>): Output<Scopes, Plugins>;
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIzD,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,UAAU,CAAC;AAC9B,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwB3D"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAI7C,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACsB;IAChC,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,EACjD,OAAO,GAA+E;YACpF,EAAE,EAAE,IAAI,OAAO,CAAC,EAAE,CAAC,EAAW,CAAC;YAC/B,EAAE,EAAE,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAU,CAAC;YACzC,MAAM,EAAE,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAU,CAAC;YACjE,KAAK,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,CAAU,CAAC;YAC/C,IAAI,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAU,CAAC;YAC/C,IAAI,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAU,CAAC;YAChD,KAAK,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAU,CAAC;YAClD,GAAG,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAU,CAAC;SACpC,CAAC;QAEX,OAAO;YACL,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAW;YAC9C,OAAO,CAAC,QAAQ;YAChB,OAAO,CAAC,OAAO;YACf,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;SACxD,CAAC;IACb,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,UAAU,CAAC"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
readonly parsers: Readonly<Record<Imports.Parsers, unknown>>;
|
|
7
|
-
};
|
|
8
|
-
readonly defaults: {
|
|
9
|
-
readonly settings: Config["linterOptions"] & Pick<Config["languageOptions"], "ecmaVersion" | "sourceType">;
|
|
10
|
-
readonly files: Readonly<Record<"*" | Scopes, readonly string[]>>;
|
|
11
|
-
readonly ignores: Input["defaults"]["files"];
|
|
12
|
-
readonly rules: Readonly<Record<Scopes, readonly Rule.Entry[]>>;
|
|
13
|
-
};
|
|
14
|
-
readonly extensions: Readonly<Partial<Record<"*", Partial<Input["defaults"]["settings"] & Pick<Config, "ignores"> & {
|
|
15
|
-
readonly override?: boolean;
|
|
16
|
-
}>> & Record<Scopes, Partial<Pick<Config, "files" | "ignores" | "rules">>>>>;
|
|
1
|
+
import type * as Inputs from "./inputs/index.js";
|
|
2
|
+
export interface Input<Scopes extends string, Plugins extends string, Parsers extends string> {
|
|
3
|
+
readonly imports: Inputs.Imports<Plugins, Parsers>;
|
|
4
|
+
readonly defaults: Inputs.Defaults<Scopes>;
|
|
5
|
+
readonly extensions: Inputs.Extensions<Scopes>;
|
|
17
6
|
}
|
|
18
7
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/interface/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/interface/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,KAAK,CACpB,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,EACtB,OAAO,SAAS,MAAM;IAEtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAC9B,OAAO,EACP,OAAO,CACR,CAAC;IACF,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;CAChD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Config } from "../shared/index.js";
|
|
2
|
+
export interface Imports<Plugins extends string, Parsers extends string> {
|
|
3
|
+
readonly plugins: Config<Plugins>["plugins"];
|
|
4
|
+
readonly parsers: Readonly<Record<Parsers, unknown>>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../../src/interface/inputs/imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,OAAO,CACtB,OAAO,SAAS,MAAM,EACtB,OAAO,SAAS,MAAM;IAEtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAC/B,OAAO,EACP,OAAO,CACR,CAAC,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../../src/interface/inputs/imports.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/inputs/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/inputs/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Config, Rule } from "../../shared/index.js";
|
|
2
|
+
export interface Defaults<Scopes extends string> {
|
|
3
|
+
readonly settings: Config["linterOptions"] & Config["languageOptions"];
|
|
4
|
+
readonly files: Readonly<Record<"*" | Scopes, readonly string[]>>;
|
|
5
|
+
readonly ignores: Defaults<Scopes>["files"];
|
|
6
|
+
readonly rules: Readonly<Record<Scopes, readonly Rule.NamedBag[]>>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/interface/inputs/options/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,WAAW,QAAQ,CAAC,MAAM,SAAS,MAAM;IAC7C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACvE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;CACpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../src/interface/inputs/options/defaults.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Defaults } from "./defaults.js";
|
|
2
|
+
export type * from "./defaults.js";
|
|
3
|
+
export type Extensions<Scopes extends string> = ({
|
|
4
|
+
readonly "*"?: Partial<Defaults<Scopes>["settings"]> & {
|
|
5
|
+
readonly override?: boolean;
|
|
6
|
+
readonly ignores?: Defaults<Scopes>["ignores"]["*"];
|
|
7
|
+
};
|
|
8
|
+
} & Partial<Record<Scopes, {
|
|
9
|
+
readonly files?: Defaults<Scopes>["files"][Scopes];
|
|
10
|
+
readonly ignores?: Defaults<Scopes>["ignores"][Scopes];
|
|
11
|
+
readonly rules?: Defaults<Scopes>["rules"][Scopes][number][1];
|
|
12
|
+
}>>);
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/inputs/options/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,mBAAmB,YAAY,CAAC;AAChC,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI,CAC5C;IACA,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG;QACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC;KACrD,CAAC;CACH,GACC,OAAO,CAAC,MAAM,CACd,MAAM,EACN;IACE,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IACnD,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D,CACF,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/inputs/options/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type * as Configs from "./
|
|
1
|
+
import type * as Configs from "./outputs/index.js";
|
|
2
2
|
export type { Configs };
|
|
3
|
-
export type Output = readonly [
|
|
4
|
-
Configs.
|
|
5
|
-
Configs.
|
|
6
|
-
Configs.
|
|
7
|
-
...readonly Configs.Scoped[]
|
|
3
|
+
export type Output<Scopes extends string, Plugins extends string> = readonly [
|
|
4
|
+
Configs.Common.Plugins<Plugins>,
|
|
5
|
+
Configs.Common.Settings,
|
|
6
|
+
Configs.Common.Ignores,
|
|
7
|
+
...readonly Configs.Scoped<Scopes>[]
|
|
8
8
|
];
|
|
9
9
|
//# sourceMappingURL=output.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/interface/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,WAAW,CAAC;AAE1C,YAAY,EAAE,OAAO,EAAE,CAAC;AACxB,MAAM,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/interface/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,WAAW,CAAC;AAE1C,YAAY,EAAE,OAAO,EAAE,CAAC;AACxB,MAAM,MAAM,MAAM,CAChB,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,IACpB,SAAS;IACX,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ;IACvB,OAAO,CAAC,MAAM,CAAC,OAAO;IACtB,GAAG,SAAS,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;CACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG,aAAa,CACjC;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,EACrC,SAAS,CACV,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/ignores.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,OAAO,CAAC,OAAO,SAAS,MAAM,IAAI,aAAa,CACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,EACrC,SAAS,EACT,OAAO,CACR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/plugins.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/outputs/common/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAG,aAAa,CAClC;IAAE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAA;CAAE,EACpC,eAAe,GACf,iBAAiB,CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interface/outputs/common/settings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/outputs/index.ts"],"names":[],"mappings":"AAAA,YAAY,KAAK,MAAM,MAAM,UAAU,CAAC;AACxC,mBAAmB,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/outputs/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Config } from "../index.js";
|
|
2
|
-
|
|
3
|
-
export type Scoped = {
|
|
2
|
+
export type Scoped<Scopes extends string> = {
|
|
4
3
|
readonly name: `linted/${Scopes}:${string}`;
|
|
5
4
|
readonly languageOptions: Omit<Config["languageOptions"], "sourceType" | "ecmaVersion">;
|
|
6
5
|
} & Pick<Config, "files" | "ignores" | "rules" | "processor" | "language" | "settings">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../src/interface/outputs/scoped.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAEjC,MAAM,MAAM,MAAM,CAAC,MAAM,SAAS,MAAM,IAAI;IAC1C,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,IAAI,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC,CAAC;CACzF,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scoped.js","sourceRoot":"","sources":["../../../src/interface/
|
|
1
|
+
{"version":3,"file":"scoped.js","sourceRoot":"","sources":["../../../src/interface/outputs/scoped.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as Rule from "./rule.js";
|
|
1
|
+
import type * as Rule from "./rule/index.js";
|
|
2
2
|
export type { Rule };
|
|
3
3
|
export interface Config<Plugins extends string = string> {
|
|
4
4
|
readonly name: `linted/${string}`;
|
|
@@ -7,7 +7,7 @@ export interface Config<Plugins extends string = string> {
|
|
|
7
7
|
}>>;
|
|
8
8
|
readonly files: readonly string[];
|
|
9
9
|
readonly ignores: readonly string[];
|
|
10
|
-
readonly rules: Rule.
|
|
10
|
+
readonly rules: Rule.Bag;
|
|
11
11
|
readonly linterOptions: {
|
|
12
12
|
readonly noInlineConfig: boolean;
|
|
13
13
|
readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
|
|
@@ -20,4 +20,5 @@ export interface Config<Plugins extends string = string> {
|
|
|
20
20
|
readonly language?: string;
|
|
21
21
|
readonly settings?: Readonly<Record<string, unknown>>;
|
|
22
22
|
}
|
|
23
|
+
export type PartialConfig<This extends object, Picks extends Exclude<keyof Config, keyof This>, Plugins extends string = string> = (This & Pick<Config<Plugins>, Picks> & Readonly<Partial<Record<Exclude<keyof Config, Picks | keyof This>, never>>>);
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/shared/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,QAAQ,CAAC;AAEpC,YAAY,EAAE,IAAI,EAAE,CAAC;AACrB,MAAM,WAAW,MAAM,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrD,QAAQ,CAAC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,CAAC,MAAM,CACvB,OAAO,CAAC,MAAM,MAAM,EAAE,KAAK,GAAG,MAAM,IAAI,CAAC,EACzC,KAAK,CACN,CAAC,CAAC,CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/shared/config/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/shared/config/rule/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,SAAS;IAC9B,MAAM;IACN,GAAG;CACJ,CAAC;AACF,MAAM,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAC/B,MAAM,EACJ,KAAK,GACL,SAAS,CAAC,KAAK,EAAE,GAAG,SAAS,OAAO,EAAE,CAAC,CAC1C,CAAC,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAChB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
|