@eslinted/core 3.5.0 → 4.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/dist/boundary/input/files/default/index.d.ts +4 -0
  2. package/dist/boundary/input/files/default/index.d.ts.map +1 -0
  3. package/dist/boundary/input/files/default/index.js.map +1 -0
  4. package/dist/boundary/input/files/includes/index.d.ts +2 -2
  5. package/dist/boundary/input/files/includes/index.d.ts.map +1 -1
  6. package/dist/boundary/input/files/index.d.ts +3 -3
  7. package/dist/boundary/input/files/index.d.ts.map +1 -1
  8. package/dist/boundary/input/rules/index.d.ts +3 -3
  9. package/dist/boundary/input/rules/index.d.ts.map +1 -1
  10. package/dist/boundary/input/rules/overrides/index.d.ts +1 -1
  11. package/dist/boundary/input/rules/overrides/index.d.ts.map +1 -1
  12. package/dist/boundary/input/rules/preset/entry/index.d.ts +3 -3
  13. package/dist/boundary/input/rules/preset/entry/index.d.ts.map +1 -1
  14. package/dist/boundary/input/rules/preset/entry/object/index.d.ts +3 -3
  15. package/dist/boundary/input/rules/preset/entry/object/index.d.ts.map +1 -1
  16. package/dist/boundary/input/rules/preset/entry/object/state/index.d.ts +2 -2
  17. package/dist/boundary/input/rules/preset/entry/object/state/index.d.ts.map +1 -1
  18. package/dist/boundary/input/rules/preset/index.d.ts +3 -3
  19. package/dist/boundary/input/rules/preset/index.d.ts.map +1 -1
  20. package/dist/boundary/output/config/index.d.ts +1 -1
  21. package/dist/boundary/output/config/index.d.ts.map +1 -1
  22. package/dist/factory/files/index.js +2 -2
  23. package/dist/factory/files/index.js.map +1 -1
  24. package/dist/factory/options/option/index.d.ts +5 -0
  25. package/dist/factory/options/option/index.d.ts.map +1 -1
  26. package/dist/factory/rulesets/index.js +2 -2
  27. package/dist/factory/rulesets/index.js.map +1 -1
  28. package/dist/factory/rulesets/ruleset/index.d.ts +1 -1
  29. package/dist/factory/rulesets/ruleset/index.d.ts.map +1 -1
  30. package/dist/factory/rulesets/ruleset/rule/index.d.ts +2 -2
  31. package/dist/factory/rulesets/ruleset/rule/index.d.ts.map +1 -1
  32. package/dist/factory/rulesets/ruleset/rule/index.js.map +1 -1
  33. package/dist/index.d.ts +3 -3
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +2 -2
  36. package/dist/index.js.map +1 -1
  37. package/package.json +2 -2
  38. package/src/boundary/input/files/default/index.ts +8 -0
  39. package/src/boundary/input/files/includes/index.ts +2 -2
  40. package/src/boundary/input/files/index.ts +3 -3
  41. package/src/boundary/input/rules/index.ts +6 -3
  42. package/src/boundary/input/rules/overrides/index.ts +1 -1
  43. package/src/boundary/input/rules/preset/entry/index.ts +7 -3
  44. package/src/boundary/input/rules/preset/entry/object/index.ts +9 -5
  45. package/src/boundary/input/rules/preset/entry/object/state/index.ts +6 -2
  46. package/src/boundary/input/rules/preset/index.ts +7 -3
  47. package/src/boundary/output/config/index.ts +1 -1
  48. package/src/factory/files/index.ts +2 -2
  49. package/src/factory/rulesets/index.ts +2 -2
  50. package/src/factory/rulesets/ruleset/rule/index.ts +1 -1
  51. package/src/index.ts +14 -9
  52. package/dist/boundary/input/files/base/index.d.ts +0 -4
  53. package/dist/boundary/input/files/base/index.d.ts.map +0 -1
  54. package/dist/boundary/input/files/base/index.js.map +0 -1
  55. package/src/boundary/input/files/base/index.ts +0 -5
  56. /package/dist/boundary/input/files/{base → default}/index.js +0 -0
