@eslinted/core 0.7.0-rc.5 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/boundary/input/parsers/parsers.d.ts +1 -1
- package/dist/boundary/input/parsers/parsers.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/boundary/input/parsers/parsers.ts +1 -1
- package/src/index.ts +14 -14
- package/dist/boundary/input/parsers/index.d.ts +0 -5
- package/dist/boundary/input/parsers/index.d.ts.map +0 -1
- package/dist/boundary/input/parsers/index.js +0 -2
- package/dist/boundary/input/parsers/index.js.map +0 -1
- package/dist/boundary/input/plugins/index.d.ts +0 -32
- package/dist/boundary/input/plugins/index.d.ts.map +0 -1
- package/dist/boundary/input/plugins/index.js +0 -2
- package/dist/boundary/input/plugins/index.js.map +0 -1
- package/dist/boundary/output/config/index.d.ts +0 -19
- package/dist/boundary/output/config/index.d.ts.map +0 -1
- package/dist/boundary/output/config/index.js +0 -2
- package/dist/boundary/output/config/index.js.map +0 -1
- package/dist/config/index.d.ts +0 -19
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -2
- package/dist/config/index.js.map +0 -1
- package/dist/factory/files/index.d.ts +0 -9
- package/dist/factory/files/index.d.ts.map +0 -1
- package/dist/factory/files/index.js +0 -11
- package/dist/factory/files/index.js.map +0 -1
- package/dist/factory/index.d.ts +0 -6
- package/dist/factory/index.d.ts.map +0 -1
- package/dist/factory/index.js +0 -5
- package/dist/factory/index.js.map +0 -1
- package/dist/factory/options/index.d.ts +0 -20
- package/dist/factory/options/index.d.ts.map +0 -1
- package/dist/factory/options/index.js +0 -17
- package/dist/factory/options/index.js.map +0 -1
- package/dist/factory/options/option/index.d.ts +0 -6
- package/dist/factory/options/option/index.d.ts.map +0 -1
- package/dist/factory/options/option/index.js +0 -7
- package/dist/factory/options/option/index.js.map +0 -1
- package/dist/factory/ruleset/index.d.ts +0 -12
- package/dist/factory/ruleset/index.d.ts.map +0 -1
- package/dist/factory/ruleset/index.js +0 -27
- package/dist/factory/ruleset/index.js.map +0 -1
- package/dist/factory/ruleset/rule/index.d.ts +0 -6
- package/dist/factory/ruleset/rule/index.d.ts.map +0 -1
- package/dist/factory/ruleset/rule/index.js +0 -9
- package/dist/factory/ruleset/rule/index.js.map +0 -1
- package/dist/module/boundary/index.d.ts +0 -4
- package/dist/module/boundary/index.d.ts.map +0 -1
- package/dist/module/boundary/index.js +0 -2
- package/dist/module/boundary/index.js.map +0 -1
- package/dist/module/boundary/parsers/index.d.ts +0 -5
- package/dist/module/boundary/parsers/index.d.ts.map +0 -1
- package/dist/module/boundary/parsers/index.js +0 -2
- package/dist/module/boundary/parsers/index.js.map +0 -1
- package/dist/module/boundary/plugins/index.d.ts +0 -32
- package/dist/module/boundary/plugins/index.d.ts.map +0 -1
- package/dist/module/boundary/plugins/index.js +0 -2
- package/dist/module/boundary/plugins/index.js.map +0 -1
- package/dist/module/index.d.ts +0 -5
- package/dist/module/index.d.ts.map +0 -1
- package/dist/module/index.js +0 -3
- package/dist/module/index.js.map +0 -1
- package/dist/module/scopes/index.d.ts +0 -4
- package/dist/module/scopes/index.d.ts.map +0 -1
- package/dist/module/scopes/index.js +0 -11
- package/dist/module/scopes/index.js.map +0 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Scope } from "../input.js";
|
2
2
|
import type { Options } from "../../../factory/Factory.js";
|
3
3
|
type Parsers = {
|
4
|
-
[S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
|
4
|
+
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
|
5
5
|
};
|
6
6
|
export type { Parsers as default };
|
7
7
|
//# sourceMappingURL=parsers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,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"}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAO5C,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACzB,MAAM,CAAC,OAAO,WACZ,OAAgB,EAChB,OAAgB,EAChB,IAA6B,EAC7B,QAAoC,EACpC,QAAsC,EACtC,SAAkC;IAElC,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,IAAI,EACJ,QAAQ,CACT,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAO5C,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,sBAAsB,CAAC;AAG9B,OAAO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{
|
2
2
|
"name": "@eslinted/core",
|
3
|
-
"version": "0.7.0
|
3
|
+
"version": "0.7.0",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [],
|
6
6
|
"license": "MIT",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"dependencies": {},
|
34
34
|
"devDependencies": {
|
35
35
|
"eslint": "~8.57.0",
|
36
|
-
"linted": "~15.3
|
36
|
+
"linted": "~15.4.3",
|
37
37
|
"npm-run-all": "^4.1.5",
|
38
38
|
"typescript": "^5.5.3"
|
39
39
|
},
|
@@ -2,7 +2,7 @@ import type { Scope } from "../input.js";
|
|
2
2
|
import type { Options } from "../../../factory/Factory.js";
|
3
3
|
|
4
4
|
type Parsers = {
|
5
|
-
[S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]]
|
5
|
+
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]]
|
6
6
|
? unknown
|
7
7
|
: null
|
8
8
|
};
|
package/src/index.ts
CHANGED
@@ -27,20 +27,20 @@ export default function (
|
|
27
27
|
base,
|
28
28
|
includes,
|
29
29
|
),
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
30
|
+
imports: {
|
31
|
+
[S in Scope]: OmitFirst<ConstructorParameters<typeof Options[S]>>;
|
32
|
+
} = {
|
33
|
+
js: [plugins.js, []] as const,
|
34
|
+
ts: [plugins.ts, [parsers.ts]] as const,
|
35
|
+
svelte: [
|
36
|
+
plugins.svelte,
|
37
|
+
[parsers.svelte, parsers.ts],
|
38
|
+
] as const,
|
39
|
+
html: [plugins.html, [parsers.html]] as const,
|
40
|
+
json: [plugins.json, [parsers.json]] as const,
|
41
|
+
jsonc: [plugins.jsonc, [parsers.jsonc]] as const,
|
42
|
+
yml: [plugins.yml, [parsers.yml]] as const,
|
43
|
+
} as const;
|
44
44
|
|
45
45
|
for (const scope of scopes)
|
46
46
|
rulesets[scope].override(overrides[scope]);
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,YAAY,GAAG,KAAK,GAAG,CACxB,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CACR,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/index.ts"],"names":[],"mappings":""}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import type { Scope } from "../input.js";
|
2
|
-
type PluginImport = {
|
3
|
-
configs: unknown;
|
4
|
-
};
|
5
|
-
export default interface Plugins extends Record<Scope, Record<string, PluginImport>> {
|
6
|
-
js: {
|
7
|
-
"@stylistic": PluginImport;
|
8
|
-
};
|
9
|
-
ts: {
|
10
|
-
"@stylistic": PluginImport;
|
11
|
-
"@typescript-eslint": PluginImport;
|
12
|
-
};
|
13
|
-
svelte: {
|
14
|
-
"@stylistic": PluginImport;
|
15
|
-
"@typescript-eslint": PluginImport;
|
16
|
-
svelte: PluginImport;
|
17
|
-
};
|
18
|
-
html: {
|
19
|
-
"@html-eslint": PluginImport;
|
20
|
-
};
|
21
|
-
json: {
|
22
|
-
jsonc: PluginImport;
|
23
|
-
};
|
24
|
-
jsonc: {
|
25
|
-
jsonc: PluginImport;
|
26
|
-
};
|
27
|
-
yml: {
|
28
|
-
yml: PluginImport;
|
29
|
-
};
|
30
|
-
}
|
31
|
-
export {};
|
32
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,YAAY,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzC,MAAM,CAAC,OAAO,WAAW,OAAQ,SAAQ,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClF,EAAE,EAAE;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAC;IACnC,EAAE,EAAE;QACF,YAAY,EAAE,YAAY,CAAC;QAC3B,oBAAoB,EAAE,YAAY,CAAC;KACpC,CAAC;IACF,MAAM,EAAE;QACN,YAAY,EAAE,YAAY,CAAC;QAC3B,oBAAoB,EAAE,YAAY,CAAC;QACnC,MAAM,EAAE,YAAY,CAAC;KACtB,CAAC;IACF,IAAI,EAAE;QAAE,cAAc,EAAE,YAAY,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAC9B,KAAK,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAC/B,GAAG,EAAE;QAAE,GAAG,EAAE,YAAY,CAAA;KAAE,CAAC;CAC5B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/index.ts"],"names":[],"mappings":""}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export default interface Config {
|
2
|
-
rules: IRule;
|
3
|
-
files: readonly string[];
|
4
|
-
name: `linted/scope:${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=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,MAAM;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,IAAI,EAAE,gBAAgB,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,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":"index.js","sourceRoot":"","sources":["../../../../src/boundary/output/config/index.ts"],"names":[],"mappings":""}
|
package/dist/config/index.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
export default interface Config {
|
2
|
-
rules: IRule;
|
3
|
-
files: readonly string[];
|
4
|
-
name: `linted/scope:${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=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,MAAM;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,IAAI,EAAE,gBAAgB,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,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"}
|
package/dist/config/index.js
DELETED
package/dist/config/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":""}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { Scope } from "../index.js";
|
2
|
-
export default class Files<S extends Scope> {
|
3
|
-
readonly files: readonly string[];
|
4
|
-
constructor(scope: S, filescopes: {
|
5
|
-
base: Record<Scope, string[]>;
|
6
|
-
includes: Particord<Scope, string[]>;
|
7
|
-
});
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,KAAK,CAAC,CAAC,SAAS,KAAK;IACxC,SAAgB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;gBAGvC,KAAK,EAAE,CAAC,EACR,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;QAC9B,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;KACtC;CASJ"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/files/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,KAAK;IACR,KAAK,CAAoB;IAEzC,YACE,KAAQ,EACR,UAGC;QAED,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;QAEtC,IAAI,CAAC,KAAK,GAAG;YACX,GAAG,IAAI,CAAC,KAAK,CAAC;YACd,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;SACzB,CAAC;IACJ,CAAC;CACF"}
|
package/dist/factory/index.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import options from "./options/index.js";
|
2
|
-
import Files from "./files/index.js";
|
3
|
-
import Ruleset, { Rule } from "./ruleset/index.js";
|
4
|
-
import type { Scope } from "../index.js";
|
5
|
-
export { options, Files, Ruleset, Rule, type Scope, };
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,KAAK,KAAK,GACX,CAAC"}
|
package/dist/factory/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GAEL,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import type { Scope } from "../index.js";
|
2
|
-
import JsOption from "./option/js/index.js";
|
3
|
-
import TsOption from "./option/ts/index.js";
|
4
|
-
import SvelteOption from "./option/svelte/index.js";
|
5
|
-
import HtmlOption from "./option/html/index.js";
|
6
|
-
import JsonOption from "./option/json/index.js";
|
7
|
-
import JsoncOption from "./option/jsonc/index.js";
|
8
|
-
import YmlOption from "./option/yml/index.js";
|
9
|
-
export type { Scope };
|
10
|
-
declare const _default: {
|
11
|
-
js: typeof JsOption;
|
12
|
-
ts: typeof TsOption;
|
13
|
-
svelte: typeof SvelteOption;
|
14
|
-
html: typeof HtmlOption;
|
15
|
-
json: typeof JsonOption;
|
16
|
-
jsonc: typeof JsoncOption;
|
17
|
-
yml: typeof YmlOption;
|
18
|
-
};
|
19
|
-
export default _default;
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,YAAY,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;AACtB,wBAQmC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import JsOption from "./option/js/index.js";
|
2
|
-
import TsOption from "./option/ts/index.js";
|
3
|
-
import SvelteOption from "./option/svelte/index.js";
|
4
|
-
import HtmlOption from "./option/html/index.js";
|
5
|
-
import JsonOption from "./option/json/index.js";
|
6
|
-
import JsoncOption from "./option/jsonc/index.js";
|
7
|
-
import YmlOption from "./option/yml/index.js";
|
8
|
-
export default {
|
9
|
-
js: JsOption,
|
10
|
-
ts: TsOption,
|
11
|
-
svelte: SvelteOption,
|
12
|
-
html: HtmlOption,
|
13
|
-
json: JsonOption,
|
14
|
-
jsonc: JsoncOption,
|
15
|
-
yml: YmlOption,
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAG9C,eAAe;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,SAAS;CACkB,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { Scope } from "../index.js";
|
2
|
-
export default class Option<S extends Scope, PluginId extends string, UseParser extends boolean = never, ParserOptions extends object = never, GlobalTypes extends string = never, ProcessorId extends string = never, Source extends IOLanguageSource.Source = "module", Ecma extends number | IOLanguageEcma.Ecma = "latest"> {
|
3
|
-
readonly body: IOption<`linted/scope:${literalful<S>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>;
|
4
|
-
constructor(body: IOption<`linted/scope:${literalful<S>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>);
|
5
|
-
}
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,MAAM,CACzB,CAAC,SAAS,KAAK,EACf,QAAQ,SAAS,MAAM,EACvB,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,aAAa,SAAS,MAAM,GAAG,KAAK,EACpC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,MAAM,SAAS,gBAAgB,CAAC,MAAM,GAAG,QAAQ,EACjD,IAAI,SAAS,MAAM,GAAG,cAAc,CAAC,IAAI,GAAG,QAAQ;aAGlC,IAAI,EAAE,OAAO,CAC3B,gBAAgB,UAAU,CAAC,CAAC,CAAC,EAAE,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,CACZ;gBAXe,IAAI,EAAE,OAAO,CAC3B,gBAAgB,UAAU,CAAC,CAAC,CAAC,EAAE,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,CACZ;CAEJ"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,MAAM;IAWP;IADlB,YACkB,IAWf;QAXe,SAAI,GAAJ,IAAI,CAWnB;IACA,CAAC;CACL"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import Rule from "./rule/index.js";
|
2
|
-
export { Rule };
|
3
|
-
export default class Ruleset<Language extends string> {
|
4
|
-
readonly language: literalful<Language>;
|
5
|
-
readonly ruleset: readonly Rule[];
|
6
|
-
readonly overrides: Rule[];
|
7
|
-
constructor(language: literalful<Language>, ...ruleset: readonly Rule[]);
|
8
|
-
get id(): `ruleset:${literalful<Language>}`;
|
9
|
-
get flat(): IRule[];
|
10
|
-
override(...overrides: (undefined | IRule)[]): this;
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,QAAQ,SAAS,MAAM;aAKhC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IAJhD,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IACzC,SAAgB,SAAS,EAAE,IAAI,EAAE,CAAM;gBAGrB,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,EAC9C,GAAG,OAAO,EAAE,SAAS,IAAI,EAAE;IAK7B,IAAW,EAAE,sCAEZ;IAED,IAAW,IAAI,YAKd;IAEM,QAAQ,CAAC,GAAG,SAAS,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE;CAcpD"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import Rule from "./rule/index.js";
|
2
|
-
export { Rule };
|
3
|
-
export default class Ruleset {
|
4
|
-
language;
|
5
|
-
ruleset;
|
6
|
-
overrides = [];
|
7
|
-
constructor(language, ...ruleset) {
|
8
|
-
this.language = language;
|
9
|
-
this.ruleset = [...ruleset];
|
10
|
-
}
|
11
|
-
get id() {
|
12
|
-
return `ruleset:${this.language}`;
|
13
|
-
}
|
14
|
-
get flat() {
|
15
|
-
return [
|
16
|
-
...this.ruleset.map(rules => rules.rules),
|
17
|
-
...this.overrides.map(rules => rules.rules),
|
18
|
-
];
|
19
|
-
}
|
20
|
-
override(...overrides) {
|
21
|
-
this.overrides.push(...overrides
|
22
|
-
.filter(override => typeof override !== "undefined")
|
23
|
-
.map(override => new Rule("override", override)));
|
24
|
-
return this;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/ruleset/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO;IAKR;IAJF,OAAO,CAAkB;IACzB,SAAS,GAAW,EAAE,CAAC;IAEvC,YACkB,QAA8B,EAC9C,GAAG,OAAwB;QADX,aAAQ,GAAR,QAAQ,CAAsB;QAG9C,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,IAAW,EAAE;QACX,OAAO,WAAW,IAAI,CAAC,QAAQ,EAAW,CAAC;IAC7C,CAAC;IAED,IAAW,IAAI;QACb,OAAO;YACL,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YACzC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;SAC5C,CAAC;IACJ,CAAC;IAEM,QAAQ,CAAC,GAAG,SAAgC;QACjD,IAAI,CAAC,SAAS,CAAC,IAAI,CACjB,GAAG,SAAS;aACT,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,QAAQ,KAAK,WAAW,CAAC;aACnD,GAAG,CACF,QAAQ,CAAC,EAAE,CAAC,IAAI,IAAI,CAClB,UAAU,EACV,QAAQ,CACT,CACF,CACJ,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO;aAEM,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK;gBADZ,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK;CAE/B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO;IAEM;IACA;IAFlB,YACkB,EAAU,EACV,KAAY;QADZ,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAO;IAC3B,CAAC;CACL"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/module/boundary/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7D,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/module/boundary/index.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/module/boundary/parsers/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,YAAY,GAAG,KAAK,GAAG,CACxB,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CACR,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/module/boundary/parsers/index.ts"],"names":[],"mappings":""}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import type { Scope } from "../index.js";
|
2
|
-
type PluginImport = {
|
3
|
-
configs: unknown;
|
4
|
-
};
|
5
|
-
export default interface Plugins extends Record<Scope, Record<string, PluginImport>> {
|
6
|
-
js: {
|
7
|
-
"@stylistic": PluginImport;
|
8
|
-
};
|
9
|
-
ts: {
|
10
|
-
"@stylistic": PluginImport;
|
11
|
-
"@typescript-eslint": PluginImport;
|
12
|
-
};
|
13
|
-
svelte: {
|
14
|
-
"@stylistic": PluginImport;
|
15
|
-
"@typescript-eslint": PluginImport;
|
16
|
-
svelte: PluginImport;
|
17
|
-
};
|
18
|
-
html: {
|
19
|
-
"@html-eslint": PluginImport;
|
20
|
-
};
|
21
|
-
json: {
|
22
|
-
jsonc: PluginImport;
|
23
|
-
};
|
24
|
-
jsonc: {
|
25
|
-
jsonc: PluginImport;
|
26
|
-
};
|
27
|
-
yml: {
|
28
|
-
yml: PluginImport;
|
29
|
-
};
|
30
|
-
}
|
31
|
-
export {};
|
32
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/module/boundary/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,YAAY,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzC,MAAM,CAAC,OAAO,WAAW,OAAQ,SAAQ,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClF,EAAE,EAAE;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAC;IACnC,EAAE,EAAE;QACF,YAAY,EAAE,YAAY,CAAC;QAC3B,oBAAoB,EAAE,YAAY,CAAC;KACpC,CAAC;IACF,MAAM,EAAE;QACN,YAAY,EAAE,YAAY,CAAC;QAC3B,oBAAoB,EAAE,YAAY,CAAC;QACnC,MAAM,EAAE,YAAY,CAAC;KACtB,CAAC;IACF,IAAI,EAAE;QAAE,cAAc,EAAE,YAAY,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAC9B,KAAK,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAC/B,GAAG,EAAE;QAAE,GAAG,EAAE,YAAY,CAAA;KAAE,CAAC;CAC5B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/module/boundary/plugins/index.ts"],"names":[],"mappings":""}
|
package/dist/module/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/module/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE5D,YAAY,EACV,KAAK,EACL,OAAO,EACP,OAAO,GACR,CAAC;AACF,eAAe,MAAM,CAAC"}
|
package/dist/module/index.js
DELETED
package/dist/module/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/module/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,mBAAmB,CAAC;AAQvD,eAAe,MAAM,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/module/scopes/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/module/scopes/index.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"}
|