@eslinted/core 1.0.1 → 2.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/dist/boundary/boundary.d.ts +4 -0
  2. package/dist/boundary/boundary.d.ts.map +1 -0
  3. package/dist/boundary/boundary.js +2 -0
  4. package/dist/boundary/boundary.js.map +1 -0
  5. package/dist/boundary/input/files/files.d.ts +4 -6
  6. package/dist/boundary/input/files/files.d.ts.map +1 -1
  7. package/dist/boundary/input/files/list/list.d.ts +3 -0
  8. package/dist/boundary/input/files/list/list.d.ts.map +1 -0
  9. package/dist/boundary/input/files/list/list.js +2 -0
  10. package/dist/boundary/input/files/list/list.js.map +1 -0
  11. package/dist/boundary/input/input.d.ts +6 -20
  12. package/dist/boundary/input/input.d.ts.map +1 -1
  13. package/dist/boundary/input/overrides/overrides.d.ts +4 -4
  14. package/dist/boundary/input/overrides/overrides.d.ts.map +1 -1
  15. package/dist/boundary/input/parsers/parsers.d.ts +3 -6
  16. package/dist/boundary/input/parsers/parsers.d.ts.map +1 -1
  17. package/dist/boundary/input/plugins/plugins.d.ts +5 -6
  18. package/dist/boundary/input/plugins/plugins.d.ts.map +1 -1
  19. package/dist/boundary/input/rules/entry/entry.d.ts +3 -3
  20. package/dist/boundary/input/rules/entry/entry.d.ts.map +1 -1
  21. package/dist/boundary/input/rules/entry/object/object.d.ts +3 -3
  22. package/dist/boundary/input/rules/entry/object/object.d.ts.map +1 -1
  23. package/dist/boundary/input/rules/entry/object/state/level.d.ts +3 -0
  24. package/dist/boundary/input/rules/entry/object/state/level.d.ts.map +1 -0
  25. package/dist/boundary/input/rules/entry/object/state/level.js +2 -0
  26. package/dist/boundary/input/rules/entry/object/state/level.js.map +1 -0
  27. package/dist/boundary/input/rules/rules.d.ts +4 -5
  28. package/dist/boundary/input/rules/rules.d.ts.map +1 -1
  29. package/dist/boundary/output/config/config.d.ts +2 -2
  30. package/dist/boundary/output/config/config.d.ts.map +1 -1
  31. package/dist/boundary/output/output.d.ts +2 -2
  32. package/dist/dependency/dependency.d.ts +4 -0
  33. package/dist/dependency/dependency.d.ts.map +1 -0
  34. package/dist/dependency/dependency.js +2 -0
  35. package/dist/dependency/dependency.js.map +1 -0
  36. package/dist/dependency/parsers/index.d.ts +3 -0
  37. package/dist/dependency/parsers/index.d.ts.map +1 -0
  38. package/dist/dependency/parsers/index.js +2 -0
  39. package/dist/dependency/parsers/index.js.map +1 -0
  40. package/dist/dependency/plugins/index.d.ts +3 -0
  41. package/dist/dependency/plugins/index.d.ts.map +1 -0
  42. package/dist/dependency/plugins/index.js +2 -0
  43. package/dist/dependency/plugins/index.js.map +1 -0
  44. package/dist/factory/factory.d.ts +1 -1
  45. package/dist/factory/factory.js +1 -1
  46. package/dist/factory/files/Files.d.ts +2 -2
  47. package/dist/factory/files/Files.d.ts.map +1 -1
  48. package/dist/factory/options/{options.d.ts → Options.d.ts} +1 -1
  49. package/dist/factory/options/{options.d.ts.map → Options.d.ts.map} +1 -1
  50. package/dist/factory/options/{options.js → Options.js} +1 -1
  51. package/dist/factory/options/{options.js.map → Options.js.map} +1 -1
  52. package/dist/factory/options/option/Option.d.ts +4 -3
  53. package/dist/factory/options/option/Option.d.ts.map +1 -1
  54. package/dist/factory/options/option/Option.js.map +1 -1
  55. package/dist/factory/ruleset/Ruleset.d.ts +3 -4
  56. package/dist/factory/ruleset/Ruleset.d.ts.map +1 -1
  57. package/dist/factory/ruleset/Ruleset.js.map +1 -1
  58. package/dist/factory/ruleset/rule/Rule.d.ts +1 -1
  59. package/dist/factory/ruleset/rule/Rule.d.ts.map +1 -1
  60. package/dist/index.d.ts +4 -5
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +25 -19
  63. package/dist/index.js.map +1 -1
  64. package/dist/scopes/{scopes.d.ts → Scopes.d.ts} +1 -1
  65. package/dist/scopes/Scopes.d.ts.map +1 -0
  66. package/dist/scopes/{scopes.js → Scopes.js} +1 -1
  67. package/dist/scopes/Scopes.js.map +1 -0
  68. package/package.json +7 -5
  69. package/src/boundary/boundary.ts +4 -0
  70. package/src/boundary/input/files/files.ts +7 -4
  71. package/src/boundary/input/files/list/list.ts +6 -0
  72. package/src/boundary/input/input.ts +12 -21
  73. package/src/boundary/input/overrides/overrides.ts +7 -4
  74. package/src/boundary/input/parsers/parsers.ts +7 -8
  75. package/src/boundary/input/plugins/plugins.ts +7 -4
  76. package/src/boundary/input/rules/entry/entry.ts +6 -3
  77. package/src/boundary/input/rules/entry/object/object.ts +10 -3
  78. package/src/boundary/input/rules/entry/object/state/level.ts +9 -0
  79. package/src/boundary/input/rules/rules.ts +4 -6
  80. package/src/boundary/output/config/config.ts +2 -2
  81. package/src/boundary/output/output.ts +2 -2
  82. package/src/dependency/dependency.ts +4 -0
  83. package/src/dependency/parsers/index.ts +9 -0
  84. package/src/dependency/plugins/index.ts +10 -0
  85. package/src/factory/factory.ts +1 -1
  86. package/src/factory/files/Files.ts +2 -2
  87. package/src/factory/options/option/Option.ts +4 -3
  88. package/src/factory/ruleset/Ruleset.ts +2 -3
  89. package/src/factory/ruleset/rule/Rule.ts +1 -1
  90. package/src/index.ts +42 -31
  91. package/dist/boundary/input/files/array/filearray.d.ts +0 -3
  92. package/dist/boundary/input/files/array/filearray.d.ts.map +0 -1
  93. package/dist/boundary/input/files/array/filearray.js +0 -2
  94. package/dist/boundary/input/files/array/filearray.js.map +0 -1
  95. package/dist/boundary/input/rules/entry/object/state/severity.d.ts +0 -3
  96. package/dist/boundary/input/rules/entry/object/state/severity.d.ts.map +0 -1
  97. package/dist/boundary/input/rules/entry/object/state/severity.js +0 -2
  98. package/dist/boundary/input/rules/entry/object/state/severity.js.map +0 -1
  99. package/dist/scopes/scopes.d.ts.map +0 -1
  100. package/dist/scopes/scopes.js.map +0 -1
  101. package/src/boundary/input/files/array/filearray.ts +0 -3
  102. package/src/boundary/input/rules/entry/object/state/severity.ts +0 -6
  103. /package/{types/project → src}/OmitFilesRuleset.d.ts +0 -0
  104. /package/src/factory/options/{options.ts → Options.ts} +0 -0
  105. /package/src/scopes/{scopes.ts → Scopes.ts} +0 -0