@@ -0,0 +1,4 @@
1
+ import type { Scope } from "../../../../scopes/index.js";
2
+ type FileBase = Readonly<Record<Scope, readonly string[]>>;
3
+ export type { FileBase, FileBase as default, };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/default/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD,KAAK,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAE3D,YAAY,EACV,QAAQ,EACR,QAAQ,IAAI,OAAO,GACpB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/default/index.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import type * as Includes from "../base/index.js";
2
- type Includes = Partial<Includes.Base>;
1
+ import type * as Includes from "../default/index.js";
2
+ type Includes = Partial<Includes.FileBase>;
3
3
  export type { Includes, Includes as default };
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/includes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAElD,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEvC,YAAY,EAAE,QAAQ,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/includes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAErD,KAAK,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAE3C,YAAY,EAAE,QAAQ,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
- import type Base from "./base/index.js";
1
+ import type FileBase from "./default/index.js";
2
2
  import type Includes from "./includes/index.js";
3
3
  type Files = {
4
- base: Base;
4
+ files: FileBase;
5
5
  includes: Includes;
6
6
  };
7
- export type { Base, Includes, Files, Files as default, };
7
+ export type { FileBase, Includes, Files, Files as default, };
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,KAAK,KAAK,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhD,YAAY,EACV,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,KAAK,IAAI,OAAO,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,KAAK,KAAK,GAAG;IAAE,KAAK,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AAErD,YAAY,EACV,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,IAAI,OAAO,GACjB,CAAC"}
@@ -1,8 +1,8 @@
1
- import type Preset from "./preset/index.js";
1
+ import type RuleBase from "./preset/index.js";
2
2
  import type Overrides from "./overrides/index.js";
3
3
  type Rules = {
4
- preset: Preset;
4
+ rules: RuleBase;
5
5
  overrides: Overrides;
6
6
  };
7
- export type { Preset, Overrides, Rules, Rules as default, };
7
+ export type { RuleBase, Overrides, Rules, Rules as default, };
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,KAAK,KAAK,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC;AAEtD,YAAY,EACV,MAAM,EACN,SAAS,EACT,KAAK,EACL,KAAK,IAAI,OAAO,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,YAAY,EACV,QAAQ,EACR,SAAS,EACT,KAAK,EACL,KAAK,IAAI,OAAO,GACjB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Scope } from "../../../../scopes/index.js";
2
2
  import type * as Overrides from "../preset/index.js";
