@eslinted/core 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  import options from "./options/index.js";
2
2
  import Ruleset, { Rule } from "./ruleset/index.js";
3
- export { options, Ruleset, Rule, };
3
+ import type { Scope } from "../index.js";
4
+ export { options, Ruleset, Rule, type Scope, };
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAEnD,OAAO,EACL,OAAO,EACP,OAAO,EACP,IAAI,GACL,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;AAEnD,OAAO,EACL,OAAO,EACP,OAAO,EACP,IAAI,GACL,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 { JsOption, TsOption, SvelteOption, HtmlOption, JsonOption, JsoncOption, YmlOption } 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";
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":"AACA,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACV,MAAM,mBAAmB,CAAC;;;;;;;;;;AAE3B,wBAQmC"}
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 { JsOption, TsOption, SvelteOption, HtmlOption, JsonOption, JsoncOption, YmlOption, } from "./option/index.js";
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,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,mBAAmB,CAAC;AAE3B,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
+ {"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 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
- 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,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,SAAS,MAAM,gBAAgB,CAAC;A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AAI,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":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,GACV,CAAC;AACF,MAAM,CAAC,OAAO,OAAO,MAAM;IAWP;IADlB,YACkB,IAWf;QAXe,SAAI,GAAJ,IAAI,CAWnB;IACA,CAAC;CACL"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslinted/core",
3
- "version": "0.4.9",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {},
31
31
  "devDependencies": {
32
32
  "eslint": "~8.57.0",
33
- "linted": "~15.2.1",
33
+ "linted": "~15.2.5",
34
34
  "npm-run-all": "^4.1.5",
35
35
  "typescript": "^5.5.3"
36
36
  },
@@ -1,8 +1,10 @@
1
1
  import options from "./options/index.js";
2
2
  import Ruleset, { Rule } from "./ruleset/index.js";
3
+ import type { Scope } from "../index.js";
3
4
 
4
5
  export {
5
6
  options,
6
7
  Ruleset,
7
8
  Rule,
9
+ type Scope,
8
10
  };
@@ -1,14 +1,13 @@
1
- import type { Scope } from "../../index.js";
2
- import {
3
- JsOption,
4
- TsOption,
5
- SvelteOption,
6
- HtmlOption,
7
- JsonOption,
8
- JsoncOption,
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 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";
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
- Scope extends string,
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<Scope>}`,
15
+ `linted/scope:${literalful<S>}`,
31
16
  true,
32
17
  "error",
33
18
  PluginId,
@@ -1,5 +0,0 @@
1
- import Option from "../index.js";
2
- export default class MdOption extends Option<"md", "yml", true, never, never, never, never, never> {
3
- constructor(plugins: MdOption["body"]["plugins"], parser: MdOption["body"]["languageOptions"]["parser"], ...files: string[]);
4
- }
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACpC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACrD,GAAG,KAAK,EAAE,MAAM,EAAE;CAerB"}
@@ -1,16 +0,0 @@
1
- import Option from "../index.js";
2
- export default class MdOption extends Option {
3
- constructor(plugins, parser, ...files) {
4
- super({
5
- name: "linted/scope:md",
6
- files,
7
- plugins,
8
- linterOptions: {
9
- noInlineConfig: true,
10
- reportUnusedDisableDirectives: "error",
11
- },
12
- languageOptions: { parser },
13
- });
14
- }
15
- }
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MASrC;IACC,YACE,OAAoC,EACpC,MAAqD,EACrD,GAAG,KAAe;QAElB,KAAK,CACH;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -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
- }