@eslinted/core 24.3.0 → 24.4.0-rc.1

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.d.ts CHANGED
@@ -36,27 +36,23 @@ export declare class Factory<RequiredPlugin extends string, RequiredParser exten
36
36
  Scope,
37
37
  readonly Scope[]
38
38
  ]>, optionalScopes: readonly Scope[], { plugins, parsers, }: Input<RequiredPlugin, RequiredParser, Scope, OptionalScope>["imports"], settings: Input<RequiredPlugin, RequiredParser, Scope, OptionalScope>["configuration"]["settings"], defaults: Input<RequiredPlugin, RequiredParser, Scope, OptionalScope>["configuration"]["defaults"], extensions?: Input<RequiredPlugin, RequiredParser, Scope, OptionalScope>["configuration"]["extensions"], attachments?: Input<RequiredPlugin, RequiredParser, Scope, OptionalScope>["configuration"]["attachments"]);
39
- get globals(): readonly [
40
- {
41
- name: "linted/*/plugins/";
42
- plugins: Record<RequiredPlugin, unknown>;
43
- },
44
- {
45
- name: "linted/*/settings/";
46
- linterOptions: {
47
- noInlineConfig: boolean;
48
- reportUnusedDisableDirectives: "off" | "warn" | "error";
49
- };
50
- languageOptions: {
51
- sourceType: "script" | "module";
52
- ecmaVersion: 3 | 5 | "latest" | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
53
- };
54
- },
55
- {
56
- name: "linted/*/ignores/";
57
- ignores: string[];
58
- }
59
- ];
39
+ get globals(): ({
40
+ name: "linted/*/plugins/";
41
+ plugins: Record<RequiredPlugin, unknown>;
42
+ } | {
43
+ name: "linted/*/settings/";
44
+ linterOptions: {
45
+ noInlineConfig: boolean;
46
+ reportUnusedDisableDirectives: "off" | "warn" | "error";
47
+ };
48
+ languageOptions: {
49
+ sourceType: "script" | "module";
50
+ ecmaVersion: 3 | 5 | "latest" | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
51
+ };
52
+ } | {
53
+ name: "linted/*/ignores/";
54
+ ignores: string[];
55
+ })[];
60
56
  scope(scope: Scope): ({
61
57
  name: `linted/${string}/`;
62
58
  files: Record<Scope, string[]>[Scope];
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,qBAAa,OAAO,CAClB,cAAc,SAAS,MAAM,EAC7B,cAAc,SAAS,KAAK,EAC5B,KAAK,SAAS,MAAM,EACpB,aAAa,SAAS,KAAK;IAuBzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;aAkBT,WAAW,EAAE,KAAK,CAChC,cAAc,EACd,cAAc,EACd,KAAK,EACL,aAAa,CACd,CAAC,eAAe,CAAC,CAAC,aAAa,CAAC;IA5C5B,aAAa;;;;;;;;;;;;;;;;;;;;MAAC;IACd,MAAM;;;;;;;MAAC;IACP,OAAO,kCAAC;gBAGb,IAAI,EAAE,KAAK,CACT,SAAS;QACP,KAAK;QACL,SAAS,KAAK,EAAE;KACjB,CACF,EACD,cAAc,EAAE,SAAS,KAAK,EAAE,EAChC,EACE,OAAO,EACP,OAAO,GACR,EAAE,KAAK,CACN,cAAc,EACd,cAAc,EACd,KAAK,EACL,aAAa,CACd,CAAC,SAAS,CAAC,EACK,QAAQ,EAAE,KAAK,CAC9B,cAAc,EACd,cAAc,EACd,KAAK,EACL,aAAa,CACd,CAAC,eAAe,CAAC,CAAC,UAAU,CAAC,EAC9B,QAAQ,EAAE,KAAK,CACb,cAAc,EACd,cAAc,EACd,KAAK,EACL,aAAa,CACd,CAAC,eAAe,CAAC,CAAC,UAAU,CAAC,EAC9B,UAAU,GAAE,KAAK,CACf,cAAc,EACd,cAAc,EACd,KAAK,EACL,aAAa,CACd,CAAC,eAAe,CAAC,CAAC,YAAY,CAAM,EACrB,WAAW,GAAE,KAAK,CAChC,cAAc,EACd,cAAc,EACd,KAAK,EACL,aAAa,CACd,CAAC,eAAe,C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,aAAa,CACd,CAAC,eAAe,CAAC,CAAC,aAAa,CAAM;IAyIxC,IAAW,OAAO;;;;;;;;;;;;;;;;SAMjB;IAEM,KAAK,CAAC,KAAK,EAAE,KAAK;;;;;;;;;;;;;;;;;;CAwG1B"}
package/dist/factory.js CHANGED
@@ -54,16 +54,22 @@ export class Factory {
54
54
  rules: defaults.rules,
55
55
  };
56
56
  this.parsers = parsers;
57
- for (const scope in extensions) {
57
+ const extended = new Set(Object.keys(extensions));
58
+ extended.delete("*");
59
+ for (const scope of extended) {
58
60
  const { [scope]: { files = [], ignores = [], rules = null, } = {}, } = extensions;
59
- this
60
- .scopes
61
- .files[scope]
62
- .push(...files);
63
- this
64
- .scopes
65
- .ignores[scope]
66
- .push(...ignores);
61
+ if (files.length !== 0) {
62
+ const defaultFiles = this.scopes.files[scope], fEnd = defaultFiles.length;
63
+ defaultFiles.length += files.length;
64
+ for (let i = 0; i < files.length; i++)
65
+ defaultFiles[fEnd + i] = files[i];
66
+ }
67
+ if (ignores.length !== 0) {
68
+ const defaultIgnores = this.scopes.ignores[scope], iEnd = defaultIgnores.length;
69
+ defaultIgnores.length += ignores.length;
70
+ for (let i = 0; i < ignores.length; i++)
71
+ defaultIgnores[iEnd + i] = ignores[i];
72
+ }
67
73
  if (rules !== null)
68
74
  this
69
75
  .scopes
@@ -76,21 +82,23 @@ export class Factory {
76
82
  const OptionalScopes = new Set(optionalScopes);
77
83
  for (const [scope, parents] of tree)
78
84
  if (!OptionalScopes.has(scope)
79
- || scope in this.parsers)
80
- for (const parent of parents) {
81
- this
82
- .scopes
83
- .files[parent]
84
- .push(...this
85
- .scopes
86
- .files[scope]);
87
- this
88
- .scopes
89
- .ignores[parent]
90
- .push(...this
91
- .scopes
92
- .ignores[scope]);
93
- }
85
+ || scope in this.parsers) {
86
+ const files = this.scopes.files[scope], ignores = this.scopes.ignores[scope];
87
+ if (files.length !== 0)
88
+ for (const parent of parents) {
89
+ const parentFiles = this.scopes.files[parent], fEnd = parentFiles.length;
90
+ parentFiles.length += files.length;
91
+ for (let i = 0; i < files.length; i++)
92
+ parentFiles[fEnd + i] = files[i];
93
+ }
94
+ if (ignores.length !== 0)
95
+ for (const parent of parents) {
96
+ const parentIgnores = this.scopes.ignores[parent], iEnd = parentIgnores.length;
97
+ parentIgnores.length += ignores.length;
98
+ for (let i = 0; i < ignores.length; i++)
99
+ parentIgnores[iEnd + i] = ignores[i];
100
+ }
101
+ }
94
102
  }
95
103
  get globals() {
96
104
  return [
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IA2BC;IAkBD;IAvCX,aAAa,CAAC;IACd,MAAM,CAAC;IACP,OAAO,CAAC;IAEf,YACE,IAKC,EACD,cAAgC,EAChC,EACE,OAAO,EACP,OAAO,GAMG,EACK,QAKa,EAC9B,QAK8B,EAC9B,aAKmC,EAAE,EACrB,cAKoB,EAAE;QAvBrB,aAAQ,GAAR,QAAQ,CAKK;QAad,gBAAW,GAAX,WAAW,CAKW;QAEtC,MAAM,EACJ,cAAc,GAAG,QAAQ;aACtB,MAAM;aACN,cAAc,EACjB,6BAA6B,GAAG,QAAQ;aACrC,MAAM;aACN,6BAA6B,EAChC,UAAU,GAAG,QAAQ;aAClB,MAAM;aACN,UAAU,EACb,WAAW,GAAG,QAAQ;aACnB,MAAM;aACN,WAAW,GACf,GAAG,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAE1B,IAAI,QAAQ,IAAI,UAAU,IAAI,QAAQ,IAAK,UAAU,CAAC,MAAiB,EAAE,CAAC;YACxE,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;gBACrB,MAAM,EAAG,UAAU,CAAC,MAA8B,CAAC,MAAM;aAC1D,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;gBACrB,MAAM,EAAG,UAAU,CAAC,MAA8B,CAAC,MAAM;aAC1D,CAAC,CAAC;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AC,CAAC,EAAE,QAAQ,EAAE;yBACjB;wBACD,GAAG,OAAO,CAAC,GAAG,CACZ,CACE,EACE,EAAE,EACF,KAAK,GACN,EACD,EAAE,CAAC,CAAC;4BACJ,IAAI,EAAE,UAAU,EAAE,GAAY;4BAC9B,KAAK;4BACL,OAAO;4BACP,KAAK;yBACN,CAAC,CACH;qBACF,CAAC;IACZ,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EAEN,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,MAAM,EACN,cAAc,EAEf,MAAM,SAAS,CAAC;AAGjB,MAAM,CAAC,OAAO,WACZ,EACE,OAAO,EACP,aAAa,EAAE,EACb,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,GACZ,GACF,EAAE,KAAK,CACN,cAAc,EACd,cAAc,EACd,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,EACvB,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,CAChC,aAgCF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,MAAM,EACN,cAAc,EAEf,MAAM,SAAS,CAAC;AAGjB,MAAM,CAAC,OAAO,WACZ,EACE,OAAO,EACP,aAAa,EAAE,EACb,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,GACZ,GACF,EAAE,KAAK,CACN,cAAc,EACd,cAAc,EACd,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,EACvB,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,CAChC,aAgCF"}
package/dist/index.js CHANGED
@@ -3,11 +3,8 @@ import { Factory } from "./factory.js";
3
3
  export default function ({ imports, configuration: { settings, defaults, extensions, attachments, }, }) {
4
4
  try {
5
5
  const factory = new Factory(tree, optionalScopes, imports, settings, defaults, extensions, attachments);
6
- return [
7
- ...factory.globals,
8
- ...scopes.flatMap(scope => factory.scope(scope)),
9
- ...factory.attachments,
10
- ];
6
+ return factory.globals
7
+ .concat(scopes.flatMap(scope => factory.scope(scope)), factory.attachments);
11
8
  }
12
9
  catch (e) {
13
10
  throw TypeError("linted-core: ", { cause: e });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,MAAM,EACN,cAAc,EACd,IAAI,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,OAAO,WACZ,EACE,OAAO,EACP,aAAa,EAAE,EACb,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,GACZ,GAMF;IAED,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,OAAO,CAMzB,IAAI,EACJ,cAAc,EACd,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,CACZ,CAAC;QAEF,OAAO;YACL,GAAG,OAAO,CAAC,OAAO;YAClB,GAAG,MAAM,CAAC,OAAO,CACf,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAC9B;YACD,GAAG,OAAO,CAAC,WAAW;SACO,CAAC;IAClC,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,CACb,eAAe,EACf,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,MAAM,EACN,cAAc,EACd,IAAI,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,OAAO,WACZ,EACE,OAAO,EACP,aAAa,EAAE,EACb,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,GACZ,GAMF;IAED,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,OAAO,CAMzB,IAAI,EACJ,cAAc,EACd,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,WAAW,CACZ,CAAC;QAEF,OAAQ,OAAO,CAAC,OAAqB;aAClC,MAAM,CACL,MAAM,CAAC,OAAO,CACZ,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAC9B,EACD,OAAO,CAAC,WAAW,CACpB,CAAC;IACN,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,CACb,eAAe,EACf,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export type * from "./input/index.js";
2
- export type * from "./output";
3
2
  export type * from "./config/index.js";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/core",
6
- "version": "24.3.0",
6
+ "version": "24.4.0-rc.1",
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
8
8
  "description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
9
9
  "keywords": [],
package/src/factory.ts CHANGED
@@ -108,28 +108,43 @@ export class Factory<
108
108
  };
109
109
  this.parsers = parsers;
110
110
 
111
- for (const scope in extensions) {
111
+ const extended = new Set<Scope>(Object.keys(extensions) as unknown[] as readonly Scope[]);
112
+
113
+ extended.delete("*" as unknown as Scope);
114
+
115
+ for (const scope of extended) {
112
116
  const {
113
- [scope as keyof typeof extensions]: {
117
+ [scope]: {
114
118
  files = [],
115
119
  ignores = [],
116
120
  rules = null,
117
121
  } = {},
118
122
  } = extensions;
119
123
 
120
- this
121
- .scopes
122
- .files[scope as Scope]
123
- .push(...files);
124
- this
125
- .scopes
126
- .ignores[scope as Scope]
127
- .push(...ignores);
124
+ if (files.length !== 0) {
125
+ const defaultFiles = this.scopes.files[scope],
126
+ fEnd = defaultFiles.length;
127
+
128
+ defaultFiles.length += files.length;
129
+
130
+ for (let i = 0; i < files.length; i++)
131
+ defaultFiles[fEnd + i] = files[i] as string;
132
+ }
133
+
134
+ if (ignores.length !== 0) {
135
+ const defaultIgnores = this.scopes.ignores[scope],
136
+ iEnd = defaultIgnores.length;
137
+
138
+ defaultIgnores.length += ignores.length;
139
+
140
+ for (let i = 0; i < ignores.length; i++)
141
+ defaultIgnores[iEnd + i] = ignores[i] as string;
142
+ }
128
143
 
129
144
  if (rules !== null)
130
145
  this
131
146
  .scopes
132
- .rules[scope as Scope]
147
+ .rules[scope]
133
148
  .push(
134
149
  {
135
150
  id: scope.concat("/override"),
@@ -144,25 +159,32 @@ export class Factory<
144
159
  if (
145
160
  !OptionalScopes.has(scope)
146
161
  || scope in this.parsers
147
- )
148
- for (const parent of parents) {
149
- this
150
- .scopes
151
- .files[parent]
152
- .push(
153
- ...this
154
- .scopes
155
- .files[scope],
156
- );
157
- this
158
- .scopes
159
- .ignores[parent]
160
- .push(
161
- ...this
162
- .scopes
163
- .ignores[scope],
164
- );
165
- }
162
+ ) {
163
+ const files = this.scopes.files[scope],
164
+ ignores = this.scopes.ignores[scope];
165
+
166
+ if (files.length !== 0)
167
+ for (const parent of parents) {
168
+ const parentFiles = this.scopes.files[parent],
169
+ fEnd = parentFiles.length;
170
+
171
+ parentFiles.length += files.length;
172
+
173
+ for (let i = 0; i < files.length; i++)
174
+ parentFiles[fEnd + i] = files[i] as string;
175
+ }
176
+
177
+ if (ignores.length !== 0)
178
+ for (const parent of parents) {
179
+ const parentIgnores = this.scopes.ignores[parent],
180
+ iEnd = parentIgnores.length;
181
+
182
+ parentIgnores.length += ignores.length;
183
+
184
+ for (let i = 0; i < ignores.length; i++)
185
+ parentIgnores[iEnd + i] = ignores[i] as string;
186
+ }
187
+ }
166
188
  }
167
189
 
168
190
  public get globals() {
@@ -170,7 +192,7 @@ export class Factory<
170
192
  this.globalConfigs.plugins,
171
193
  this.globalConfigs.settings,
172
194
  this.globalConfigs.ignores,
173
- ] as const;
195
+ ];
174
196
  }
175
197
 
176
198
  public scope(scope: Scope) {
package/src/index.ts CHANGED
@@ -1,7 +1,4 @@
1
- import type {
2
- Input,
3
- Output,
4
- } from "./interface";
1
+ import type { Input } from "./interface";
5
2
  import type {
6
3
  RequiredPlugin,
7
4
  RequiredParser,
@@ -45,13 +42,13 @@ export default function (
45
42
  attachments,
46
43
  );
47
44
 
48
- return [
49
- ...factory.globals,
50
- ...scopes.flatMap(
51
- scope => factory.scope(scope),
52
- ),
53
- ...factory.attachments,
54
- ] satisfies Output as unknown[];
45
+ return (factory.globals as unknown[])
46
+ .concat(
47
+ scopes.flatMap(
48
+ scope => factory.scope(scope),
49
+ ),
50
+ factory.attachments,
51
+ );
55
52
  }
56
53
  catch (e) {
57
54
  throw TypeError(
@@ -1,3 +1,2 @@
1
1
  export type * from "./input";
2
- export type * from "./output";
3
2
  export type * from "./config";
@@ -1,5 +0,0 @@
1
- import type { IConfig } from "../../config/index.js";
2
- export type Attachment = {
3
- files: string[];
4
- } & Partial<Omit<IConfig, "files">>;
5
- //# sourceMappingURL=attachment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/configs/attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,UAAU,GAClB;IACF,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,GACC,OAAO,CACP,IAAI,CACF,OAAO,EACP,OAAO,CACR,CACF,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=attachment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../../../src/interface/output/configs/attachment.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import type { IConfig } from "../../config";
2
-
3
- export type Attachment
4
- = & {
5
- files: string[];
6
- }
7
- & Partial<
8
- Omit<
9
- IConfig,
10
- "files"
11
- >
12
- >;
@@ -1,6 +0,0 @@
1
- import type { IConfig } from "../../../config";
2
-
3
- export interface GlobalIgnores {
4
- name: "linted/*/ignores/";
5
- ignores: IConfig["ignores"];
6
- }
@@ -1,3 +0,0 @@
1
- export type { Plugins } from "./plugins";
2
- export type { Settings } from "./settings";
3
- export type { GlobalIgnores } from "./ignores";
@@ -1,6 +0,0 @@
1
- import type { IConfig } from "../../../config";
2
-
3
- export interface Plugins {
4
- name: "linted/*/plugins/";
5
- plugins: IConfig["plugins"];
6
- }
@@ -1,11 +0,0 @@
1
- import type { IConfig } from "../../../config";
2
-
3
- export type Settings = {
4
- name: "linted/*/settings/";
5
- } & Pick<
6
- IConfig,
7
- (
8
- | "linterOptions"
9
- | "languageOptions"
10
- )
11
- >;
@@ -1,3 +0,0 @@
1
- export type * from "./global";
2
- export type * from "./scoped";
3
- export type { Attachment } from "./attachment";
@@ -1,2 +0,0 @@
1
- export type { ScopeSettings } from "./settings";
2
- export type { ScopeRules } from "./rules";
@@ -1,12 +0,0 @@
1
- import type { IConfig } from "../../../config";
2
-
3
- export type ScopeRules = {
4
- name: `linted/${string}`;
5
- } & Pick<
6
- IConfig,
7
- (
8
- | "files"
9
- | "ignores"
10
- | "rules"
11
- )
12
- >;
@@ -1,15 +0,0 @@
1
- import type { IConfig } from "../../../config";
2
-
3
- export type ScopeSettings = {
4
- name: `linted/${string}`;
5
- languageOptions?: object;
6
- } & Pick<
7
- IConfig,
8
- (
9
- | "files"
10
- | "ignores"
11
- | "processor"
12
- | "language"
13
- | "settings"
14
- )
15
- >;
@@ -1,12 +0,0 @@
1
- import type * as Config from "./configs";
2
-
3
- export type Output = readonly [
4
- Config.Plugins,
5
- Config.Settings,
6
- Config.GlobalIgnores,
7
- ...(
8
- | Config.ScopeSettings
9
- | Config.ScopeRules
10
- | Config.Attachment
11
- )[],
12
- ];