3
- type Overrides = Readonly<Partial<Record<Scope, Overrides.Preset.Entry.Object>>>;
3
+ type Overrides = Readonly<Partial<Record<Scope, Overrides.RuleBase.RuleEntry.RuleObject>>>;
4
4
  export type { Overrides, Overrides as default };
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/overrides/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAErD,KAAK,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAEjF,YAAY,EAAE,SAAS,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/overrides/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAErD,KAAK,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAE3F,YAAY,EAAE,SAAS,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type * as Entry from "./object/index.js";
2
- type Entry = readonly [string, Entry.Object];
3
- export type { Entry, Entry as default };
1
+ import type * as RuleEntry from "./object/index.js";
2
+ type RuleEntry = readonly [string, RuleEntry.RuleObject];
3
+ export type { RuleEntry, RuleEntry as Entry, RuleEntry as default, };
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/preset/entry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAEhD,KAAK,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7C,YAAY,EAAE,KAAK,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/preset/entry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAEpD,KAAK,SAAS,GAAG,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;AAEzD,YAAY,EACV,SAAS,EACT,SAAS,IAAI,KAAK,EAClB,SAAS,IAAI,OAAO,GACrB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type * as Object from "./state/index.js";
2
- type Object = Readonly<Record<string, Object.Level | readonly [Object.Level, ...unknown[]]>>;
3
- export type { Object, Object as default };
1
+ import type * as RuleObject from "./state/index.js";
2
+ type RuleObject = Readonly<Record<string, RuleObject.RuleLevel | readonly [RuleObject.RuleLevel, ...unknown[]]>>;
3
+ export type { RuleObject, RuleObject as Object, RuleObject as default, };
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/preset/entry/object/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAEhD,KAAK,MAAM,GAAG,QAAQ,CAAC,MAAM,CAC3B,MAAM,EACJ,MAAM,CAAC,KAAK,GACZ,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CACxC,CAAC,CAAC;AAEH,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/preset/entry/object/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAEpD,KAAK,UAAU,GAAG,QAAQ,CAAC,MAAM,CAC/B,MAAM,EACJ,UAAU,CAAC,SAAS,GACpB,SAAS,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAChD,CAAC,CAAC;AAEH,YAAY,EACV,UAAU,EACV,UAAU,IAAI,MAAM,EACpB,UAAU,IAAI,OAAO,GACtB,CAAC"}
@@ -1,3 +1,3 @@
1
- type Level = "error" | "warn" | "off";
2
- export type { Level, Level as default };
1
+ type RuleLevel = "error" | "warn" | "off";
2
+ export type { RuleLevel, RuleLevel as Level, RuleLevel as default, };
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/boundary/input/rules/preset/entry/object/state/index.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GACN,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EAAE,KAAK,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/boundary/input/rules/preset/entry/object/state/index.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GACV,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EACV,SAAS,EACT,SAAS,IAAI,KAAK,EAClB,SAAS,IAAI,OAAO,GACrB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Scope } from "../../../../scopes/index.js";
2
- import type * as Preset from "./entry/index.js";
3
- type Preset = Readonly<Record<Scope, readonly Preset.Entry[]>>;
4
- export type { Preset, Preset as default };
2
+ import type * as RuleBase from "./entry/index.js";
3
+ type RuleBase = Readonly<Record<Scope, readonly RuleBase.RuleEntry[]>>;
4
+ export type { RuleBase, RuleBase as Base, RuleBase as default, };
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/preset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAEhD,KAAK,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAE/D,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/preset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAElD,KAAK,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AAEvE,YAAY,EACV,QAAQ,EACR,QAAQ,IAAI,IAAI,EAChB,QAAQ,IAAI,OAAO,GACpB,CAAC"}
@@ -2,7 +2,7 @@ import type { Rules } from "../../input/index.js";
2
2
  import type * as Config from "./option/index.js";
