@eslinted/core 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/index.d.ts +2 -1
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/options/index.d.ts +9 -1
- package/dist/factory/options/index.d.ts.map +1 -1
- package/dist/factory/options/index.js +7 -1
- package/dist/factory/options/index.js.map +1 -1
- package/dist/factory/options/option/index.d.ts +4 -11
- package/dist/factory/options/option/index.d.ts.map +1 -1
- package/dist/factory/options/option/index.js +0 -8
- package/dist/factory/options/option/index.js.map +1 -1
- package/package.json +1 -1
- package/src/factory/index.ts +2 -0
- package/src/factory/options/index.ts +9 -10
- package/src/factory/options/option/index.ts +3 -18
- package/src/factory/options/option/md/index.ts +0 -31
package/dist/factory/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,KAAK,GACX,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AACzC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EACL,OAAO,EACP,OAAO,EACP,IAAI,GAEL,CAAC"}
|
@@ -1,4 +1,12 @@
|
|
1
|
-
import {
|
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 };
|
2
10
|
declare const _default: {
|
3
11
|
js: typeof JsOption;
|
4
12
|
ts: typeof TsOption;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"
|
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,4 +1,10 @@
|
|
1
|
-
import
|
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";
|
2
8
|
export default {
|
3
9
|
js: JsOption,
|
4
10
|
ts: TsOption,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/options/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
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,13 +1,6 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
import JsonOption from "./json/index.js";
|
6
|
-
import JsoncOption from "./jsonc/index.js";
|
7
|
-
import YmlOption from "./yml/index.js";
|
8
|
-
export { JsOption, TsOption, SvelteOption, HtmlOption, JsonOption, JsoncOption, YmlOption, };
|
9
|
-
export default class Option<Scope extends string, 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"> {
|
10
|
-
readonly body: IOption<`linted/scope:${literalful<Scope>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>;
|
11
|
-
constructor(body: IOption<`linted/scope:${literalful<Scope>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>);
|
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>);
|
12
5
|
}
|
13
6
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
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,11 +1,3 @@
|
|
1
|
-
import JsOption from "./js/index.js";
|
2
|
-
import TsOption from "./ts/index.js";
|
3
|
-
import SvelteOption from "./svelte/index.js";
|
4
|
-
import HtmlOption from "./html/index.js";
|
5
|
-
import JsonOption from "./json/index.js";
|
6
|
-
import JsoncOption from "./jsonc/index.js";
|
7
|
-
import YmlOption from "./yml/index.js";
|
8
|
-
export { JsOption, TsOption, SvelteOption, HtmlOption, JsonOption, JsoncOption, YmlOption, };
|
9
1
|
export default class Option {
|
10
2
|
body;
|
11
3
|
constructor(body) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"
|
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"}
|
package/package.json
CHANGED
package/src/factory/index.ts
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
import type { Scope } from "
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
YmlOption,
|
10
|
-
} from "./option/index.js";
|
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";
|
11
9
|
|
10
|
+
export type { Scope };
|
12
11
|
export default {
|
13
12
|
js: JsOption,
|
14
13
|
ts: TsOption,
|
@@ -1,22 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import TsOption from "./ts/index.js";
|
3
|
-
import SvelteOption from "./svelte/index.js";
|
4
|
-
import HtmlOption from "./html/index.js";
|
5
|
-
import JsonOption from "./json/index.js";
|
6
|
-
import JsoncOption from "./jsonc/index.js";
|
7
|
-
import YmlOption from "./yml/index.js";
|
1
|
+
import type { Scope } from "../index.js";
|
8
2
|
|
9
|
-
export {
|
10
|
-
JsOption,
|
11
|
-
TsOption,
|
12
|
-
SvelteOption,
|
13
|
-
HtmlOption,
|
14
|
-
JsonOption,
|
15
|
-
JsoncOption,
|
16
|
-
YmlOption,
|
17
|
-
};
|
18
3
|
export default class Option<
|
19
|
-
|
4
|
+
S extends Scope,
|
20
5
|
PluginId extends string,
|
21
6
|
UseParser extends boolean = never,
|
22
7
|
ParserOptions extends object = never,
|
@@ -27,7 +12,7 @@ export default class Option<
|
|
27
12
|
> {
|
28
13
|
constructor(
|
29
14
|
public readonly body: IOption<
|
30
|
-
`linted/scope:${literalful<
|
15
|
+
`linted/scope:${literalful<S>}`,
|
31
16
|
true,
|
32
17
|
"error",
|
33
18
|
PluginId,
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import Option from "../index.js";
|
2
|
-
|
3
|
-
export default class MdOption extends Option<
|
4
|
-
"md",
|
5
|
-
"yml",
|
6
|
-
true,
|
7
|
-
never,
|
8
|
-
never,
|
9
|
-
never,
|
10
|
-
never,
|
11
|
-
never
|
12
|
-
> {
|
13
|
-
constructor(
|
14
|
-
plugins: MdOption["body"]["plugins"],
|
15
|
-
parser: MdOption["body"]["languageOptions"]["parser"],
|
16
|
-
...files: string[]
|
17
|
-
) {
|
18
|
-
super(
|
19
|
-
{
|
20
|
-
name: "linted/scope:md",
|
21
|
-
files,
|
22
|
-
plugins,
|
23
|
-
linterOptions: {
|
24
|
-
noInlineConfig: true,
|
25
|
-
reportUnusedDisableDirectives: "error",
|
26
|
-
},
|
27
|
-
languageOptions: { parser },
|
28
|
-
},
|
29
|
-
);
|
30
|
-
}
|
31
|
-
}
|