@@ -0,0 +1,4 @@
1
+ import type Output from "./output/output.js";
2
+ export type * as Input from "./input/input.js";
3
+ export type { Output };
4
+ //# sourceMappingURL=boundary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,YAAY,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=boundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundary.js","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":""}
@@ -1,7 +1,5 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type FileArray from "./array/filearray.js";
3
- type Files = {
4
- readonly [S in Scope]: FileArray;
5
- };
6
- export type { Files as default };
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
+ import type * as Files from "./list/list.js";
3
+ type Files = Readonly<Record<Scope, Files.List>>;
4
+ export type { Files as default, Files, };
7
5
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/files/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAElD,KAAK,KAAK,GAAG;IAAE,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,SAAS;CAAE,CAAC;AAElD,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/files/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,KAAK,KAAK,MAAM,gBAAgB,CAAC;AAE7C,KAAK,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAEjD,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ type List = readonly string[];
2
+ export type { List as default, List, };
3
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/list/list.ts"],"names":[],"mappings":"AAAA,KAAK,IAAI,GAAG,SAAS,MAAM,EAAE,CAAC;AAE9B,YAAY,EACV,IAAI,IAAI,OAAO,EACf,IAAI,GACL,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/list/list.ts"],"names":[],"mappings":""}
@@ -1,21 +1,7 @@
1
- import type plugins from "./plugins/plugins.js";
2
- import type parsers from "./parsers/parsers.js";
3
- import type files from "./files/files.js";
4
- import type rules from "./rules/rules.js";
5
- import type { RuleEntry, RuleObject } from "./rules/rules.js";
6
- import type overrides from "./overrides/overrides.js";
7
- declare namespace Input {
8
- type Plugins = plugins;
9
- type Parsers = parsers;
10
- type Files = files;
11
- type Rules = rules;
12
- namespace Rules {
13
- type Entry = RuleEntry;
14
- namespace Entry {
15
- type Object = RuleObject;
16
- }
17
- }
18
- type Overrides = overrides;
19
- }
20
- export type { Input as default };
1
+ import type Plugins from "./plugins/plugins.js";
2
+ import type Parsers from "./parsers/parsers.js";
3
+ import type Files from "./files/files.js";
4
+ import type Rules from "./rules/rules.js";
5
+ import type Overrides from "./overrides/overrides.js";
6
+ export type { Plugins, Parsers, Files, Rules, Overrides, };
21
7
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAEtD,kBAAU,KAAK,CAAC;IACd,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,KAAK,GAAG,KAAK,CAAC;IAC1B,KAAY,KAAK,GAAG,KAAK,CAAC;IAC1B,UAAiB,KAAK,CAAC;QACrB,KAAY,KAAK,GAAG,SAAS,CAAC;QAC9B,UAAiB,KAAK,CAAC;YACrB,KAAY,MAAM,GAAG,UAAU,CAAC;SACjC;KACF;IACD,KAAY,SAAS,GAAG,SAAS,CAAC;CACnC;AAED,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AAEtD,YAAY,EACV,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,GACV,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type Input from "../input.js";
3
- type Overrides = Particord<Scope, Input.Rules.Entry.Object>;
4
- export type { Overrides as default };
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
+ import type { Rules } from "../input.js";
3
+ type Overrides = Readonly<Particord<Scope, Rules.Entry.Object>>;
4
+ export type { Overrides as default, Overrides, };
5
5
  //# sourceMappingURL=overrides.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/overrides/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAErC,KAAK,SAAS,GAAG,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAE5D,YAAY,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/overrides/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhE,YAAY,EACV,SAAS,IAAI,OAAO,EACpB,SAAS,GACV,CAAC"}