3
3
  interface Config {
4
4
  name: `linted/scope:${string}/rule:${string}+${string}`;
5
- rules: Rules.Preset.Entry.Object;
5
+ rules: Rules.RuleBase.RuleEntry.RuleObject;
6
6
  files: readonly string[];
7
7
  linterOptions: {
8
8
  noInlineConfig: true;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAEjD,UAAU,MAAM;IACd,IAAI,EAAE,gBAAgB,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACxD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IACjC,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;AAED,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAEjD,UAAU,MAAM;IACd,IAAI,EAAE,gBAAgB,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACxD,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC;IAC3C,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;AAED,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
@@ -5,8 +5,8 @@ export default class Files {
5
5
  }
6
6
  files(scope) {
7
7
  try {
8
- const { base, includes } = this.input;
9
- return [...base[scope], ...includes[scope] ?? []];
8
+ const { files, includes } = this.input;
9
+ return [...files[scope], ...includes[scope] ?? []];
10
10
  }
11
11
  catch (e) {
12
12
  throw new Error(`linted.factory.Files/scope:${scope}`, { cause: e });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/files/index.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,KAAK;IACK;IAA7B,YAA6B,KAAwB;QAAxB,UAAK,GAAL,KAAK,CAAmB;IAAG,CAAC;IAElD,KAAK,CAAC,KAAY;QACvB,IAAI,CAAC;YACH,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAEtC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QACpD,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,8BAA8B,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACrF,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/files/index.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,KAAK;IACK;IAA7B,YAA6B,KAAwB;QAAxB,UAAK,GAAL,KAAK,CAAmB;IAAG,CAAC;IAElD,KAAK,CAAC,KAAY;QACvB,IAAI,CAAC;YACH,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAEvC,OAAO,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QACrD,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,8BAA8B,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACrF,CAAC;CACF"}
@@ -87,6 +87,7 @@ export default abstract class Option<S extends Scope, PluginId extends Plugins,
87
87
  readonly BackgroundFetchManager: false;
88
88
  readonly BackgroundFetchRecord: false;
89
89
  readonly BackgroundFetchRegistration: false;
90
+ readonly BarcodeDetector: false;
90
91
  readonly BarProp: false;
91
92
  readonly BaseAudioContext: false;
92
93
  readonly BatteryManager: false;
@@ -690,6 +691,8 @@ export default abstract class Option<S extends Scope, PluginId extends Plugins,
690
691
  readonly onresize: true;
691
692
  readonly onscroll: true;
692
693
  readonly onscrollend: true;
694
+ readonly onscrollsnapchange: true;
695
+ readonly onscrollsnapchanging: true;
693
696
  readonly onsearch: true;
694
697
  readonly onsecuritypolicyviolation: true;
695
698
  readonly onseeked: true;
@@ -881,6 +884,7 @@ export default abstract class Option<S extends Scope, PluginId extends Plugins,
881
884
  readonly showDirectoryPicker: false;
882
885
  readonly showOpenFilePicker: false;
883
886
  readonly showSaveFilePicker: false;
887
+ readonly SnapEvent: false;
884
888
  readonly SourceBuffer: false;
885
889
  readonly SourceBufferList: false;
886
890
  readonly speechSynthesis: false;
@@ -2648,6 +2652,7 @@ export default abstract class Option<S extends Scope, PluginId extends Plugins,
2648
2652
  readonly BackgroundFetchManager: false;
2649
2653
  readonly BackgroundFetchRecord: false;
2650
2654
  readonly BackgroundFetchRegistration: false;
2655
+ readonly BarcodeDetector: false;
2651
2656
  readonly Blob: false;
2652
2657
  readonly BroadcastChannel: false;
2653
2658
  readonly btoa: false;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpC"}
@@ -6,8 +6,8 @@ export default class {
6
6
  }
7
7
  ruleset(scope) {
8
8
  try {
9
- const { preset, overrides } = this.input;
10
- return new Ruleset(scope, ...preset[scope].map(args => new Rule(...args))).override(overrides[scope]);
9
+ const { rules, overrides } = this.input;
10
+ return new Ruleset(scope, ...rules[scope].map(args => new Rule(...args))).override(overrides[scope]);
11
11
  }
12
12
  catch (e) {
13
13
  throw new Error(`linted.factory.Rulesets/ruleset/scope:${scope}`, { cause: e });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAInD,MAAM,CAAC,OAAO;IACiB;IAA7B,YAA6B,KAAwB;QAAxB,UAAK,GAAL,KAAK,CAAmB;IAAG,CAAC;IAElD,OAAO,CAAkB,KAAoB;QAClD,IAAI,CAAC;YACH,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAEzC,OAAO,IAAI,OAAO,CAAI,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3G,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,yCAAyC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IAChG,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAInD,MAAM,CAAC,OAAO;IACiB;IAA7B,YAA6B,KAAwB;QAAxB,UAAK,GAAL,KAAK,CAAmB;IAAG,CAAC;IAElD,OAAO,CAAkB,KAAoB;QAClD,IAAI,CAAC;YACH,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAExC,OAAO,IAAI,OAAO,CAAI,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1G,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,yCAAyC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IAChG,CAAC;CACF"}
@@ -7,7 +7,7 @@ export default class Ruleset<S extends Scope> {
7
7
  overrides: Null<Rule>;
8
8
  constructor(scope: literalful<S>, ...rules: readonly Rule[]);
9
9
  get id(): literalful<S>;
10
- get records(): (readonly [string, Readonly<Record<string, import("../../../boundary/input/rules/preset/entry/object/state/index.js").Level | readonly [import("../../../boundary/input/rules/preset/entry/object/state/index.js").Level, ...unknown[]]>>])[];
10
+ get records(): (readonly [string, Readonly<Record<string, import("../../../boundary/input/rules/preset/entry/object/state/index.js").RuleLevel | readonly [import("../../../boundary/input/rules/preset/entry/object/state/index.js").RuleLevel, ...unknown[]]>>])[];
11
11
  override(overrides: undefined | Rule["rules"]): this;
12
12
  }
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/rulesets/ruleset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAI9B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHlC,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAEP,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAO5E,IAAW,EAAE,kBAIZ;IAED,IAAW,OAAO,kPAUjB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;CAMrD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/rulesets/ruleset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAI9B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHlC,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAEP,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAO5E,IAAW,EAAE,kBAIZ;IAED,IAAW,OAAO,0PAUjB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;CAMrD"}
@@ -1,7 +1,7 @@
1
1
  import type { Input } from "../../../../boundary/index.js";
2
2
  export default class {
3
3
  readonly id: string;
4
- readonly rules: Input.Rules.Preset.Entry.Object;
5
- constructor(id: string, rules: Input.Rules.Preset.Entry.Object);
4
+ readonly rules: Input.Rules.RuleBase.RuleEntry.RuleObject;
5
+ constructor(id: string, rules: Input.Rules.RuleBase.RuleEntry.RuleObject);
6
6
  }
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/rulesets/ruleset/rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO;aAEM,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;gBADtC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;CAEzD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/rulesets/ruleset/rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO;aAEM,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU;gBADhD,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU;CAEnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/rulesets/ruleset/rule/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO;IAEM;IACA;IAFlB,YACkB,EAAU,EACV,KAAsC;QADtC,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAiC;IACrD,CAAC;CACL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/rulesets/ruleset/rule/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO;IAEM;IACA;IAFlB,YACkB,EAAU,EACV,KAAgD;QADhD,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAA2C;IAC/D,CAAC;CACL"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type * as Boundary from "./boundary/index.js";
2
- export type { Boundary };
3
- export default function (plugins: Boundary.Input.Plugins, parsers: Boundary.Input.Parsers, files: Boundary.Input.Files, rules: Boundary.Input.Rules): Boundary.Output[];
1
+ import type { Input, Output } from "./boundary/index.js";
2
+ export type * as LintedCore from "./boundary/index.js";
3
+ export default function (plugins: Input.Plugins, parsers: Input.Parsers, files: Input.Files, rules: Input.Rules): Output[];
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAGrD,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,GAC1B,QAAQ,CAAC,MAAM,EAAE,CAyEnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAEzD,YAAY,KAAK,UAAU,MAAM,qBAAqB,CAAC;AACvD,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,GACjB,MAAM,EAAE,CAyEV"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import scopes, {} from "./scopes/index.js";
2
- import { Options, Files, Rulesets } from "./factory/index.js";
1
+ import { Options, Files, Rulesets, } from "./factory/index.js";
2
+ import scopes from "./scopes/index.js";
3
3
  export default function (plugins, parsers, files, rules) {
4
4
  try {
5
5
  const F = new Files(files), R = new Rulesets(rules), options = {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9D,MAAM,CAAC,OAAO,WACZ,OAA+B,EAC/B,OAA+B,EAC/B,KAA2B,EAC3B,KAA2B;IAE3B,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,EAC1B,CAAC,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,EACvB,OAAO,GAAiE;YACtE,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,EACvC,EAAE,CACH,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,EAC5F,CAAC,OAAO,CA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,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.17.8",
3
3
  "name": "@eslinted/core",
4
- "version": "3.5.0",
4
+ "version": "4.0.0-rc.0",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "peerDependenciesMeta": {},
24
24
  "dependencies": {
25
- "globals": "^15.9.0"
25
+ "globals": "^15.10.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "npm-run-all": "^4.1.5",
@@ -0,0 +1,8 @@
1
+ import type { Scope } from "../../../../scopes/index.js";
2
+
3
+ type FileBase = Readonly<Record<Scope, readonly string[]>>;
4
+
5
+ export type {
6
+ FileBase,
7
+ FileBase as default,
8
+ };
@@ -1,5 +1,5 @@
1
- import type * as Includes from "../base/index.js";
1
+ import type * as Includes from "../default/index.js";
2
2
 
3
- type Includes = Partial<Includes.Base>;
3
+ type Includes = Partial<Includes.FileBase>;
4
4
 
5
5
  export type { Includes, Includes as default };
@@ -1,10 +1,10 @@
1
- import type Base from "./base/index.js";
1
+ import type FileBase from "./default/index.js";
2
2
  import type Includes from "./includes/index.js";
3
3
 
4
- type Files = { base: Base; includes: Includes };
4
+ type Files = { files: FileBase; includes: Includes };
5
5
 
6
6
  export type {
7
- Base,
7
+ FileBase,
8
8
  Includes,
9
9
  Files,
10
10
  Files as default,
@@ -1,10 +1,13 @@
1
- import type Preset from "./preset/index.js";
1
+ import type RuleBase from "./preset/index.js";
2
2
  import type Overrides from "./overrides/index.js";
3
3
 
4
- type Rules = { preset: Preset; overrides: Overrides };
4
+ type Rules = {
5
+ rules: RuleBase;
6
+ overrides: Overrides;
7
+ };
5
8
 
6
9
  export type {
7
- Preset,
10
+ RuleBase,
8
11
  Overrides,
9
12
  Rules,
10
13
  Rules as default,
@@ -1,6 +1,6 @@
1
1
  import type { Scope } from "../../../../scopes/index.js";
2
2
  import type * as Overrides from "../preset/index.js";
3
3
 
4
- type Overrides = Readonly<Partial<Record<Scope, Overrides.Preset.Entry.Object>>>;
4
+ type Overrides = Readonly<Partial<Record<Scope, Overrides.RuleBase.RuleEntry.RuleObject>>>;
5
5
 
6
6
  export type { Overrides, Overrides as default };
@@ -1,5 +1,9 @@
1
- import type * as Entry from "./object/index.js";
1
+ import type * as RuleEntry from "./object/index.js";
2
2
 
3
- type Entry = readonly [string, Entry.Object];
3
+ type RuleEntry = readonly [string, RuleEntry.RuleObject];
4
4
 
5
- export type { Entry, Entry as default };
5
+ export type {
6
+ RuleEntry,
7
+ RuleEntry as Entry,
8
+ RuleEntry as default,
9
+ };
@@ -1,9 +1,13 @@
1
- import type * as Object from "./state/index.js";
1
+ import type * as RuleObject from "./state/index.js";
2
2
 
3
- type Object = Readonly<Record<
3
+ type RuleObject = Readonly<Record<
4
4
  string,
5
- | Object.Level
6
- | readonly [Object.Level, ...unknown[]]
5
+ | RuleObject.RuleLevel
6
+ | readonly [RuleObject.RuleLevel, ...unknown[]]
7
7
  >>;
8
8
 
9
- export type { Object, Object as default };
9
+ export type {
10
+ RuleObject,
11
+ RuleObject as Object,
12
+ RuleObject as default,
13
+ };
@@ -1,6 +1,10 @@
1
- type Level =
1
+ type RuleLevel =
2
2
  | "error"
3
3
  | "warn"
4
4
  | "off";
5
5
 
6
- export type { Level, Level as default };
6
+ export type {
7
+ RuleLevel,
8
+ RuleLevel as Level,
9
+ RuleLevel as default,
10
+ };
@@ -1,6 +1,10 @@
1
1
  import type { Scope } from "../../../../scopes/index.js";
2
- import type * as Preset from "./entry/index.js";
2
+ import type * as RuleBase from "./entry/index.js";
3
3
 
4
- type Preset = Readonly<Record<Scope, readonly Preset.Entry[]>>;
4
+ type RuleBase = Readonly<Record<Scope, readonly RuleBase.RuleEntry[]>>;
5
5
 
6
- export type { Preset, Preset as default };
6
+ export type {
7
+ RuleBase,
8
+ RuleBase as Base,
9
+ RuleBase as default,
10
+ };
@@ -3,7 +3,7 @@ import type * as Config from "./option/index.js";
3
3
 
4
4
  interface Config {
5
5
  name: `linted/scope:${string}/rule:${string}+${string}`;
6
- rules: Rules.Preset.Entry.Object;
6
+ rules: Rules.RuleBase.RuleEntry.RuleObject;
7
7
  files: readonly string[];
8
8
  linterOptions: {
9
9
  noInlineConfig: true;
@@ -6,9 +6,9 @@ export default class Files {
6
6
 
7
7
  public files(scope: Scope): readonly string[] {
8
8
  try {
9
- const { base, includes } = this.input;
9
+ const { files, includes } = this.input;
10
10
 
11
- return [...base[scope], ...includes[scope] ?? []];
11
+ return [...files[scope], ...includes[scope] ?? []];
12
12
  }
13
13
  catch (e) { throw new Error(`linted.factory.Files/scope:${scope}`, { cause: e }); }
14
14
  }
@@ -7,9 +7,9 @@ export default class {
7
7
 
8
8
  public ruleset<S extends Scope>(scope: literalful<S>): Ruleset<S> {
9
9
  try {
10
- const { preset, overrides } = this.input;
10
+ const { rules, overrides } = this.input;
11
11
 
12
- return new Ruleset<S>(scope, ...preset[scope].map(args => new Rule(...args))).override(overrides[scope]);
12
+ return new Ruleset<S>(scope, ...rules[scope].map(args => new Rule(...args))).override(overrides[scope]);
13
13
  }
14
14
  catch (e) { throw new Error(`linted.factory.Rulesets/ruleset/scope:${scope}`, { cause: e }); }
15
15
  }
@@ -3,6 +3,6 @@ import type { Input } from "../../../../boundary/index.js";
3
3
  export default class {
4
4
  constructor(
5
5
  public readonly id: string,
6
- public readonly rules: Input.Rules.Preset.Entry.Object,
6
+ public readonly rules: Input.Rules.RuleBase.RuleEntry.RuleObject,
7
7
  ) {}
8
8
  }
package/src/index.ts CHANGED
@@ -1,14 +1,19 @@
1
- import scopes, { type Scope } from "./scopes/index.js";
2
- import type * as Boundary from "./boundary/index.js";
3
- import { Options, Files, Rulesets } from "./factory/index.js";
1
+ import {
2
+ Options,
3
+ Files,
4
+ Rulesets,
5
+ } from "./factory/index.js";
6
+ import scopes from "./scopes/index.js";
7
+ import type { Scope } from "./scopes/index.js";
8
+ import type { Input, Output } from "./boundary/index.js";
4
9
 
5
- export type { Boundary };
10
+ export type * as LintedCore from "./boundary/index.js";
6
11
  export default function (
7
- plugins: Boundary.Input.Plugins,
8
- parsers: Boundary.Input.Parsers,
9
- files: Boundary.Input.Files,
10
- rules: Boundary.Input.Rules,
11
- ): Boundary.Output[] {
12
+ plugins: Input.Plugins,
13
+ parsers: Input.Parsers,
14
+ files: Input.Files,
15
+ rules: Input.Rules,
16
+ ): Output[] {
12
17
  try {
13
18
  const F = new Files(files),
14
19
  R = new Rulesets(rules),
@@ -1,4 +0,0 @@
1
- import type { Scope } from "../../../../scopes/index.js";
2
- type Base = Readonly<Record<Scope, readonly string[]>>;
3
- export type { Base, Base as default };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD,KAAK,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAEvD,YAAY,EAAE,IAAI,EAAE,IAAI,IAAI,OAAO,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/base/index.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { Scope } from "../../../../scopes/index.js";
2
-
3
- type Base = Readonly<Record<Scope, readonly string[]>>;
4
-
5
- export type { Base, Base as default };