@eslinted/core 17.0.1 → 17.0.3
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/index.d.ts +11 -11
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +9 -10
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/scopes/manifest/index.d.ts +2 -2
- package/dist/factory/scopes/manifest/index.d.ts.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/index.spec.js +1 -1
- package/dist/index.spec.js.map +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/input/imports.d.ts +2 -2
- package/dist/interface/input/imports.d.ts.map +1 -1
- package/dist/interface/input/index.d.ts +4 -4
- package/dist/interface/input/index.d.ts.map +1 -1
- package/dist/interface/input/scopes/defaults.d.ts +3 -3
- package/dist/interface/input/scopes/defaults.d.ts.map +1 -1
- package/dist/interface/output/configs/global/ignores.d.ts +3 -0
- package/dist/interface/output/configs/global/ignores.d.ts.map +1 -0
- package/dist/interface/output/configs/global/ignores.js.map +1 -0
- package/dist/interface/output/configs/global/index.d.ts.map +1 -0
- package/dist/interface/output/configs/global/index.js.map +1 -0
- package/dist/interface/output/configs/global/plugins.d.ts +3 -0
- package/dist/interface/output/configs/global/plugins.d.ts.map +1 -0
- package/dist/interface/output/configs/global/plugins.js.map +1 -0
- package/dist/interface/output/configs/global/settings.d.ts +3 -0
- package/dist/interface/output/configs/global/settings.d.ts.map +1 -0
- package/dist/interface/output/configs/global/settings.js.map +1 -0
- package/dist/interface/output/configs/index.d.ts +3 -0
- package/dist/interface/output/configs/index.d.ts.map +1 -0
- package/dist/interface/output/configs/index.js.map +1 -0
- package/dist/interface/output/configs/scoped/index.d.ts.map +1 -0
- package/dist/interface/output/configs/scoped/index.js.map +1 -0
- package/dist/interface/output/configs/scoped/rules.d.ts +3 -0
- package/dist/interface/output/configs/scoped/rules.d.ts.map +1 -0
- package/dist/interface/output/configs/scoped/rules.js.map +1 -0
- package/dist/interface/output/configs/scoped/settings.d.ts +5 -0
- package/dist/interface/output/configs/scoped/settings.d.ts.map +1 -0
- package/dist/interface/output/configs/scoped/settings.js.map +1 -0
- package/dist/interface/output/index.d.ts +6 -7
- package/dist/interface/output/index.d.ts.map +1 -1
- package/dist/interface/{shared → proto}/config/index.d.ts +1 -1
- package/dist/interface/proto/config/index.d.ts.map +1 -0
- package/dist/interface/proto/config/index.js.map +1 -0
- package/dist/interface/proto/config/rule/index.d.ts.map +1 -0
- package/dist/interface/proto/config/rule/index.js.map +1 -0
- package/dist/interface/proto/config/utility/index.d.ts +5 -0
- package/dist/interface/proto/config/utility/index.d.ts.map +1 -0
- package/dist/interface/proto/config/utility/index.js.map +1 -0
- package/dist/interface/proto/index.d.ts +2 -0
- package/dist/interface/proto/index.d.ts.map +1 -0
- package/dist/interface/proto/index.js +2 -0
- package/dist/interface/{shared → proto}/index.js.map +1 -1
- package/dist/{scopes → scope}/index.d.ts +2 -3
- package/dist/scope/index.d.ts.map +1 -0
- package/dist/{scopes → scope}/index.js +1 -1
- package/dist/scope/index.js.map +1 -0
- package/dist/{scopes → scope}/index.spec.d.ts.map +1 -1
- package/dist/scope/index.spec.js.map +1 -0
- package/dist/scope/tree/index.d.ts +6 -0
- package/dist/scope/tree/index.d.ts.map +1 -0
- package/dist/{scopes/tree.js → scope/tree/index.js} +1 -1
- package/dist/scope/tree/index.js.map +1 -0
- package/dist/scope/tree/index.spec.d.ts +2 -0
- package/dist/scope/tree/index.spec.d.ts.map +1 -0
- package/dist/{scopes/tree.spec.js → scope/tree/index.spec.js} +1 -1
- package/dist/scope/tree/index.spec.js.map +1 -0
- package/dist/scope/types/index.d.ts +7 -0
- package/dist/scope/types/index.d.ts.map +1 -0
- package/dist/scope/types/index.js +2 -0
- package/dist/{scopes/imports → scope/types}/index.js.map +1 -1
- package/package.json +1 -1
- package/src/factory/index.ts +13 -19
- package/src/factory/scopes/manifest/index.ts +2 -2
- package/src/index.spec.ts +1 -1
- package/src/index.ts +2 -2
- package/src/interface/index.ts +1 -1
- package/src/interface/input/imports.ts +2 -2
- package/src/interface/input/index.ts +5 -5
- package/src/interface/input/scopes/defaults.ts +3 -3
- package/src/interface/output/configs/global/ignores.ts +6 -0
- package/src/interface/output/configs/global/plugins.ts +7 -0
- package/src/interface/output/configs/global/settings.ts +7 -0
- package/src/interface/output/configs/index.ts +2 -0
- package/src/interface/output/configs/scoped/rules.ts +8 -0
- package/src/interface/output/{scoped → configs/scoped}/settings.ts +2 -2
- package/src/interface/output/index.ts +6 -14
- package/src/interface/{shared → proto}/config/index.ts +1 -1
- package/src/interface/{shared/config/partial.ts → proto/config/utility/index.ts} +2 -2
- package/src/interface/proto/index.ts +1 -0
- package/src/{scopes → scope}/index.ts +1 -2
- package/src/{scopes/tree.spec.ts → scope/tree/index.spec.ts} +0 -1
- package/src/{scopes/tree.ts → scope/tree/index.ts} +3 -1
- package/src/scope/types/index.ts +24 -0
- package/dist/interface/output/common/ignores.d.ts +0 -3
- package/dist/interface/output/common/ignores.d.ts.map +0 -1
- package/dist/interface/output/common/ignores.js.map +0 -1
- package/dist/interface/output/common/index.d.ts.map +0 -1
- package/dist/interface/output/common/index.js.map +0 -1
- package/dist/interface/output/common/plugins.d.ts +0 -3
- package/dist/interface/output/common/plugins.d.ts.map +0 -1
- package/dist/interface/output/common/plugins.js.map +0 -1
- package/dist/interface/output/common/settings.d.ts +0 -3
- package/dist/interface/output/common/settings.d.ts.map +0 -1
- package/dist/interface/output/common/settings.js.map +0 -1
- package/dist/interface/output/scoped/index.d.ts.map +0 -1
- package/dist/interface/output/scoped/index.js.map +0 -1
- package/dist/interface/output/scoped/rules.d.ts +0 -3
- package/dist/interface/output/scoped/rules.d.ts.map +0 -1
- package/dist/interface/output/scoped/rules.js.map +0 -1
- package/dist/interface/output/scoped/settings.d.ts +0 -5
- package/dist/interface/output/scoped/settings.d.ts.map +0 -1
- package/dist/interface/output/scoped/settings.js.map +0 -1
- package/dist/interface/shared/config/index.d.ts.map +0 -1
- package/dist/interface/shared/config/index.js.map +0 -1
- package/dist/interface/shared/config/partial.d.ts +0 -5
- package/dist/interface/shared/config/partial.d.ts.map +0 -1
- package/dist/interface/shared/config/partial.js +0 -2
- package/dist/interface/shared/config/partial.js.map +0 -1
- package/dist/interface/shared/config/rule/index.d.ts.map +0 -1
- package/dist/interface/shared/config/rule/index.js.map +0 -1
- package/dist/interface/shared/index.d.ts +0 -2
- package/dist/interface/shared/index.d.ts.map +0 -1
- package/dist/scopes/imports/index.d.ts +0 -3
- package/dist/scopes/imports/index.d.ts.map +0 -1
- package/dist/scopes/imports/parsers.d.ts +0 -2
- package/dist/scopes/imports/parsers.d.ts.map +0 -1
- package/dist/scopes/imports/parsers.js +0 -2
- package/dist/scopes/imports/parsers.js.map +0 -1
- package/dist/scopes/imports/plugins.d.ts +0 -2
- package/dist/scopes/imports/plugins.d.ts.map +0 -1
- package/dist/scopes/imports/plugins.js +0 -2
- package/dist/scopes/imports/plugins.js.map +0 -1
- package/dist/scopes/index.d.ts.map +0 -1
- package/dist/scopes/index.js.map +0 -1
- package/dist/scopes/index.spec.js.map +0 -1
- package/dist/scopes/tree.d.ts +0 -2
- package/dist/scopes/tree.d.ts.map +0 -1
- package/dist/scopes/tree.js.map +0 -1
- package/dist/scopes/tree.spec.d.ts +0 -2
- package/dist/scopes/tree.spec.d.ts.map +0 -1
- package/dist/scopes/tree.spec.js.map +0 -1
- package/src/interface/output/common/ignores.ts +0 -6
- package/src/interface/output/common/plugins.ts +0 -7
- package/src/interface/output/common/settings.ts +0 -7
- package/src/interface/output/scoped/rules.ts +0 -8
- package/src/interface/shared/index.ts +0 -1
- package/src/scopes/imports/index.ts +0 -2
- package/src/scopes/imports/parsers.ts +0 -7
- package/src/scopes/imports/plugins.ts +0 -12
- /package/dist/interface/output/{common → configs/global}/ignores.js +0 -0
- /package/dist/interface/output/{common → configs/global}/index.d.ts +0 -0
- /package/dist/interface/output/{common → configs/global}/index.js +0 -0
- /package/dist/interface/output/{common → configs/global}/plugins.js +0 -0
- /package/dist/interface/output/{common → configs/global}/settings.js +0 -0
- /package/dist/interface/output/{scoped → configs}/index.js +0 -0
- /package/dist/interface/output/{scoped → configs/scoped}/index.d.ts +0 -0
- /package/dist/interface/{shared/config → output/configs/scoped}/index.js +0 -0
- /package/dist/interface/output/{scoped → configs/scoped}/rules.js +0 -0
- /package/dist/interface/output/{scoped → configs/scoped}/settings.js +0 -0
- /package/dist/interface/{shared/config/rule → proto/config}/index.js +0 -0
- /package/dist/interface/{shared → proto}/config/rule/index.d.ts +0 -0
- /package/dist/interface/{shared → proto/config/rule}/index.js +0 -0
- /package/dist/{scopes/imports → interface/proto/config/utility}/index.js +0 -0
- /package/dist/{scopes → scope}/index.spec.d.ts +0 -0
- /package/dist/{scopes → scope}/index.spec.js +0 -0
- /package/src/interface/output/{common → configs/global}/index.ts +0 -0
- /package/src/interface/output/{scoped → configs/scoped}/index.ts +0 -0
- /package/src/interface/{shared → proto}/config/rule/index.ts +0 -0
- /package/src/{scopes → scope}/index.spec.ts +0 -0
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": "17.0.
|
6
|
+
"version": "17.0.3",
|
7
7
|
"description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
|
8
8
|
"repository": "github:jimmy-zhening-luo/linted-core",
|
9
9
|
"license": "MIT",
|
package/src/factory/index.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import globals from "globals";
|
2
2
|
import { ScopeManifests } from "./manifests";
|
3
3
|
import type { Input } from "../interface";
|
4
|
-
import type { tree as Tree } from "../
|
4
|
+
import type { tree as Tree } from "../scope";
|
5
5
|
|
6
6
|
export class Factory {
|
7
7
|
public readonly common;
|
@@ -10,22 +10,17 @@ export class Factory {
|
|
10
10
|
constructor(
|
11
11
|
tree: typeof Tree,
|
12
12
|
public readonly parsers: Input["imports"]["parsers"],
|
13
|
-
|
14
|
-
settings: defaultSettings,
|
15
|
-
files: defaultFiles,
|
16
|
-
ignores: defaultIgnores,
|
17
|
-
rules: defaultRules,
|
18
|
-
}: Input["defaults"],
|
13
|
+
defaults: Input["defaults"],
|
19
14
|
{
|
20
15
|
"*": commonExtension = {},
|
21
16
|
...scopeExtensions
|
22
17
|
}: Input["extensions"] = {} as const,
|
23
18
|
) {
|
24
19
|
const {
|
25
|
-
noInlineConfig =
|
26
|
-
reportUnusedDisableDirectives =
|
27
|
-
sourceType =
|
28
|
-
ecmaVersion =
|
20
|
+
noInlineConfig = defaults.settings.noInlineConfig,
|
21
|
+
reportUnusedDisableDirectives = defaults.settings.reportUnusedDisableDirectives,
|
22
|
+
sourceType = defaults.settings.sourceType,
|
23
|
+
ecmaVersion = defaults.settings.ecmaVersion,
|
29
24
|
ignores = [],
|
30
25
|
override = false,
|
31
26
|
} = commonExtension;
|
@@ -39,15 +34,15 @@ export class Factory {
|
|
39
34
|
ignores: {
|
40
35
|
name: "linted/*/ignores/",
|
41
36
|
ignores: [
|
42
|
-
...override ? [] :
|
37
|
+
...override ? [] : defaults.ignores["*"],
|
43
38
|
...ignores,
|
44
39
|
] as const,
|
45
40
|
} as const,
|
46
41
|
} as const;
|
47
42
|
this.scopes = {
|
48
|
-
files:
|
49
|
-
ignores:
|
50
|
-
rules:
|
43
|
+
files: defaults.files,
|
44
|
+
ignores: defaults.ignores,
|
45
|
+
rules: defaults.rules,
|
51
46
|
} as const;
|
52
47
|
|
53
48
|
for (const scope in scopeExtensions) {
|
@@ -66,16 +61,15 @@ export class Factory {
|
|
66
61
|
this.scopes.rules[scope as keyof typeof scopeExtensions].push({ id: `${scope}/override`, rules: userRules } as const);
|
67
62
|
}
|
68
63
|
|
69
|
-
|
70
|
-
|
64
|
+
for (const [scope, parents] of tree)
|
65
|
+
for (const parent of parents) {
|
71
66
|
this.scopes.files[parent].push(
|
72
67
|
...this.scopes.files[scope],
|
73
68
|
);
|
74
69
|
this.scopes.ignores[parent].push(
|
75
70
|
...this.scopes.ignores[scope],
|
76
71
|
);
|
77
|
-
}
|
78
|
-
});
|
72
|
+
}
|
79
73
|
}
|
80
74
|
|
81
75
|
public scope<S extends keyof typeof ScopeManifests>(scope: S) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type globals from "globals";
|
2
|
-
import type {
|
2
|
+
import type { Import } from "../../../scope";
|
3
3
|
|
4
|
-
export abstract class ScopeManifest<Parser extends
|
4
|
+
export abstract class ScopeManifest<Parser extends Import.Parser | false = false> {
|
5
5
|
public abstract readonly processor: { readonly processor: string } | Record<string, never>;
|
6
6
|
public abstract readonly language: { readonly language: string } | Record<string, never>;
|
7
7
|
public abstract readonly parserOptions: object & { readonly parser: null | Exclude<Parser, boolean> };
|
package/src/index.spec.ts
CHANGED
package/src/index.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { Input, Output } from "./interface";
|
2
|
-
import { scopes, tree } from "./
|
2
|
+
import { scopes, tree } from "./scope";
|
3
3
|
import { Factory } from "./factory";
|
4
4
|
|
5
5
|
export type * from "./interface";
|
6
|
-
export type * from "./
|
6
|
+
export type * from "./scope";
|
7
7
|
export default function ({
|
8
8
|
imports: { plugins, parsers },
|
9
9
|
defaults,
|
package/src/interface/index.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import type { Config } from "../
|
1
|
+
import type { Config } from "../proto";
|
2
2
|
|
3
3
|
export interface Imports<
|
4
4
|
Plugins extends string,
|
5
5
|
Parsers extends string,
|
6
6
|
> {
|
7
|
-
readonly plugins: Config<Plugins>["plugins"];
|
7
|
+
readonly plugins: Config.Config<Plugins>["plugins"];
|
8
8
|
readonly parsers: Readonly<Record<
|
9
9
|
Parsers,
|
10
10
|
unknown
|
@@ -1,12 +1,12 @@
|
|
1
|
+
import type { Import, Scope } from "../../scope";
|
1
2
|
import type { Imports } from "./imports";
|
2
3
|
import type { Defaults, Extensions } from "./scopes";
|
3
|
-
import type { Plugins, Parsers, Scopes } from "../../scopes";
|
4
4
|
|
5
5
|
export interface Input {
|
6
6
|
readonly imports: Imports<
|
7
|
-
|
8
|
-
|
7
|
+
Import.Plugin,
|
8
|
+
Import.Parser
|
9
9
|
>;
|
10
|
-
readonly defaults: Defaults<
|
11
|
-
readonly extensions: Extensions<
|
10
|
+
readonly defaults: Defaults<Scope>;
|
11
|
+
readonly extensions: Extensions<Scope>;
|
12
12
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import type { Config
|
1
|
+
import type { Config } from "../../proto";
|
2
2
|
|
3
3
|
export interface Defaults<Scopes extends string> {
|
4
|
-
readonly settings: Config["linterOptions"] & Config["languageOptions"];
|
4
|
+
readonly settings: Config.Config["linterOptions"] & Config.Config["languageOptions"];
|
5
5
|
readonly files: Readonly<Record<Scopes, string[]>>;
|
6
6
|
readonly ignores: Readonly<Record<"*" | Scopes, string[]>>;
|
7
|
-
readonly rules: Readonly<Record<Scopes, Rule.NamedRuleBag[]>>;
|
7
|
+
readonly rules: Readonly<Record<Scopes, Config.Rule.NamedRuleBag[]>>;
|
8
8
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Config } from "../../../proto";
|
2
2
|
|
3
|
-
export type
|
3
|
+
export type Settings<Scope extends string> = Config.PickConfig<
|
4
4
|
`linted/${Scope}/`,
|
5
5
|
| "files"
|
6
6
|
| "ignores"
|
@@ -1,17 +1,9 @@
|
|
1
|
-
import type
|
2
|
-
|
3
|
-
CommonSettings,
|
4
|
-
CommonIgnores,
|
5
|
-
} from "./common";
|
6
|
-
import type {
|
7
|
-
ScopedSettings,
|
8
|
-
ScopedRules,
|
9
|
-
} from "./scoped";
|
10
|
-
import type { Plugins, Scopes } from "../../scopes";
|
1
|
+
import type * as Configs from "./configs";
|
2
|
+
import type { Import, Scope } from "../../scope";
|
11
3
|
|
12
4
|
export type Output = readonly [
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
...readonly (
|
5
|
+
Configs.Global.Plugins<Import.Plugin>,
|
6
|
+
Configs.Global.Settings,
|
7
|
+
Configs.Global.Ignores,
|
8
|
+
...readonly (Configs.Scoped.Settings<Scope> | Configs.Scoped.Rules<Scope>)[],
|
17
9
|
];
|
@@ -0,0 +1 @@
|
|
1
|
+
export type * as Config from "./config";
|
@@ -25,7 +25,6 @@ describe("Scope Tree", function () {
|
|
25
25
|
expect(nodes)
|
26
26
|
.includes.members(["jsonc"]);
|
27
27
|
expect(nodes.indexOf("jsonc"))
|
28
|
-
// @ts-expect-error: TEST: `json` is not in the tree
|
29
28
|
.lessThan(-nodes.indexOf("json") * tree.length);
|
30
29
|
});
|
31
30
|
it("`mocha` < `ts`", function () {
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { scopes } from "..";
|
2
|
+
|
3
|
+
export type Scope = typeof scopes[number];
|
4
|
+
export namespace Import {
|
5
|
+
export type Plugin = (
|
6
|
+
| "@stylistic"
|
7
|
+
| "@typescript-eslint"
|
8
|
+
| "mocha"
|
9
|
+
| "chai-friendly"
|
10
|
+
| "chai-expect"
|
11
|
+
| "svelte"
|
12
|
+
| "@html-eslint"
|
13
|
+
| "css"
|
14
|
+
| "jsonc"
|
15
|
+
| "yml"
|
16
|
+
);
|
17
|
+
export type Parser = Scope & (
|
18
|
+
| "ts"
|
19
|
+
| "svelte"
|
20
|
+
| "html"
|
21
|
+
| "jsonc"
|
22
|
+
| "yml"
|
23
|
+
);
|
24
|
+
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,aAAa,CACvC,mBAAmB,EACnB,SAAS,CACV,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/interface/output/common/ignores.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,WAAW,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/output/common/index.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,aAAa,CAAC,OAAO,SAAS,MAAM,IAAI,aAAa,CAC/D,SAAS,EACT,SAAS,EACT,OAAO,CACR,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/interface/output/common/plugins.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,aAAa,CACxC,WAAW,EACT,eAAe,GACf,iBAAiB,CACpB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interface/output/common/settings.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scoped/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,YAAY,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/output/scoped/index.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scoped/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,WAAW,CAAC,KAAK,SAAS,MAAM,IAAI,aAAa,CAC3D,UAAU,KAAK,IAAI,MAAM,GAAG,EAC1B,OAAO,GACP,SAAS,GACT,OAAO,CACV,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/interface/output/scoped/rules.ts"],"names":[],"mappings":""}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import type { PartialConfig } from "../../shared/index.js";
|
2
|
-
export type ScopedSettings<Scope extends string> = PartialConfig<`linted/${Scope}/`, "files" | "ignores" | "processor" | "language" | "settings", string, {
|
3
|
-
readonly languageOptions: object;
|
4
|
-
}>;
|
5
|
-
//# sourceMappingURL=settings.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scoped/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,MAAM,IAAI,aAAa,CAC9D,UAAU,KAAK,GAAG,EAChB,OAAO,GACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,EACZ,MAAM,EACN;IAAE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CACrC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interface/output/scoped/settings.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
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,mBAAmB,WAAW,CAAC;AAC/B,YAAY,EAAE,IAAI,EAAE,CAAC;AACrB,MAAM,WAAW,MAAM,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrD,QAAQ,CAAC,IAAI,EAAE,CACX,SAAS,GACT,UAAU,MAAM,GAAG,CACtB,CAAC;IACF,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;IAC7B,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,CAAC;IACF,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"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/shared/config/index.ts"],"names":[],"mappings":""}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import type { Config } from "./index.js";
|
2
|
-
export type PartialConfig<Name extends Config["name"], Picks extends Exclude<keyof Config, "name" | keyof Rest>, Plugins extends string = string, Rest extends object = object> = (Rest & Pick<Config<Plugins>, Picks> & {
|
3
|
-
readonly name: Name;
|
4
|
-
} & Readonly<Partial<Record<Exclude<keyof Config, "name" | keyof Rest | Picks>, never>>>);
|
5
|
-
//# sourceMappingURL=partial.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"partial.d.ts","sourceRoot":"","sources":["../../../../src/interface/shared/config/partial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAEhC,MAAM,MAAM,aAAa,CACvB,IAAI,SAAS,MAAM,CAAC,MAAM,CAAC,EAC3B,KAAK,SAAS,OAAO,CACnB,MAAM,MAAM,EACV,MAAM,GACN,MAAM,IAAI,CACb,EACD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,IAAI,SAAS,MAAM,GAAG,MAAM,IAC1B,CACA,IAAI,GACJ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CAAE,GACvB,QAAQ,CAAC,OAAO,CAAC,MAAM,CACvB,OAAO,CACL,MAAM,MAAM,EACV,MAAM,GACN,MAAM,IAAI,GACV,KAAK,CACR,EACD,KAAK,CACN,CAAC,CAAC,CACJ,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"partial.js","sourceRoot":"","sources":["../../../../src/interface/shared/config/partial.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/shared/config/rule/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AACD,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CACnC,MAAM,EACJ,SAAS,GACT,SAAS,CAAC,SAAS,EAAE,GAAG,SAAS,OAAO,EAAE,CAAC,CAC9C,CAAC,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/shared/config/rule/index.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/shared/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,UAAU,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scopes/imports/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,WAAW,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/scopes/imports/parsers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACR,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/scopes/imports/parsers.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/scopes/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,OAAO,GACP,eAAe,GACf,aAAa,GACb,QAAQ,GACR,cAAc,GACd,KAAK,GACL,OAAO,GACP,KAAK,CACR,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/scopes/imports/plugins.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC3C,eAAO,MAAM,MAAM,iFAUT,CAAC"}
|
package/dist/scopes/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AAEvB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/scopes/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,sBAAsB,EAAE;YACzB,MAAM,CAAC,MAAM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ACH,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBACzB,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/scopes/tree.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scopes/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,+JAKP,CAAC"}
|
package/dist/scopes/tree.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../src/scopes/tree.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,CAAC,OAAO,EAAE,CAAC,MAAM,CAAU,CAAU;IACrC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAU,CAAU;IACnC,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAU,CAAU;IACpC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAU,CAAU;CACxB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tree.spec.d.ts","sourceRoot":"","sources":["../../src/scopes/tree.spec.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tree.spec.js","sourceRoot":"","sources":["../../src/scopes/tree.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAA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