@eslinted/core 13.1.0 → 13.2.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 +42 -42
- package/dist/factory/factory.d.ts.map +1 -1
- package/dist/factory/factory.js +11 -6
- package/dist/factory/factory.js.map +1 -1
- package/dist/index.d.ts +1 -1
- 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 -15
- 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 -5
- 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 +16 -7
- package/src/index.ts +2 -2
- package/src/interface/index.ts +1 -2
- package/src/interface/input.ts +8 -19
- 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 +6 -5
- 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/factory/ruleset.d.ts +0 -10
- package/dist/factory/ruleset.d.ts.map +0 -1
- package/dist/factory/ruleset.js +0 -18
- package/dist/factory/ruleset.js.map +0 -1
- 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/factory/ruleset.ts +0 -23
- 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,4 +1,4 @@
|
|
1
|
-
import type { Scopes, Input } from "../index.js";
|
1
|
+
import type { Scopes, Rule, Input } from "../index.js";
|
2
2
|
import type Options from "./settings/index.js";
|
3
3
|
export declare class Factory {
|
4
4
|
readonly defaults: Input["defaults"];
|
@@ -15,7 +15,7 @@ export declare class Factory {
|
|
15
15
|
};
|
16
16
|
readonly languageOptions: {
|
17
17
|
readonly sourceType: "module" | "script";
|
18
|
-
readonly ecmaVersion:
|
18
|
+
readonly ecmaVersion: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
|
19
19
|
};
|
20
20
|
};
|
21
21
|
get ignores(): {
|
@@ -32,32 +32,32 @@ export declare class Factory {
|
|
32
32
|
readonly ecmaVersion: 2023;
|
33
33
|
};
|
34
34
|
};
|
35
|
-
readonly name: `linted/
|
35
|
+
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
36
|
readonly files: readonly [
|
37
|
-
...Readonly<Record<"
|
37
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
38
38
|
...string[]
|
39
39
|
];
|
40
40
|
readonly ignores: readonly [
|
41
|
-
...Readonly<Record<"
|
41
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
42
42
|
...string[]
|
43
43
|
];
|
44
|
-
readonly rules: Readonly<Record<string,
|
45
|
-
|
44
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
45
|
+
Rule.State,
|
46
46
|
...unknown[]
|
47
47
|
]>>;
|
48
48
|
} | {
|
49
49
|
readonly languageOptions: object;
|
50
|
-
readonly name: `linted/
|
50
|
+
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
51
|
readonly files: readonly [
|
52
|
-
...Readonly<Record<"
|
52
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
53
53
|
...string[]
|
54
54
|
];
|
55
55
|
readonly ignores: readonly [
|
56
|
-
...Readonly<Record<"
|
56
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
57
57
|
...string[]
|
58
58
|
];
|
59
|
-
readonly rules: Readonly<Record<string,
|
60
|
-
|
59
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
60
|
+
Rule.State,
|
61
61
|
...unknown[]
|
62
62
|
]>>;
|
63
63
|
} | {
|
@@ -75,17 +75,17 @@ export declare class Factory {
|
|
75
75
|
};
|
76
76
|
};
|
77
77
|
readonly processor: "svelte/svelte";
|
78
|
-
readonly name: `linted/
|
78
|
+
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
79
|
readonly files: readonly [
|
80
|
-
...Readonly<Record<"
|
80
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
81
81
|
...string[]
|
82
82
|
];
|
83
83
|
readonly ignores: readonly [
|
84
|
-
...Readonly<Record<"
|
84
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
85
85
|
...string[]
|
86
86
|
];
|
87
|
-
readonly rules: Readonly<Record<string,
|
88
|
-
|
87
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
88
|
+
Rule.State,
|
89
89
|
...unknown[]
|
90
90
|
]>>;
|
91
91
|
} | {
|
@@ -97,77 +97,77 @@ export declare class Factory {
|
|
97
97
|
readonly ecmaVersion: 2023;
|
98
98
|
};
|
99
99
|
};
|
100
|
-
readonly name: `linted/
|
100
|
+
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
101
|
readonly files: readonly [
|
102
|
-
...Readonly<Record<"
|
102
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
103
103
|
...string[]
|
104
104
|
];
|
105
105
|
readonly ignores: readonly [
|
106
|
-
...Readonly<Record<"
|
106
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
107
107
|
...string[]
|
108
108
|
];
|
109
|
-
readonly rules: Readonly<Record<string,
|
110
|
-
|
109
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
110
|
+
Rule.State,
|
111
111
|
...unknown[]
|
112
112
|
]>>;
|
113
113
|
} | {
|
114
114
|
readonly languageOptions: object;
|
115
|
-
readonly name: `linted/
|
115
|
+
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
116
|
readonly files: readonly [
|
117
|
-
...Readonly<Record<"
|
117
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
118
118
|
...string[]
|
119
119
|
];
|
120
120
|
readonly ignores: readonly [
|
121
|
-
...Readonly<Record<"
|
121
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
122
122
|
...string[]
|
123
123
|
];
|
124
|
-
readonly rules: Readonly<Record<string,
|
125
|
-
|
124
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
125
|
+
Rule.State,
|
126
126
|
...unknown[]
|
127
127
|
]>>;
|
128
128
|
} | {
|
129
129
|
readonly languageOptions: object;
|
130
|
-
readonly name: `linted/
|
130
|
+
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
131
|
readonly files: readonly [
|
132
|
-
...Readonly<Record<"
|
132
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
133
133
|
...string[]
|
134
134
|
];
|
135
135
|
readonly ignores: readonly [
|
136
|
-
...Readonly<Record<"
|
136
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
137
137
|
...string[]
|
138
138
|
];
|
139
|
-
readonly rules: Readonly<Record<string,
|
140
|
-
|
139
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
140
|
+
Rule.State,
|
141
141
|
...unknown[]
|
142
142
|
]>>;
|
143
143
|
} | {
|
144
144
|
readonly languageOptions: object;
|
145
|
-
readonly name: `linted/
|
145
|
+
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
146
|
readonly files: readonly [
|
147
|
-
...Readonly<Record<"
|
147
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
148
148
|
...string[]
|
149
149
|
];
|
150
150
|
readonly ignores: readonly [
|
151
|
-
...Readonly<Record<"
|
151
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
152
152
|
...string[]
|
153
153
|
];
|
154
|
-
readonly rules: Readonly<Record<string,
|
155
|
-
|
154
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
155
|
+
Rule.State,
|
156
156
|
...unknown[]
|
157
157
|
]>>;
|
158
158
|
} | {
|
159
159
|
readonly languageOptions: object;
|
160
|
-
readonly name: `linted/
|
160
|
+
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
161
|
readonly files: readonly [
|
162
|
-
...Readonly<Record<"
|
162
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
163
163
|
...string[]
|
164
164
|
];
|
165
165
|
readonly ignores: readonly [
|
166
|
-
...Readonly<Record<"
|
166
|
+
...Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json" | "*", readonly string[]>>[S],
|
167
167
|
...string[]
|
168
168
|
];
|
169
|
-
readonly rules: Readonly<Record<string,
|
170
|
-
|
169
|
+
readonly rules: Readonly<Record<string, Rule.State | readonly [
|
170
|
+
Rule.State,
|
171
171
|
...unknown[]
|
172
172
|
]>>;
|
173
173
|
})[];
|
@@ -1 +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;
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAC9C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCnF"}
|
package/dist/factory/factory.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Ruleset } from "./ruleset.js";
|
2
1
|
export class Factory {
|
3
2
|
defaults;
|
4
3
|
extensions;
|
@@ -25,12 +24,18 @@ export class Factory {
|
|
25
24
|
};
|
26
25
|
}
|
27
26
|
scope(scope, settings) {
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
function Ruleset(scope, defaults, override) {
|
28
|
+
return [
|
29
|
+
...defaults.map(([id, rules]) => ({ id: `${scope}:${id}`, rules })),
|
30
|
+
...typeof override === "undefined"
|
31
|
+
? []
|
32
|
+
: [{ id: `${scope}:override`, rules: override }],
|
33
|
+
];
|
34
|
+
}
|
35
|
+
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 = Ruleset(scope, defaultRules, extendRules);
|
31
36
|
return files.length < 1
|
32
37
|
? []
|
33
|
-
: ruleset.
|
38
|
+
: ruleset.map(({ id, rules }) => ({
|
34
39
|
name: `linted/${id}`,
|
35
40
|
files,
|
36
41
|
ignores,
|
@@ -39,4 +44,4 @@ export class Factory {
|
|
39
44
|
}));
|
40
45
|
}
|
41
46
|
}
|
42
|
-
//# sourceMappingURL=factory.js.map
|
47
|
+
//# sourceMappingURL=factory.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"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"}
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Input, Output } from "./interface/index.js";
|
2
|
-
export type { Scopes } from "./scopes.js";
|
3
2
|
export type * from "./interface/index.js";
|
3
|
+
export type * from "./scopes/index.js";
|
4
4
|
export default function ({ imports: { plugins, parsers }, defaults, extensions, }: Input): Output;
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
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;AAIjD,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,GAAG,MAAM,CAwBhB"}
|
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":"AACA,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,GACJ;IACN,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,8 @@
|
|
1
|
-
import type {
|
2
|
-
import type
|
1
|
+
import type { Scopes, Plugins, Parsers } from "../scopes/index.js";
|
2
|
+
import type * as Inputs from "./inputs/index.js";
|
3
3
|
export interface Input {
|
4
|
-
readonly imports:
|
5
|
-
|
6
|
-
|
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">>>>>;
|
4
|
+
readonly imports: Inputs.Imports<Plugins, Parsers>;
|
5
|
+
readonly defaults: Inputs.Defaults<Scopes>;
|
6
|
+
readonly extensions: Inputs.Extensions<Scopes>;
|
17
7
|
}
|
18
8
|
//# 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,EAAE,MAAM,EAAE,
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/interface/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,KAAK;IACpB,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,10 @@
|
|
1
|
-
import type
|
1
|
+
import type { Scopes, Plugins } from "../scopes/index.js";
|
2
|
+
import type * as Configs from "./outputs/index.js";
|
2
3
|
export type { Configs };
|
3
4
|
export type Output = readonly [
|
4
|
-
Configs.
|
5
|
-
Configs.
|
6
|
-
Configs.
|
7
|
-
...readonly Configs.Scoped[]
|
5
|
+
Configs.Common.Plugins<Plugins>,
|
6
|
+
Configs.Common.Settings,
|
7
|
+
Configs.Common.Ignores,
|
8
|
+
...readonly Configs.Scoped<Scopes>[]
|
8
9
|
];
|
9
10
|
//# 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,GAAG,SAAS;IAC5B,OAAO,CAAC,OAAO,CAAC,OAAO;
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/interface/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,KAAK,OAAO,MAAM,WAAW,CAAC;AAE1C,YAAY,EAAE,OAAO,EAAE,CAAC;AACxB,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,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,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAC/B,OAAO,EACP;QAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAC9B,CAAC,CAAC;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC;IACzB,QAAQ,CAAC,aAAa,EAAE;QACtB,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;QACjC,QAAQ,CAAC,6BAA6B,EAClC,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,QAAQ,CAAC,eAAe,EAAE;QACxB,QAAQ,CAAC,UAAU,EACf,QAAQ,GACR,QAAQ,CACX;QACD,QAAQ,CAAC,WAAW,EAChB,QAAQ,GACR,CAAC,GACD,CAAC,GACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP;KACF,CAAsF;IACvF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACvD;AACD,MAAM,MAAM,aAAa,CACvB,IAAI,SAAS,MAAM,EACnB,KAAK,SAAS,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,IAAI,CAAC,EAC/C,OAAO,SAAS,MAAM,GAAG,MAAM,IAC7B,CACA,IAAI,GACJ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAC5B,QAAQ,CAAC,OAAO,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/shared/config/rule/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/shared/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,UAAU,CAAC"}
|