@@ -1,7 +1,4 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type { Options } from "../../../factory/factory.js";
3
- type Parsers = {
4
- readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
5
- };
6
- export type { Parsers as default };
1
+ import type { Parsers as Dependencies } from "../../../dependency/dependency.js";
2
+ type Parsers = Readonly<Record<Dependencies, unknown>>;
3
+ export type { Parsers as default, Parsers, Dependencies, };
7
4
  //# 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,2BAA2B,CAAC;AACvD,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"}
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjF,KAAK,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;AAEvD,YAAY,EACV,OAAO,IAAI,OAAO,EAClB,OAAO,EACP,YAAY,GACb,CAAC"}
@@ -1,7 +1,6 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type { Options } from "../../../factory/factory.js";
3
- type Plugins = {
4
- readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
5
- };
6
- export type { Plugins as default };
1
+ import type { Plugins as Dependencies } from "../../../dependency/dependency.js";
2
+ type Plugins = Readonly<Record<Dependencies, {
3
+ configs: unknown;
4
+ }>>;
5
+ export type { Plugins as default, Plugins, Dependencies, };
7
6
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;IAAE,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CAAE,CAAC;AAErF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjF,KAAK,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC,CAAC;AAEpE,YAAY,EACV,OAAO,IAAI,OAAO,EAClB,OAAO,EACP,YAAY,GACb,CAAC"}
@@ -1,4 +1,4 @@
1
- import type RuleObject from "./object/object.js";
2
- type RuleEntry = readonly [string, RuleObject];
3
- export type { RuleEntry as default };
1
+ import type * as Entry from "./object/object.js";
2
+ type Entry = readonly [string, Entry.Object];
3
+ export type { Entry as default, Entry, };
4
4
  //# sourceMappingURL=entry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/entry/entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,KAAK,SAAS,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE/C,YAAY,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/entry/entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,KAAK,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7C,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
