@eslinted/core 1.0.0 → 2.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/boundary.d.ts +4 -0
- package/dist/boundary/boundary.d.ts.map +1 -0
- package/dist/boundary/boundary.js +2 -0
- package/dist/boundary/boundary.js.map +1 -0
- package/dist/boundary/input/files/files.d.ts +4 -6
- package/dist/boundary/input/files/files.d.ts.map +1 -1
- package/dist/boundary/input/files/list/list.d.ts +3 -0
- package/dist/boundary/input/files/list/list.d.ts.map +1 -0
- package/dist/boundary/input/files/list/list.js +2 -0
- package/dist/boundary/input/files/list/list.js.map +1 -0
- package/dist/boundary/input/input.d.ts +6 -20
- package/dist/boundary/input/input.d.ts.map +1 -1
- package/dist/boundary/input/overrides/overrides.d.ts +4 -4
- package/dist/boundary/input/overrides/overrides.d.ts.map +1 -1
- package/dist/boundary/input/parsers/parsers.d.ts +3 -6
- package/dist/boundary/input/parsers/parsers.d.ts.map +1 -1
- package/dist/boundary/input/plugins/plugins.d.ts +5 -6
- package/dist/boundary/input/plugins/plugins.d.ts.map +1 -1
- package/dist/boundary/input/rules/entry/entry.d.ts +3 -3
- package/dist/boundary/input/rules/entry/entry.d.ts.map +1 -1
- package/dist/boundary/input/rules/entry/object/object.d.ts +3 -3
- package/dist/boundary/input/rules/entry/object/object.d.ts.map +1 -1
- package/dist/boundary/input/rules/entry/object/state/level.d.ts +3 -0
- package/dist/boundary/input/rules/entry/object/state/level.d.ts.map +1 -0
- package/dist/boundary/input/rules/entry/object/state/level.js +2 -0
- package/dist/boundary/input/rules/entry/object/state/level.js.map +1 -0
- package/dist/boundary/input/rules/rules.d.ts +4 -5
- package/dist/boundary/input/rules/rules.d.ts.map +1 -1
- package/dist/boundary/output/config/config.d.ts +2 -2
- package/dist/boundary/output/config/config.d.ts.map +1 -1
- package/dist/boundary/output/output.d.ts +2 -2
- package/dist/dependency/dependency.d.ts +4 -0
- package/dist/dependency/dependency.d.ts.map +1 -0
- package/dist/dependency/dependency.js +2 -0
- package/dist/dependency/dependency.js.map +1 -0
- package/dist/dependency/parsers/index.d.ts +3 -0
- package/dist/dependency/parsers/index.d.ts.map +1 -0
- package/dist/dependency/parsers/index.js +2 -0
- package/dist/dependency/parsers/index.js.map +1 -0
- package/dist/dependency/plugins/index.d.ts +3 -0
- package/dist/dependency/plugins/index.d.ts.map +1 -0
- package/dist/dependency/plugins/index.js +2 -0
- package/dist/dependency/plugins/index.js.map +1 -0
- package/dist/factory/factory.d.ts +1 -1
- package/dist/factory/factory.js +1 -1
- package/dist/factory/files/Files.d.ts +2 -2
- package/dist/factory/files/Files.d.ts.map +1 -1
- package/dist/factory/options/{options.d.ts → Options.d.ts} +1 -1
- package/dist/factory/options/{options.d.ts.map → Options.d.ts.map} +1 -1
- package/dist/factory/options/{options.js → Options.js} +1 -1
- package/dist/factory/options/{options.js.map → Options.js.map} +1 -1
- package/dist/factory/options/option/Option.d.ts +4 -3
- package/dist/factory/options/option/Option.d.ts.map +1 -1
- package/dist/factory/options/option/Option.js.map +1 -1
- package/dist/factory/ruleset/Ruleset.d.ts +3 -4
- package/dist/factory/ruleset/Ruleset.d.ts.map +1 -1
- package/dist/factory/ruleset/Ruleset.js.map +1 -1
- package/dist/factory/ruleset/rule/Rule.d.ts +1 -1
- package/dist/factory/ruleset/rule/Rule.d.ts.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -19
- package/dist/index.js.map +1 -1
- package/dist/scopes/{scopes.d.ts → Scopes.d.ts} +1 -1
- package/dist/scopes/Scopes.d.ts.map +1 -0
- package/dist/scopes/{scopes.js → Scopes.js} +1 -1
- package/dist/scopes/Scopes.js.map +1 -0
- package/package.json +7 -5
- package/src/boundary/boundary.ts +4 -0
- package/src/boundary/input/files/files.ts +7 -4
- package/src/boundary/input/files/list/list.ts +6 -0
- package/src/boundary/input/input.ts +12 -21
- package/src/boundary/input/overrides/overrides.ts +7 -4
- package/src/boundary/input/parsers/parsers.ts +7 -8
- package/src/boundary/input/plugins/plugins.ts +7 -4
- package/src/boundary/input/rules/entry/entry.ts +6 -3
- package/src/boundary/input/rules/entry/object/object.ts +10 -3
- package/src/boundary/input/rules/entry/object/state/level.ts +9 -0
- package/src/boundary/input/rules/rules.ts +4 -6
- package/src/boundary/output/config/config.ts +2 -2
- package/src/boundary/output/output.ts +2 -2
- package/src/dependency/dependency.ts +4 -0
- package/src/dependency/parsers/index.ts +9 -0
- package/src/dependency/plugins/index.ts +10 -0
- package/src/factory/factory.ts +1 -1
- package/src/factory/files/Files.ts +2 -2
- package/src/factory/options/option/Option.ts +4 -3
- package/src/factory/ruleset/Ruleset.ts +2 -3
- package/src/factory/ruleset/rule/Rule.ts +1 -1
- package/src/index.ts +42 -31
- package/dist/boundary/input/files/array/filearray.d.ts +0 -3
- package/dist/boundary/input/files/array/filearray.d.ts.map +0 -1
- package/dist/boundary/input/files/array/filearray.js +0 -2
- package/dist/boundary/input/files/array/filearray.js.map +0 -1
- package/dist/boundary/input/parsers.d.ts +0 -7
- package/dist/boundary/input/parsers.d.ts.map +0 -1
- package/dist/boundary/input/parsers.js +0 -2
- package/dist/boundary/input/parsers.js.map +0 -1
- package/dist/boundary/input/plugins.d.ts +0 -7
- package/dist/boundary/input/plugins.d.ts.map +0 -1
- package/dist/boundary/input/plugins.js +0 -2
- package/dist/boundary/input/plugins.js.map +0 -1
- package/dist/boundary/input/ruleRecord.d.ts +0 -6
- package/dist/boundary/input/ruleRecord.d.ts.map +0 -1
- package/dist/boundary/input/ruleRecord.js +0 -2
- package/dist/boundary/input/ruleRecord.js.map +0 -1
- package/dist/boundary/input/rules/entry/object/state/severity.d.ts +0 -3
- package/dist/boundary/input/rules/entry/object/state/severity.d.ts.map +0 -1
- package/dist/boundary/input/rules/entry/object/state/severity.js +0 -2
- package/dist/boundary/input/rules/entry/object/state/severity.js.map +0 -1
- package/dist/boundary/input.d.ts +0 -10
- package/dist/boundary/input.d.ts.map +0 -1
- package/dist/boundary/input.js +0 -2
- package/dist/boundary/input.js.map +0 -1
- package/dist/boundary/output/IConfig.d.ts +0 -19
- package/dist/boundary/output/IConfig.d.ts.map +0 -1
- package/dist/boundary/output/IConfig.js +0 -2
- package/dist/boundary/output/IConfig.js.map +0 -1
- package/dist/boundary/output.d.ts +0 -3
- package/dist/boundary/output.d.ts.map +0 -1
- package/dist/boundary/output.js +0 -2
- package/dist/boundary/output.js.map +0 -1
- package/dist/scopes/scopes.d.ts.map +0 -1
- package/dist/scopes/scopes.js.map +0 -1
- package/src/boundary/input/files/array/filearray.ts +0 -3
- package/src/boundary/input/rules/entry/object/state/severity.ts +0 -6
- /package/{types/project → src}/OmitFilesRuleset.d.ts +0 -0
- /package/src/factory/options/{options.ts → Options.ts} +0 -0
- /package/src/scopes/{scopes.ts → Scopes.ts} +0 -0
package/package.json
CHANGED
@@ -1,16 +1,21 @@
|
|
1
1
|
{
|
2
|
+
"_schemaVersion": "20.13.0",
|
2
3
|
"name": "@eslinted/core",
|
3
|
-
"version": "
|
4
|
+
"version": "2.0.0-rc.1",
|
4
5
|
"description": "Core ESLint flat config factory npm package `linted`.",
|
5
6
|
"keywords": [],
|
6
7
|
"license": "MIT",
|
7
8
|
"private": false,
|
9
|
+
"publishConfig": {
|
10
|
+
"access": "public"
|
11
|
+
},
|
8
12
|
"repository": "github:jimmy-zhening-luo/linted-core",
|
9
13
|
"homepage": "https://github.com/jimmy-zhening-luo/linted-core#readme",
|
10
14
|
"bugs": "https://github.com/jimmy-zhening-luo/linted-core/issues",
|
11
15
|
"type": "module",
|
12
16
|
"main": "dist/index.js",
|
13
17
|
"types": "dist/index.d.ts",
|
18
|
+
"engineStrict": true,
|
14
19
|
"engines": {
|
15
20
|
"node": ">=20.15.0",
|
16
21
|
"npm": ">=10.7.0"
|
@@ -21,7 +26,7 @@
|
|
21
26
|
"dependencies": {},
|
22
27
|
"devDependencies": {
|
23
28
|
"eslint": "~8.57.0",
|
24
|
-
"linted": "~15.4.
|
29
|
+
"linted": "~15.4.14",
|
25
30
|
"npm-run-all": "^4.1.5",
|
26
31
|
"typescript": "^5.5.4"
|
27
32
|
},
|
@@ -45,8 +50,5 @@
|
|
45
50
|
"predeploy": "npm test",
|
46
51
|
"deploy": ""
|
47
52
|
},
|
48
|
-
"config": {
|
49
|
-
"PACKAGE_JSON": "20.12.0"
|
50
|
-
},
|
51
53
|
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
52
54
|
}
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
2
|
-
import type
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
|
+
import type * as Files from "./list/list.js";
|
3
3
|
|
4
|
-
type Files =
|
4
|
+
type Files = Readonly<Record<Scope, Files.List>>;
|
5
5
|
|
6
|
-
export type {
|
6
|
+
export type {
|
7
|
+
Files as default,
|
8
|
+
Files,
|
9
|
+
};
|
@@ -1,22 +1,13 @@
|
|
1
|
-
import type
|
2
|
-
import type
|
3
|
-
import type
|
4
|
-
import type
|
5
|
-
import type
|
6
|
-
import type overrides from "./overrides/overrides.js";
|
1
|
+
import type Plugins from "./plugins/plugins.js";
|
2
|
+
import type Parsers from "./parsers/parsers.js";
|
3
|
+
import type Files from "./files/files.js";
|
4
|
+
import type Rules from "./rules/rules.js";
|
5
|
+
import type Overrides from "./overrides/overrides.js";
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
export namespace Entry {
|
16
|
-
export type Object = RuleObject;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
export type Overrides = overrides;
|
20
|
-
}
|
21
|
-
|
22
|
-
export type { Input as default };
|
7
|
+
export type {
|
8
|
+
Plugins,
|
9
|
+
Parsers,
|
10
|
+
Files,
|
11
|
+
Rules,
|
12
|
+
Overrides,
|
13
|
+
};
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
2
|
-
import type
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
|
+
import type { Rules } from "../input.js";
|
3
3
|
|
4
|
-
type Overrides = Particord<Scope,
|
4
|
+
type Overrides = Readonly<Particord<Scope, Rules.Entry.Object>>;
|
5
5
|
|
6
|
-
export type {
|
6
|
+
export type {
|
7
|
+
Overrides as default,
|
8
|
+
Overrides,
|
9
|
+
};
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import type {
|
2
|
-
import type { Options } from "../../../factory/factory.js";
|
1
|
+
import type { Parsers as Dependencies } from "../../../dependency/dependency.js";
|
3
2
|
|
4
|
-
type Parsers =
|
5
|
-
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]]
|
6
|
-
? unknown
|
7
|
-
: null
|
8
|
-
};
|
3
|
+
type Parsers = Readonly<Record<Dependencies, unknown>>;
|
9
4
|
|
10
|
-
export type {
|
5
|
+
export type {
|
6
|
+
Parsers as default,
|
7
|
+
Parsers,
|
8
|
+
Dependencies,
|
9
|
+
};
|
@@ -1,6 +1,9 @@
|
|
1
|
-
import type {
|
2
|
-
import type { Options } from "../../../factory/factory.js";
|
1
|
+
import type { Plugins as Dependencies } from "../../../dependency/dependency.js";
|
3
2
|
|
4
|
-
type Plugins = {
|
3
|
+
type Plugins = Readonly<Record<Dependencies, { configs: unknown }>>;
|
5
4
|
|
6
|
-
export type {
|
5
|
+
export type {
|
6
|
+
Plugins as default,
|
7
|
+
Plugins,
|
8
|
+
Dependencies,
|
9
|
+
};
|
@@ -1,5 +1,8 @@
|
|
1
|
-
import type
|
1
|
+
import type * as Entry from "./object/object.js";
|
2
2
|
|
3
|
-
type
|
3
|
+
type Entry = readonly [string, Entry.Object];
|
4
4
|
|
5
|
-
export type {
|
5
|
+
export type {
|
6
|
+
Entry as default,
|
7
|
+
Entry,
|
8
|
+
};
|
@@ -1,5 +1,12 @@
|
|
1
|
-
import type
|
1
|
+
import type * as Object from "./state/level.js";
|
2
2
|
|
3
|
-
type
|
3
|
+
type Object = Readonly<Record<
|
4
|
+
string,
|
5
|
+
| Object.Level
|
6
|
+
| readonly [Object.Level, ...unknown[]]
|
7
|
+
>>;
|
4
8
|
|
5
|
-
export type {
|
9
|
+
export type {
|
10
|
+
Object as default,
|
11
|
+
Object,
|
12
|
+
};
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
2
|
-
import type
|
3
|
-
import type RuleObject from "./entry/object/object.js";
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
|
+
import type * as Rules from "./entry/entry.js";
|
4
3
|
|
5
|
-
type Rules = Record<Scope, readonly
|
4
|
+
type Rules = Readonly<Record<Scope, readonly Rules.Entry[]>>;
|
6
5
|
|
7
6
|
export type {
|
8
7
|
Rules as default,
|
9
|
-
|
10
|
-
RuleObject,
|
8
|
+
Rules,
|
11
9
|
};
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import type
|
1
|
+
import type { Rules } from "../../input/input.js";
|
2
2
|
|
3
3
|
export default interface Config {
|
4
4
|
name: `linted/scope:${string}/rule:${string}+${string}`;
|
5
|
-
rules:
|
5
|
+
rules: Rules.Entry.Object;
|
6
6
|
files: readonly string[];
|
7
7
|
linterOptions: {
|
8
8
|
noInlineConfig: true;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import type
|
1
|
+
import type Config from "./config/config.js";
|
2
2
|
|
3
|
-
export type {
|
3
|
+
export type { Config as default };
|
package/src/factory/factory.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Scope } from "../../scopes/
|
2
|
-
import type Input from "../../boundary/
|
1
|
+
import type { Scope } from "../../scopes/Scopes.js";
|
2
|
+
import type { Input } from "../../boundary/boundary.js";
|
3
3
|
|
4
4
|
export default class Files {
|
5
5
|
constructor(
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/
|
1
|
+
import type { Scope } from "../../../scopes/Scopes.js";
|
2
2
|
import type { Ruleset } from "../../factory.js";
|
3
|
-
import type
|
3
|
+
import type { Plugins } from "../../../dependency/dependency.js";
|
4
|
+
import type { Output } from "../../../boundary/boundary.js";
|
4
5
|
|
5
6
|
export default abstract class Option<
|
6
7
|
S extends Scope,
|
7
|
-
PluginId extends
|
8
|
+
PluginId extends Plugins,
|
8
9
|
IsEcma extends boolean = true,
|
9
10
|
ParserOptions extends object | boolean = false,
|
10
11
|
ParserCount extends 0 | 1 | 2 = 0,
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import type { Scope } from "../../scopes/
|
2
|
-
import type Input from "../../boundary/input/input.js";
|
1
|
+
import type { Scope } from "../../scopes/Scopes.js";
|
3
2
|
import Rule from "./rule/Rule.js";
|
4
3
|
|
5
4
|
export { Rule };
|
@@ -53,7 +52,7 @@ export default class Ruleset<S extends Scope> {
|
|
53
52
|
}
|
54
53
|
}
|
55
54
|
|
56
|
-
public override(overrides: undefined |
|
55
|
+
public override(overrides: undefined | Rule["rules"]) {
|
57
56
|
try {
|
58
57
|
if (typeof overrides !== "undefined")
|
59
58
|
this.overrides = new Rule(
|
package/src/index.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import scopes, { type Scope } from "./scopes/
|
2
|
-
import type
|
3
|
-
import type Input from "./boundary/input/input.js";
|
1
|
+
import scopes, { type Scope } from "./scopes/Scopes.js";
|
2
|
+
import type * as Boundary from "./boundary/boundary.js";
|
4
3
|
import {
|
5
4
|
Options,
|
6
5
|
Files,
|
@@ -10,17 +9,16 @@ import {
|
|
10
9
|
|
11
10
|
export type {
|
12
11
|
Scope,
|
13
|
-
|
14
|
-
Output,
|
12
|
+
Boundary,
|
15
13
|
};
|
16
14
|
export default function (
|
17
|
-
plugins: Input.Plugins,
|
18
|
-
parsers: Input.Parsers,
|
19
|
-
base: Input.Files,
|
20
|
-
includes: Partial<Input.Files>,
|
21
|
-
rules: Input.Rules,
|
22
|
-
overrides: Input.Overrides,
|
23
|
-
): Output[] {
|
15
|
+
plugins: Boundary.Input.Plugins,
|
16
|
+
parsers: Boundary.Input.Parsers,
|
17
|
+
base: Boundary.Input.Files,
|
18
|
+
includes: Partial<Boundary.Input.Files>,
|
19
|
+
rules: Boundary.Input.Rules,
|
20
|
+
overrides: Boundary.Input.Overrides,
|
21
|
+
): Boundary.Output[] {
|
24
22
|
try {
|
25
23
|
const files = new Files(
|
26
24
|
base,
|
@@ -56,19 +54,16 @@ export default function (
|
|
56
54
|
...rules.yml.map(args => new Rule(...args)),
|
57
55
|
),
|
58
56
|
},
|
59
|
-
|
60
|
-
[S in Scope]:
|
57
|
+
scopedParsers: {
|
58
|
+
[S in Scope]: ConstructorParameters<typeof Options[S]>[3];
|
61
59
|
} = {
|
62
|
-
js: [
|
63
|
-
ts: [
|
64
|
-
svelte: [
|
65
|
-
|
66
|
-
|
67
|
-
] as const,
|
68
|
-
|
69
|
-
json: [plugins.json, [parsers.json]] as const,
|
70
|
-
jsonc: [plugins.jsonc, [parsers.jsonc]] as const,
|
71
|
-
yml: [plugins.yml, [parsers.yml]] as const,
|
60
|
+
js: [] as const,
|
61
|
+
ts: [parsers.ts] as const,
|
62
|
+
svelte: [parsers.svelte, parsers.ts] as const,
|
63
|
+
html: [parsers.html] as const,
|
64
|
+
json: [parsers.jsonc] as const,
|
65
|
+
jsonc: [parsers.jsonc] as const,
|
66
|
+
yml: [parsers.yml] as const,
|
72
67
|
} as const;
|
73
68
|
|
74
69
|
for (const scope of scopes)
|
@@ -83,49 +78,65 @@ export default function (
|
|
83
78
|
.js(
|
84
79
|
files.files("js"),
|
85
80
|
rulesets.js,
|
86
|
-
|
81
|
+
{
|
82
|
+
"@stylistic": plugins["@stylistic"],
|
83
|
+
},
|
84
|
+
scopedParsers.js,
|
87
85
|
)
|
88
86
|
.configs,
|
89
87
|
ts: new Options
|
90
88
|
.ts(
|
91
89
|
files.files("ts"),
|
92
90
|
rulesets.ts,
|
93
|
-
|
91
|
+
{
|
92
|
+
"@stylistic": plugins["@stylistic"],
|
93
|
+
"@typescript-eslint": plugins["@typescript-eslint"],
|
94
|
+
},
|
95
|
+
scopedParsers.ts,
|
94
96
|
)
|
95
97
|
.configs,
|
96
98
|
svelte: new Options
|
97
99
|
.svelte(
|
98
100
|
files.files("svelte"),
|
99
101
|
rulesets.svelte,
|
100
|
-
|
102
|
+
{
|
103
|
+
"@stylistic": plugins["@stylistic"],
|
104
|
+
"@typescript-eslint": plugins["@typescript-eslint"],
|
105
|
+
svelte: plugins.svelte,
|
106
|
+
},
|
107
|
+
scopedParsers.svelte,
|
101
108
|
)
|
102
109
|
.configs,
|
103
110
|
html: new Options
|
104
111
|
.html(
|
105
112
|
files.files("html"),
|
106
113
|
rulesets.html,
|
107
|
-
|
114
|
+
{ "@html-eslint": plugins["@html-eslint"] },
|
115
|
+
scopedParsers.html,
|
108
116
|
)
|
109
117
|
.configs,
|
110
118
|
json: new Options
|
111
119
|
.json(
|
112
120
|
files.files("json"),
|
113
121
|
rulesets.json,
|
114
|
-
|
122
|
+
{ jsonc: plugins.jsonc },
|
123
|
+
scopedParsers.json,
|
115
124
|
)
|
116
125
|
.configs,
|
117
126
|
jsonc: new Options
|
118
127
|
.jsonc(
|
119
128
|
files.files("jsonc"),
|
120
129
|
rulesets.jsonc,
|
121
|
-
|
130
|
+
{ jsonc: plugins.jsonc },
|
131
|
+
scopedParsers.jsonc,
|
122
132
|
)
|
123
133
|
.configs,
|
124
134
|
yml: new Options
|
125
135
|
.yml(
|
126
136
|
files.files("yml"),
|
127
137
|
rulesets.yml,
|
128
|
-
|
138
|
+
{ yml: plugins.yml },
|
139
|
+
scopedParsers.yml,
|
129
140
|
)
|
130
141
|
.configs,
|
131
142
|
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filearray.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/array/filearray.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,SAAS,MAAM,EAAE,CAAC;AAEnC,YAAY,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filearray.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/array/filearray.ts"],"names":[],"mappings":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { Scope } from "../../scopes/scopes.js";
|
2
|
-
import type { Options } from "../../factory/factory.js";
|
3
|
-
type Parsers = {
|
4
|
-
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
|
5
|
-
};
|
6
|
-
export type { Parsers as default };
|
7
|
-
//# sourceMappingURL=parsers.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,GACvG,OAAO,GACP,IAAI;CACT,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/boundary/input/parsers.ts"],"names":[],"mappings":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { Scope } from "../../scopes/scopes.js";
|
2
|
-
import type { Options } from "../../factory/factory.js";
|
3
|
-
type Plugins = {
|
4
|
-
readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
|
5
|
-
};
|
6
|
-
export type { Plugins as default };
|
7
|
-
//# sourceMappingURL=plugins.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CAClE,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/boundary/input/plugins.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ruleRecord.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/ruleRecord.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,SAAS;IACzB,MAAM;IACN,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;CACpF,CAAC;AAEF,YAAY,EAAE,UAAU,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ruleRecord.js","sourceRoot":"","sources":["../../../src/boundary/input/ruleRecord.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/severity.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GACT,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"severity.js","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/severity.ts"],"names":[],"mappings":""}
|
package/dist/boundary/input.d.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import type plugins from "./input/plugins.js";
|
2
|
-
import type parsers from "./input/parsers.js";
|
3
|
-
import type ruleRecord from "./input/ruleRecord.js";
|
4
|
-
declare namespace Input {
|
5
|
-
type Plugins = plugins;
|
6
|
-
type Parsers = parsers;
|
7
|
-
type RuleRecord = ruleRecord;
|
8
|
-
}
|
9
|
-
export type { Input as default };
|
10
|
-
//# sourceMappingURL=input.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/boundary/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,kBAAU,KAAK,CAAC;IACd,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,UAAU,GAAG,UAAU,CAAC;CACrC;AAED,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
|
package/dist/boundary/input.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/boundary/input.ts"],"names":[],"mappings":""}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export default interface IConfig {
|
2
|
-
name: `scope:${string}/rule:${string}+${string}`;
|
3
|
-
rules: IRule;
|
4
|
-
files: readonly string[];
|
5
|
-
linterOptions: {
|
6
|
-
noInlineConfig: true;
|
7
|
-
reportUnusedDisableDirectives: "error";
|
8
|
-
};
|
9
|
-
languageOptions: {
|
10
|
-
sourceType?: "module" | "script";
|
11
|
-
ecmaVersion?: "latest";
|
12
|
-
globals?: Record<string, true>;
|
13
|
-
parser?: unknown;
|
14
|
-
parserOptions?: Record<string, unknown>;
|
15
|
-
};
|
16
|
-
plugins: Record<string, Record<"configs", unknown>>;
|
17
|
-
processor?: string;
|
18
|
-
}
|
19
|
-
//# sourceMappingURL=IConfig.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"IConfig.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/IConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B,IAAI,EAAE,SAAS,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../../../src/boundary/output/IConfig.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/boundary/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAE9C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
package/dist/boundary/output.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/boundary/output.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../src/scopes/scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../src/scopes/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC;AAEX,eAAe,MAAM,CAAC"}
|