@eslinted/core 0.0.1-rc.4 → 0.0.1-rc.6

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import type { Scope } from "./scopes.js";
1
+ import type { Scopes } from "./scopes.js";
2
2
  import type Plugins from "./plugins.js";
3
+ import type Parsers from "./parsers.js";
3
4
  import type Ruleset from "./rulesets/ruleset/Ruleset.js";
4
5
  export { default as Ruleset } from "./rulesets/ruleset/Ruleset.js";
5
6
  export { Rule } from "./rulesets/ruleset/Ruleset.js";
6
- export default function (plugins: Plugins, parsers: Record<Scope, unknown>, files: Record<Scope, string[]>, rulesets: {
7
- [S in Scope]: Ruleset<S>;
7
+ export default function (plugins: Plugins, parsers: Parsers, files: Record<Scopes, string[]>, rulesets: {
8
+ [S in Scopes]: Ruleset<S>;
8
9
  }): IConfig[];
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,EAC/B,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC9B,QAAQ,EAAE;KAAG,CAAC,IAAI,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;CAAE,GACrC,OAAO,EAAE,CAqGX"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAA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AO;iBACJ,MAAM,EACT,OAAO;iBACJ,MAAM,EACT,OAAO;iBACJ,EAAE,EACL,GAAG,KAAK;iBACL,MAAM,CACV;iBACA,IAAI;YACP,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,OAAO;iBACJ,IAAI,EACP,OAAO;iBACJ,IAAI,EACP,GAAG,KAAK;iBACL,IAAI,CACR;iBACA,IAAI;YACP,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,OAAO;iBACJ,IAAI,EACP,OAAO;iBACJ,IAAI,EACP,GAAG,KAAK;iBACL,IAAI,CACR;iBACA,IAAI;YACP,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,OAAO;iBACJ,KAAK,EACR,OAAO;iBACJ,KAAK,EACR,GAAG,KAAK;iBACL,KAAK,CACT;iBACA,IAAI;YACP,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,OAAO;iBACJ,GAAG,EACN,OAAO;iBACJ,GAAG,EACN,GAAG,KAAK;iBACL,GAAG,CACP;iBACA,IAAI;SACR,CAAC;QAEF,OAAO,MAAM;aACV,GAAG,CACF,KAAK,CAAC,EAAE,CACN,mBAAmB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;YACzC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CACxB,KAAK,CAAC,EAAE;gBACN,OAAO;oBACL,KAAK;oBACL,GAAG,mBAAmB,CAAC,KAAK,CAAC;iBAC9B,CAAC;YACJ,CAAC,CACF;YACD,CAAC,CAAC,EAAE,CACT;aACA,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,6BAA6B,EAC7B,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAA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GAAG,CACP;iBACA,IAAI;SACR,CAAC;QAEF,OAAO,MAAM;aACV,GAAG,CACF,KAAK,CAAC,EAAE,CACN,mBAAmB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;YACzC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CACxB,KAAK,CAAC,EAAE;gBACN,OAAO;oBACL,KAAK;oBACL,GAAG,mBAAmB,CAAC,KAAK,CAAC;iBAC9B,CAAC;YACJ,CAAC,CACF;YACD,CAAC,CAAC,EAAE,CACT;aACA,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,6BAA6B,EAC7B,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,SAAS,MAAM,wBAAwB,CAAC;;;;;;;;;;AAE/C,wBAQmC"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,SAAS,MAAM,wBAAwB,CAAC;;;;;;;;;;AAE/C,wBAQoC"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,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":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAE/C,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;CACmB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Scopes } from "./scopes.js";
2
+ export default interface Parsers extends Particord<Scopes, unknown> {
3
+ ts: unknown;
4
+ svelte: unknown;
5
+ html: unknown;
6
+ json: unknown;
7
+ jsonc: unknown;
8
+ yml: unknown;
9
+ }
10
+ //# sourceMappingURL=parsers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,CAAC,OAAO,WAAW,OAAQ,SAAQ,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;IACjE,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parsers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":""}
package/dist/plugins.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import type { Scope } from "./scopes.js";
1
+ import type { Scopes } from "./scopes.js";
2
2
  type PluginPackage = {
3
3
  configs: unknown;
4
4
  };
5
- export default interface Plugins extends Record<Scope, Record<string, {
5
+ export default interface Plugins extends Record<Scopes, Record<string, {
6
6
  configs: unknown;
7
7
  }>> {
8
8
  js: {
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,aAAa,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1C,MAAM,CAAC,OAAO,WAAW,OAAQ,SAAQ,MAAM,CAC7C,KAAK,EACL,MAAM,CACJ,MAAM,EACN;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CACr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Aa,CAAA;KAAE,CAAC;IAC/B,KAAK,EAAE;QAAE,KAAK,EAAE,aAAa,CAAA;KAAE,CAAC;IAChC,GAAG,EAAE;QAAE,GAAG,EAAE,aAAa,CAAA;KAAE,CAAC;CAC7B"}
@@ -1,7 +1,7 @@
1
1
  import Rule from "./rule/Rule.js";
2
2
  export { default as Rule } from "./rule/Rule.js";
3
3
  export default class Ruleset<Language extends string> {
4
- protected readonly language: literalful<Language>;
4
+ readonly language: literalful<Language>;
5
5
  readonly ruleset: readonly Rule[];
6
6
  readonly overrides: Rule[];
7
7
  constructor(language: literalful<Language>, ...ruleset: readonly Rule[]);
@@ -1 +1 @@
1
- {"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/rulesets/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,QAAQ,SAAS,MAAM;IAKhD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IAJnD,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IACzC,SAAgB,SAAS,EAAE,IAAI,EAAE,CAAM;gBAGlB,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,EACjD,GAAG,OAAO,EAAE,SAAS,IAAI,EAAE;IAK7B,IAAW,EAAE,sCAEZ;IAED,IAAW,IAAI,YAWd;IAEM,QAAQ,CAAC,GAAG,SAAS,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE;CAkBpD"}
1
+ {"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/rulesets/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,gBAAgB,CA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J,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/dist/scopes.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type Scope = typeof scopes[number];
1
+ export type Scopes = typeof scopes[number];
2
2
  declare const scopes: readonly ["js", "ts", "svelte", "html", "json", "jsonc", "yml"];
3
3
  export default scopes;
4
4
  //# sourceMappingURL=scopes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAE1C,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslinted/core",
3
- "version": "0.0.1-rc.4",
3
+ "version": "0.0.1-rc.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -1,20 +1,21 @@
1
1
  import scopes from "./scopes.js";
2
2
  import options from "./options.js";
3
- import type { Scope } from "./scopes.js";
3
+ import type { Scopes } from "./scopes.js";
4
4
  import type Plugins from "./plugins.js";
5
+ import type Parsers from "./parsers.js";
5
6
  import type Ruleset from "./rulesets/ruleset/Ruleset.js";
6
7
 
7
8
  export { default as Ruleset } from "./rulesets/ruleset/Ruleset.js";
8
9
  export { Rule } from "./rulesets/ruleset/Ruleset.js";
9
10
  export default function (
10
11
  plugins: Plugins,
11
- parsers: Record<Scope, unknown>,
12
- files: Record<Scope, string[]>,
13
- rulesets: { [S in Scope]: Ruleset<S> },
12
+ parsers: Parsers,
13
+ files: Record<Scopes, string[]>,
14
+ rulesets: { [S in Scopes]: Ruleset<S> },
14
15
  ): IConfig[] {
15
16
  try {
16
17
  const instantiatedOptions: {
17
- [S in Scope]: InstanceType<
18
+ [S in Scopes]: InstanceType<
18
19
  typeof options[S]
19
20
  >["body"]
20
21
  } = {
package/src/options.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Scope } from "./scopes.js";
1
+ import type { Scopes } from "./scopes.js";
2
2
  import JsOption from "./options/JsOption.js";
3
3
  import TsOption from "./options/TsOption.js";
4
4
  import SvelteOption from "./options/SvelteOption.js";
@@ -15,4 +15,4 @@ export default {
15
15
  json: JsonOption,
16
16
  jsonc: JsoncOption,
17
17
  yml: YmlOption,
18
- } satisfies Record<Scope, unknown>;
18
+ } satisfies Record<Scopes, unknown>;
package/src/parsers.ts ADDED
@@ -0,0 +1,10 @@
1
+ import type { Scopes } from "./scopes.js";
2
+
3
+ export default interface Parsers extends Particord<Scopes, unknown> {
4
+ ts: unknown;
5
+ svelte: unknown;
6
+ html: unknown;
7
+ json: unknown;
8
+ jsonc: unknown;
9
+ yml: unknown;
10
+ }
package/src/plugins.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { Scope } from "./scopes.js";
1
+ import type { Scopes } from "./scopes.js";
2
2
 
3
3
  type PluginPackage = { configs: unknown };
4
4
 
5
5
  export default interface Plugins extends Record<
6
- Scope,
6
+ Scopes,
7
7
  Record<
8
8
  string,
9
9
  { configs: unknown }
@@ -6,7 +6,7 @@ export default class Ruleset<Language extends string> {
6
6
  public readonly overrides: Rule[] = [];
7
7
 
8
8
  constructor(
9
- protected readonly language: literalful<Language>,
9
+ public readonly language: literalful<Language>,
10
10
  ...ruleset: readonly Rule[]
11
11
  ) {
12
12
  this.ruleset = [...ruleset];
package/src/scopes.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type Scope = typeof scopes[number];
1
+ export type Scopes = typeof scopes[number];
2
2
 
3
3
  const scopes = [
4
4
  "js",