@@ -1,4 +1,4 @@
1
- import type Severity from "./state/severity.js";
2
- type RuleObject = Record<string, Severity | [Severity, ...unknown[]]>;
3
- export type { RuleObject as default };
1
+ import type * as Object from "./state/level.js";
2
+ type Object = Readonly<Record<string, Object.Level | readonly [Object.Level, ...unknown[]]>>;
3
+ export type { Object as default, Object, };
4
4
  //# sourceMappingURL=object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/entry/object/object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,CAAC,QAAQ,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;AAEtE,YAAY,EAAE,UAAU,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/entry/object/object.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,EACV,MAAM,IAAI,OAAO,EACjB,MAAM,GACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ type Level = "error" | "warn" | "off";
2
+ export type { Level as default, Level, };
3
+ //# sourceMappingURL=level.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"level.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/level.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GACN,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=level.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"level.js","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/level.ts"],"names":[],"mappings":""}
@@ -1,6 +1,5 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type RuleEntry from "./entry/entry.js";
3
- import type RuleObject from "./entry/object/object.js";
4
- type Rules = Record<Scope, readonly RuleEntry[]>;
5
- export type { Rules as default, RuleEntry, RuleObject, };
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
+ import type * as Rules from "./entry/entry.js";
3
+ type Rules = Readonly<Record<Scope, readonly Rules.Entry[]>>;
4
+ export type { Rules as default, Rules, };
6
5
  //# sourceMappingURL=rules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/rules/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,0BAA0B,CAAC;AAEvD,KAAK,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC,CAAC;AAEjD,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,SAAS,EACT,UAAU,GACX,CAAC"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/rules/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAE/C,KAAK,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAE7D,YAAY,EACV,KAAK,IAAI,OAAO,EAChB,KAAK,GACN,CAAC"}
@@ -1,7 +1,7 @@
1
- import type Input from "../../input/input.js";
1
+ import type { Rules } from "../../input/input.js";
2
2
  export default interface Config {
3
3
  name: `linted/scope:${string}/rule:${string}+${string}`;
4
- rules: Input.Rules.Entry.Object;
4
+ rules: Rules.Entry.Object;
5
5
  files: readonly string[];
6
6
  linterOptions: {
7
7
  noInlineConfig: true;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,OAAO,WAAW,MAAM;IAC7B,IAAI,EAAE,gBAAgB,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACxD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IAChC,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"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,OAAO,WAAW,MAAM;IAC7B,IAAI,EAAE,gBAAgB,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACxD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IAC1B,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"}
@@ -1,3 +1,3 @@
1
- import type Output from "./config/config.js";
2
- export type { Output as default };
1
+ import type Config from "./config/config.js";
2
+ export type { Config as default };
3
3
  //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1,4 @@
1
+ import type Plugins from "./plugins/index.js";
2
+ import type Parsers from "./parsers/index.js";
3
+ export type { Plugins, Parsers };
4
+ //# sourceMappingURL=dependency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependency.d.ts","sourceRoot":"","sources":["../../src/dependency/dependency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dependency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependency.js","sourceRoot":"","sources":["../../src/dependency/dependency.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ type Parsers = "ts" | "svelte" | "html" | "jsonc" | "yml";
2
+ export type { Parsers as default };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/parsers/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GACR,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACR;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dependency/parsers/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ type Plugins = "@stylistic" | "@typescript-eslint" | "svelte" | "@html-eslint" | "jsonc" | "yml";
2
+ export type { Plugins as default };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dependency/plugins/index.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GACR,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,cAAc,GACd,OAAO,GACP,KAAK,CACR;AAED,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dependency/plugins/index.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import Ruleset, { Rule } from "./ruleset/Ruleset.js";
2
2
  import Files from "./files/Files.js";
3
- import Options from "./options/options.js";
3
+ import Options from "./options/Options.js";
4
4
  export { Options, Files, Ruleset, Rule, };
5
5
  //# sourceMappingURL=factory.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import Ruleset, { Rule } from "./ruleset/Ruleset.js";
2
2
  import Files from "./files/Files.js";
3
- import Options from "./options/options.js";
3
+ import Options from "./options/Options.js";
4
4
  export { Options, Files, Ruleset, Rule, };
5
5
  //# sourceMappingURL=factory.js.map
@@ -1,5 +1,5 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type Input from "../../boundary/input/input.js";
1
+ import type { Scope } from "../../scopes/Scopes.js";
2
+ import type { Input } from "../../boundary/boundary.js";
3
3
  export default class Files {
4
4
  private readonly base;
5
5
  private readonly includes;
@@ -1 +1 @@
1
- {"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,+BAA+B,CAAC;AAEvD,MAAM,CAAC,OAAO,OAAO,KAAK;IAEtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;IAG1C,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE;CAc9C"}
1
+ {"version":3,"file":"Files.d.ts","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,CAAC,OAAO,OAAO,KAAK;IAEtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;IAG1C,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,MAAM,EAAE;CAc9C"}
@@ -15,4 +15,4 @@ declare const _default: {
15
15
  readonly yml: typeof YmlOption;
16
16
  };
17
17
  export default _default;
18
- //# sourceMappingURL=options.d.ts.map
18
+ //# sourceMappingURL=Options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/options.ts"],"names":[],"mappings":"AAAA,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,wBAQW"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,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,wBAQW"}
@@ -14,4 +14,4 @@ export default {
14
14
  jsonc: JsoncOption,
15
15
  yml: YmlOption,
16
16
  };
17
- //# sourceMappingURL=options.js.map
17
+ //# sourceMappingURL=Options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/factory/options/options.ts"],"names":[],"mappings":"AAAA,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,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;CACN,CAAC"}
1
+ {"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,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,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;CACN,CAAC"}
@@ -1,7 +1,8 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
2
  import type { Ruleset } from "../../factory.js";
3
- import type Output from "../../../boundary/output/output.js";
4
- export default abstract class Option<S extends Scope, PluginId extends string, IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, GlobalTypes extends string = never, Processor extends object = never> {
3
+ import type { Plugins } from "../../../dependency/dependency.js";
4
+ import type { Output } from "../../../boundary/boundary.js";
5
+ export default abstract class Option<S extends Scope, PluginId extends Plugins, IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, GlobalTypes extends string = never, Processor extends object = never> {
5
6
  readonly files: readonly string[];
6
7
  readonly ruleset: Ruleset<S>;
7
8
  readonly plugins: IOPlugins<PluginId>;
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,oCAAoC,CAAC;AAE7D,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,OAAO,GAAG,IAAI,EAC7B,aAAa,SAAS,MAAM,GAAG,OAAO,GAAG,KAAK,EAC9C,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,SAAS,SAAS,MAAM,GAAG,KAAK;aAed,KAAK,EAAE,SAAS,MAAM,EAAE;aACxB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;aACnB,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC;aAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,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D,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,KAAK,UAAU,EACnD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CAOF"}
1
+ {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,OAAgB,MAAM;IAsBhB;IACA;IACA;IACA;IAhBD,aAAa,GAAG;QAC/B,cAAc,EAAE,IAAI;QACpB,6BAA6B,EAAE,OAAO;KAC9B,CAAC;IASX,YACkB,KAAwB,EACxB,OAAmB,EACnB,OAA4B,EAC5B,MAAmC;QAHnC,UAAK,GAAL,KAAK,CAAmB;QACxB,YAAO,GAAP,OAAO,CAAY;QACnB,YAAO,GAAP,OAAO,CAAqB;QAC5B,WAAM,GAAN,MAAM,CAA6B;IAClD,CAAC;IAEJ,IAAW,OAAO;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC;YAET,IAAI,OAAO,CAAC,EAAE,KAAK,KAAK;gBACtB,MAAM,IAAI,SAAS,CACjB,mCAAmC,EACnC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,CAClD,CAAC;iBACC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;gBACvB,OAAO,EAAE,CAAC;iBACP,CAAC;gBACJ,MAAM,QAAQ,GAAG,gBAAgB,KAAK,SAAS,OAAO,CAAC,EAAE,EAAW,CAAC;gBAErE,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CACxB,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE;oBAClB,MAAM,IAAI,GAAG,GAAG,QAAQ,IAAI,MAAM,EAAW,CAAC;oBAE9C,OAAO;wBACL,IAAI;wBACJ,KAAK;wBACL,KAAK;wBACL,GAAG,MAAM;qBACV,CAAC;gBACJ,CAAC,CACF,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,KAAK,WAAW,EACpD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,aAAa;gBACb,eAAe;gBACf,OAAO;gBACP,GAAG,SAAS;aAOb,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,CAAC,KAAK,UAAU,EACnD,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CAOF"}
@@ -1,5 +1,4 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type Input from "../../boundary/input/input.js";
1
+ import type { Scope } from "../../scopes/Scopes.js";
3
2
  import Rule from "./rule/Rule.js";
4
3
  export { Rule };
5
4
  export default class Ruleset<S extends Scope> {
@@ -8,7 +7,7 @@ export default class Ruleset<S extends Scope> {
8
7
  overrides: Null<Rule>;
9
8
  constructor(scope: literalful<S>, ...rules: readonly Rule[]);
10
9
  get id(): literalful<S>;
11
- get records(): (readonly [string, import("../../boundary/input/rules/rules.js").RuleObject])[];
12
- override(overrides: undefined | Input.Rules.Entry.Object): this;
10
+ get records(): (readonly [string, Readonly<Record<string, import("../../boundary/input/rules/entry/object/state/level.js").default | readonly [import("../../boundary/input/rules/entry/object/state/level.js").default, ...unknown[]]>>])[];
11
+ override(overrides: undefined | Rule["rules"]): this;
13
12
  }
14
13
  //# sourceMappingURL=Ruleset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,+BAA+B,CAAC;AACvD,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAKxC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAGjB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EACrC,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAa3B,IAAW,EAAE,kBAYZ;IAED,IAAW,OAAO,oFAejB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM;CAiBhE"}
1
+ {"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAKxC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAGjB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EACrC,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAa3B,IAAW,EAAE,kBAYZ;IAED,IAAW,OAAO,kOAej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ACb,4BAA4B,EAC5B,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAW,OAAO;QAChB,IAAI,CAAC;YACH,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;YAEpC,OAAO;gBACL,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,CAAU,CAAC;gBACzD,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,KAAK,CAAU,CAAU;aACjF,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,iCAAiC,EACjC,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;IAEM,QAAQ,CAAC,SAAoC;QAClD,IAAI,CAAC;YACH,IAAI,OAAO,SAAS,KAAK,WAAW;gBAClC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,CACvB,UAAU,EACV,SAAS,CACV,CAAC;YAEJ,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,kCAAkC,EAClC,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- import type Input from "../../../boundary/input/input.js";
1
+ import type { Input } from "../../../boundary/boundary.js";
2
2
  export default class {
3
3
  readonly id: string;
4
4
  readonly rules: Input.Rules.Entry.Object;
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAE1D,MAAM,CAAC,OAAO;aAEM,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM;gBAD/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM;CAElD"}
1
+ {"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/Rule.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,KAAK,CAAC,MAAM;gBAD/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM;CAElD"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { type Scope } from "./scopes/scopes.js";
2
- import type Output from "./boundary/output/output.js";
3
- import type Input from "./boundary/input/input.js";
4
- export type { Scope, Input, Output, };
5
- export default function (plugins: Input.Plugins, parsers: Input.Parsers, base: Input.Files, includes: Partial<Input.Files>, rules: Input.Rules, overrides: Input.Overrides): Output[];
1
+ import { type Scope } from "./scopes/Scopes.js";
2
+ import type * as Boundary from "./boundary/boundary.js";
3
+ export type { Scope, Boundary, };
4
+ export default function (plugins: Boundary.Input.Plugins, parsers: Boundary.Input.Parsers, base: Boundary.Input.Files, includes: Partial<Boundary.Input.Files>, rules: Boundary.Input.Rules, overrides: Boundary.Input.Overrides): Boundary.Output[];
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAQnD,YAAY,EACV,KAAK,EACL,KAAK,EACL,MAAM,GACP,CAAC;AACF,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAC9B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,SAAS,EAAE,KAAK,CAAC,SAAS,GACzB,MAAM,EAAE,CAwHV"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AAQxD,YAAY,EACV,KAAK,EACL,QAAQ,GACT,CAAC;AACF,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAC3B,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,SAAS,GAClC,QAAQ,CAAC,MAAM,EAAE,CAqInB"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import scopes, {} from "./scopes/scopes.js";
1
+ import scopes, {} from "./scopes/Scopes.js";
2
2
  import { Options, Files, Ruleset, Rule, } from "./factory/factory.js";
3
3
  export default function (plugins, parsers, base, includes, rules, overrides) {
4
4
  try {
@@ -10,41 +10,47 @@ export default function (plugins, parsers, base, includes, rules, overrides) {
10
10
  json: new Ruleset("json", ...rules.json.map(args => new Rule(...args))),
11
11
  jsonc: new Ruleset("jsonc", ...rules.jsonc.map(args => new Rule(...args))),
12
12
  yml: new Ruleset("yml", ...rules.yml.map(args => new Rule(...args))),
13
- }, imports = {
14
- js: [plugins.js, []],
15
- ts: [plugins.ts, [parsers.ts]],
16
- svelte: [
17
- plugins.svelte,
18
- [parsers.svelte, parsers.ts],
19
- ],
20
- html: [plugins.html, [parsers.html]],
21
- json: [plugins.json, [parsers.json]],
22
- jsonc: [plugins.jsonc, [parsers.jsonc]],
23
- yml: [plugins.yml, [parsers.yml]],
13
+ }, scopedParsers = {
14
+ js: [],
15
+ ts: [parsers.ts],
16
+ svelte: [parsers.svelte, parsers.ts],
17
+ html: [parsers.html],
18
+ json: [parsers.jsonc],
19
+ jsonc: [parsers.jsonc],
20
+ yml: [parsers.yml],
24
21
  };
25
22
  for (const scope of scopes)
26
23
  rulesets[scope].override(overrides[scope]);
27
24
  const options = {
28
25
  js: new Options
29
- .js(files.files("js"), rulesets.js, ...imports.js)
26
+ .js(files.files("js"), rulesets.js, {
27
+ "@stylistic": plugins["@stylistic"],
28
+ }, scopedParsers.js)
30
29
  .configs,
31
30
  ts: new Options
32
- .ts(files.files("ts"), rulesets.ts, ...imports.ts)
31
+ .ts(files.files("ts"), rulesets.ts, {
32
+ "@stylistic": plugins["@stylistic"],
33
+ "@typescript-eslint": plugins["@typescript-eslint"],
34
+ }, scopedParsers.ts)
33
35
  .configs,
34
36
  svelte: new Options
35
- .svelte(files.files("svelte"), rulesets.svelte, ...imports.svelte)
37
+ .svelte(files.files("svelte"), rulesets.svelte, {
38
+ "@stylistic": plugins["@stylistic"],
39
+ "@typescript-eslint": plugins["@typescript-eslint"],
40
+ svelte: plugins.svelte,
41
+ }, scopedParsers.svelte)
36
42
  .configs,
37
43
  html: new Options
38
- .html(files.files("html"), rulesets.html, ...imports.html)
44
+ .html(files.files("html"), rulesets.html, { "@html-eslint": plugins["@html-eslint"] }, scopedParsers.html)
39
45
  .configs,
40
46
  json: new Options
41
- .json(files.files("json"), rulesets.json, ...imports.json)
47
+ .json(files.files("json"), rulesets.json, { jsonc: plugins.jsonc }, scopedParsers.json)
42
48
  .configs,
43
49
  jsonc: new Options
44
- .jsonc(files.files("jsonc"), rulesets.jsonc, ...imports.jsonc)
50
+ .jsonc(files.files("jsonc"), rulesets.jsonc, { jsonc: plugins.jsonc }, scopedParsers.jsonc)
45
51
  .configs,
46
52
  yml: new Options
47
- .yml(files.files("yml"), rulesets.yml, ...imports.yml)
53
+ .yml(files.files("yml"), rulesets.yml, { yml: plugins.yml }, scopedParsers.yml)
48
54
  .configs,
49
55
  };
50
56
  return scopes
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,oBAAoB,CAAC;AAGxD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,sBAAsB,CAAC;AAO9B,MAAM,CAAC,OAAO,WACZ,OAAsB,EACtB,OAAsB,EACtB,IAAiB,EACjB,QAA8B,EAC9B,KAAkB,EAClB,SAA0B;IAE1B,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,IAAI,KAAK,CACrB,IAAI,EACJ,QAAQ,CACT,EACD,QAAQ,GAAG;YACT,EAAE,EAAE,IAAI,OAAO,CACb,IAAI,EACJ,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAC3C;YACD,EAAE,EAAE,IAAI,OAAO,CACb,IAAI,EACJ,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAC3C;YACD,MAAM,EAAE,IAAI,OAAO,CACjB,QAAQ,EACR,GAAG,KAAK,CAAC,MAAM,C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EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EACxB,aAAa,CAAC,KAAK,CACpB;iBACA,OAAO;YACV,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAClB,QAAQ,CAAC,GAAG,EACZ,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,aAAa,CAAC,GAAG,CAClB;iBACA,OAAO;SACX,CAAC;QAEF,OAAO,MAAM;aACV,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aAC5B,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,aAAa,EACb,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
1
  declare const scopes: readonly ["js", "ts", "svelte", "html", "json", "jsonc", "yml"];
2
2
  export default scopes;
3
3
  export type Scope = (typeof scopes)[number];
4
- //# sourceMappingURL=scopes.d.ts.map
4
+ //# sourceMappingURL=Scopes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scopes.d.ts","sourceRoot":"","sources":["../../src/scopes/Scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -8,4 +8,4 @@ const scopes = [
8
8
  "yml",
9
9
  ];
10
10
  export default scopes;
11
- //# sourceMappingURL=scopes.js.map
11
+ //# sourceMappingURL=Scopes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scopes.js","sourceRoot":"","sources":["../../src/scopes/Scopes.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"}