@eslinted/core 1.0.0-rc.1 → 1.0.0-rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/dist/boundary/input/files/array/filearray.d.ts +3 -0
  2. package/dist/boundary/input/files/array/filearray.d.ts.map +1 -0
  3. package/dist/boundary/input/files/array/filearray.js +2 -0
  4. package/dist/boundary/input/files/array/filearray.js.map +1 -0
  5. package/dist/boundary/input/files/files.d.ts +7 -0
  6. package/dist/boundary/input/files/files.d.ts.map +1 -0
  7. package/dist/boundary/input/files/files.js +2 -0
  8. package/dist/boundary/input/files/files.js.map +1 -0
  9. package/dist/boundary/input/input.d.ts +21 -0
  10. package/dist/boundary/input/input.d.ts.map +1 -0
  11. package/dist/boundary/input/input.js +2 -0
  12. package/dist/boundary/input/input.js.map +1 -0
  13. package/dist/boundary/input/overrides/overrides.d.ts +5 -0
  14. package/dist/boundary/input/overrides/overrides.d.ts.map +1 -0
  15. package/dist/boundary/input/overrides/overrides.js +2 -0
  16. package/dist/boundary/input/overrides/overrides.js.map +1 -0
  17. package/dist/boundary/input/parsers/parsers.d.ts +7 -0
  18. package/dist/boundary/input/parsers/parsers.d.ts.map +1 -0
  19. package/dist/boundary/input/parsers/parsers.js +2 -0
  20. package/dist/boundary/input/parsers/parsers.js.map +1 -0
  21. package/dist/boundary/input/plugins/plugins.d.ts +7 -0
  22. package/dist/boundary/input/plugins/plugins.d.ts.map +1 -0
  23. package/dist/boundary/input/plugins/plugins.js +2 -0
  24. package/dist/boundary/input/plugins/plugins.js.map +1 -0
  25. package/dist/boundary/input/rules/entry/entry.d.ts +4 -0
  26. package/dist/boundary/input/rules/entry/entry.d.ts.map +1 -0
  27. package/dist/boundary/input/rules/entry/entry.js +2 -0
  28. package/dist/boundary/input/rules/entry/entry.js.map +1 -0
  29. package/dist/boundary/input/rules/entry/object/object.d.ts +4 -0
  30. package/dist/boundary/input/rules/entry/object/object.d.ts.map +1 -0
  31. package/dist/boundary/input/rules/entry/object/object.js +2 -0
  32. package/dist/boundary/input/rules/entry/object/object.js.map +1 -0
  33. package/dist/boundary/input/rules/entry/object/state/severity.d.ts +3 -0
  34. package/dist/boundary/input/rules/entry/object/state/severity.d.ts.map +1 -0
  35. package/dist/boundary/input/rules/entry/object/state/severity.js +2 -0
  36. package/dist/boundary/input/rules/entry/object/state/severity.js.map +1 -0
  37. package/dist/boundary/input/rules/rules.d.ts +6 -0
  38. package/dist/boundary/input/rules/rules.d.ts.map +1 -0
  39. package/dist/boundary/input/rules/rules.js +2 -0
  40. package/dist/boundary/input/rules/rules.js.map +1 -0
  41. package/dist/boundary/output/config/config.d.ts +20 -0
  42. package/dist/boundary/output/config/config.d.ts.map +1 -0
  43. package/dist/boundary/output/config/config.js +2 -0
  44. package/dist/boundary/output/config/config.js.map +1 -0
  45. package/dist/boundary/output/output.d.ts +3 -0
  46. package/dist/boundary/output/output.d.ts.map +1 -0
  47. package/dist/boundary/output/output.js +2 -0
  48. package/dist/boundary/output/output.js.map +1 -0
  49. package/dist/factory/files/Files.d.ts +2 -1
  50. package/dist/factory/files/Files.d.ts.map +1 -1
  51. package/dist/factory/files/Files.js.map +1 -1
  52. package/dist/factory/options/option/Option.d.ts +1 -1
  53. package/dist/factory/options/option/Option.d.ts.map +1 -1
  54. package/dist/factory/options/option/Option.js +1 -1
  55. package/dist/factory/options/option/Option.js.map +1 -1
  56. package/dist/factory/ruleset/Ruleset.d.ts +3 -2
  57. package/dist/factory/ruleset/Ruleset.d.ts.map +1 -1
  58. package/dist/factory/ruleset/Ruleset.js.map +1 -1
  59. package/dist/factory/ruleset/rule/Rule.d.ts +3 -2
  60. package/dist/factory/ruleset/rule/Rule.d.ts.map +1 -1
  61. package/dist/factory/ruleset/rule/Rule.js.map +1 -1
  62. package/dist/index.d.ts +3 -3
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js.map +1 -1
  65. package/dist/scopes/scopes.d.ts +1 -1
  66. package/dist/scopes/scopes.d.ts.map +1 -1
  67. package/package.json +1 -1
  68. package/src/boundary/input/files/array/filearray.ts +3 -0
  69. package/src/boundary/input/files/files.ts +6 -0
  70. package/src/boundary/input/input.ts +22 -0
  71. package/src/boundary/input/overrides/overrides.ts +6 -0
  72. package/src/boundary/input/{parsers.ts → parsers/parsers.ts} +2 -2
  73. package/src/boundary/input/plugins/plugins.ts +6 -0
  74. package/src/boundary/input/rules/entry/entry.ts +5 -0
  75. package/src/boundary/input/rules/entry/object/object.ts +5 -0
  76. package/src/boundary/input/rules/entry/object/state/severity.ts +6 -0
  77. package/src/boundary/input/rules/rules.ts +11 -0
  78. package/src/boundary/output/{IConfig.ts → config/config.ts} +5 -3
  79. package/src/boundary/output/output.ts +3 -0
  80. package/src/factory/files/Files.ts +3 -2
  81. package/src/factory/options/option/Option.ts +2 -2
  82. package/src/factory/ruleset/Ruleset.ts +2 -1
  83. package/src/factory/ruleset/rule/Rule.ts +3 -1
  84. package/src/index.ts +6 -6
  85. package/src/scopes/scopes.ts +1 -1
  86. package/src/boundary/input/plugins.ts +0 -8
  87. package/src/boundary/input/ruleRecord.ts +0 -6
  88. package/src/boundary/input.ts +0 -11
  89. package/src/boundary/output/interface/rules/IRule.d.ts +0 -1
  90. package/src/boundary/output/interface/rules/state/RuleSeverity.d.ts +0 -5
  91. package/src/boundary/output.ts +0 -3
  92. /package/src/boundary/output/{interface → config}/option/IOption.d.ts +0 -0
  93. /package/src/boundary/output/{interface → config}/option/language/IOLanguage.d.ts +0 -0
  94. /package/src/boundary/output/{interface → config}/option/language/ecma/IOLanguageEcma.d.ts +0 -0
  95. /package/src/boundary/output/{interface → config}/option/language/globals/IOLanguageGlobals.d.ts +0 -0
  96. /package/src/boundary/output/{interface → config}/option/language/source/IOLanguageSource.d.ts +0 -0
  97. /package/src/boundary/output/{interface → config}/option/linter/IOLinter.d.ts +0 -0
  98. /package/src/boundary/output/{interface → config}/option/plugins/IOPlugins.d.ts +0 -0
  99. /package/src/boundary/output/{interface → config}/option/processor/IOProcessor.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ type FileArray = readonly string[];
2
+ export type { FileArray as default };
3
+ //# sourceMappingURL=filearray.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filearray.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/array/filearray.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,SAAS,MAAM,EAAE,CAAC;AAEnC,YAAY,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=filearray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filearray.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/array/filearray.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
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 };
7
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../../src/boundary/input/files/files.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
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 };
21
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":""}
@@ -0,0 +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 };
5
+ //# sourceMappingURL=overrides.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=overrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../../../src/boundary/input/overrides/overrides.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
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 };
7
+ //# sourceMappingURL=parsers.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parsers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
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 };
7
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type RuleObject from "./object/object.js";
2
+ type RuleEntry = readonly [string, RuleObject];
3
+ export type { RuleEntry as default };
4
+ //# sourceMappingURL=entry.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../src/boundary/input/rules/entry/entry.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type Severity from "./state/severity.js";
2
+ type RuleObject = Record<string, Severity | [Severity, ...unknown[]]>;
3
+ export type { RuleObject as default };
4
+ //# sourceMappingURL=object.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../../src/boundary/input/rules/entry/object/object.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ type Severity = "error" | "warn" | "off";
2
+ export type { Severity as default };
3
+ //# sourceMappingURL=severity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/severity.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GACT,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=severity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"severity.js","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/severity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
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, };
6
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/boundary/input/rules/rules.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type Input from "../../input/input.js";
2
+ export default interface Config {
3
+ name: `linted/scope:${string}/rule:${string}+${string}`;
4
+ rules: Input.Rules.Entry.Object;
5
+ files: readonly string[];
6
+ linterOptions: {
7
+ noInlineConfig: true;
8
+ reportUnusedDisableDirectives: "error";
9
+ };
10
+ languageOptions: {
11
+ sourceType?: "module" | "script";
12
+ ecmaVersion?: "latest";
13
+ globals?: Record<string, true>;
14
+ parser?: unknown;
15
+ parserOptions?: Record<string, unknown>;
16
+ };
17
+ plugins: Record<string, Record<"configs", unknown>>;
18
+ processor?: string;
19
+ }
20
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/boundary/output/config/config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type Output from "./config/config.js";
2
+ export type { Output as default };
3
+ //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":""}
@@ -1,8 +1,9 @@
1
1
  import type { Scope } from "../../scopes/scopes.js";
2
+ import type Input from "../../boundary/input/input.js";
2
3
  export default class Files {
3
4
  private readonly base;
4
5
  private readonly includes;
5
- constructor(base: Record<Scope, string[]>, includes: Particord<Scope, string[]>);
6
+ constructor(base: Input.Files, includes: Partial<Input.Files>);
6
7
  files(scope: Scope): readonly string[];
7
8
  }
8
9
  //# sourceMappingURL=Files.d.ts.map
@@ -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;AAEpD,MAAM,CAAC,OAAO,OAAO,KAAK;IAEtB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC7B,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IAGhD,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,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 +1 @@
1
- {"version":3,"file":"Files.js","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,KAAK;IAEL;IACA;IAFnB,YACmB,IAA6B,EAC7B,QAAoC;QADpC,SAAI,GAAJ,IAAI,CAAyB;QAC7B,aAAQ,GAAR,QAAQ,CAA4B;IACpD,CAAC;IAEG,KAAK,CAAC,KAAY;QACvB,IAAI,CAAC;YACH,OAAO;gBACL,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;gBACnB,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;aAC9B,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,8BAA8B,KAAK,EAAE,EACrC,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"Files.js","sourceRoot":"","sources":["../../../src/factory/files/Files.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,KAAK;IAEL;IACA;IAFnB,YACmB,IAAiB,EACjB,QAA8B;QAD9B,SAAI,GAAJ,IAAI,CAAa;QACjB,aAAQ,GAAR,QAAQ,CAAsB;IAC9C,CAAC;IAEG,KAAK,CAAC,KAAY;QACvB,IAAI,CAAC;YACH,OAAO;gBACL,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;gBACnB,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE;aAC9B,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,8BAA8B,KAAK,EAAE,EACrC,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
1
  import type { Scope } from "../../../scopes/scopes.js";
2
2
  import type { Ruleset } from "../../factory.js";
3
- import type Output from "../../../boundary/output.js";
3
+ import type Output from "../../../boundary/output/output.js";
4
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> {
5
5
  readonly files: readonly string[];
6
6
  readonly ruleset: Ruleset<S>;
@@ -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,6BAA6B,CAAC;AAEtD,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;a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M,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,CAAC;IAhBrD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAGnB;IAEX,kBAAyB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9C,kBAAyB,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAClE,MAAM,GACN,SAAS,CAAC,SAAS,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,GAChE,SAAS,CAAC,SAAS,CAAC,GACpB,MAAM,CAAC;gBAGK,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAGrD,IAAW,OAAO,IAAI,MAAM,EAAE,CAuC7B;IAED,OAAO,KAAK,MAAM,GA4BjB;IAED,SAAS,CAAC,QAAQ,KAAK,eAAe,IAAI,UAAU,CAClD,MAAM,EACN,aAAa,EACb,WAAW,CACZ,CAAC;CACH"}
@@ -21,7 +21,7 @@ export default class Option {
21
21
  else if (files.length < 1)
22
22
  return [];
23
23
  else {
24
- const baseName = `scope:${scope}/rule:${ruleset.id}`;
24
+ const baseName = `linted/scope:${scope}/rule:${ruleset.id}`;
25
25
  return ruleset.records.map(([ruleId, rules]) => {
26
26
  const name = `${baseName}+${ruleId}`;
27
27
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,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AY,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
+ {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAIA,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,4 +1,5 @@
1
1
  import type { Scope } from "../../scopes/scopes.js";
2
+ import type Input from "../../boundary/input/input.js";
2
3
  import Rule from "./rule/Rule.js";
3
4
  export { Rule };
4
5
  export default class Ruleset<S extends Scope> {
@@ -7,7 +8,7 @@ export default class Ruleset<S extends Scope> {
7
8
  overrides: Null<Rule>;
8
9
  constructor(scope: literalful<S>, ...rules: readonly Rule[]);
9
10
  get id(): literalful<S>;
10
- get records(): (readonly [string, IRule])[];
11
- override(overrides: undefined | IRule): this;
11
+ get records(): (readonly [string, import("../../boundary/input/rules/rules.js").RuleObject])[];
12
+ override(overrides: undefined | Input.Rules.Entry.Object): this;
12
13
  }
13
14
  //# 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,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,iCAejB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,KAAK;CAiB7C"}
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,IAA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AC;QACD,OAAO,CAAC,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CACb,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,SAA+C;QAC7D,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,6 +1,7 @@
1
+ import type Input from "../../../boundary/input/input.js";
1
2
  export default class {
2
3
  readonly id: string;
3
- readonly rules: IRule;
4
- constructor(id: string, rules: IRule);
4
+ readonly rules: Input.Rules.Entry.Object;
5
+ constructor(id: string, rules: Input.Rules.Entry.Object);
5
6
  }
6
7
  //# sourceMappingURL=Rule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO;aAEM,EAAE,EAAE,MAAM;aACV,KAAK,EAAE,KAAK;gBADZ,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK;CAE/B"}
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 +1 @@
1
- {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO;IAEM;IACA;IAFlB,YACkB,EAAU,EACV,KAAY;QADZ,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAO;IAC3B,CAAC;CACL"}
1
+ {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../../src/factory/ruleset/rule/Rule.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO;IAEM;IACA;IAFlB,YACkB,EAAU,EACV,KAA+B;QAD/B,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAA0B;IAC9C,CAAC;CACL"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type Scope } from "./scopes/scopes.js";
2
- import type Output from "./boundary/output.js";
3
- import type Input from "./boundary/input.js";
2
+ import type Output from "./boundary/output/output.js";
3
+ import type Input from "./boundary/input/input.js";
4
4
  export type { Scope, Input, Output, };
5
- export default function (plugins: Input.Plugins, parsers: Input.Parsers, base: Record<Scope, string[]>, includes: Particord<Scope, string[]>, rules: Record<Scope, readonly Input.RuleRecord[]>, overrides: Particord<Scope, IRule>): 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[];
6
6
  //# 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,sBAAsB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAQ7C,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,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC7B,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EACpC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,KAAK,CAAC,UAAU,EAAE,CAAC,EACjD,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,GACjC,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,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,OAA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AAC;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
- export type Scope = typeof scopes[number];
3
+ export type Scope = (typeof scopes)[number];
4
4
  //# sourceMappingURL=scopes.d.ts.map
@@ -1 +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,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslinted/core",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "Core ESLint flat config factory npm package `linted`.",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -0,0 +1,3 @@
1
+ type FileArray = readonly string[];
2
+
3
+ export type { FileArray as default };
@@ -0,0 +1,6 @@
1
+ import type { Scope } from "../../../scopes/scopes.js";
2
+ import type FileArray from "./array/filearray.js";
3
+
4
+ type Files = { readonly [S in Scope]: FileArray };
5
+
6
+ export type { Files as default };
@@ -0,0 +1,22 @@
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
+
8
+ namespace Input {
9
+ export type Plugins = plugins;
10
+ export type Parsers = parsers;
11
+ export type Files = files;
12
+ export type Rules = rules;
13
+ export namespace Rules {
14
+ export type Entry = RuleEntry;
15
+ export namespace Entry {
16
+ export type Object = RuleObject;
17
+ }
18
+ }
19
+ export type Overrides = overrides;
20
+ }
21
+
22
+ export type { Input as default };
@@ -0,0 +1,6 @@
1
+ import type { Scope } from "../../../scopes/scopes.js";
2
+ import type Input from "../input.js";
3
+
4
+ type Overrides = Particord<Scope, Input.Rules.Entry.Object>;
5
+
6
+ export type { Overrides as default };
@@ -1,5 +1,5 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type { Options } from "../../factory/factory.js";
1
+ import type { Scope } from "../../../scopes/scopes.js";
2
+ import type { Options } from "../../../factory/factory.js";
3
3
 
4
4
  type Parsers = {
5
5
  readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]]
@@ -0,0 +1,6 @@
1
+ import type { Scope } from "../../../scopes/scopes.js";
2
+ import type { Options } from "../../../factory/factory.js";
3
+
4
+ type Plugins = { readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"] };
5
+
6
+ export type { Plugins as default };
@@ -0,0 +1,5 @@
1
+ import type RuleObject from "./object/object.js";
2
+
3
+ type RuleEntry = readonly [string, RuleObject];
4
+
5
+ export type { RuleEntry as default };
@@ -0,0 +1,5 @@
1
+ import type Severity from "./state/severity.js";
2
+
3
+ type RuleObject = Record<string, Severity | [Severity, ...unknown[]]>;
4
+
5
+ export type { RuleObject as default };
@@ -0,0 +1,6 @@
1
+ type Severity =
2
+ | "error"
3
+ | "warn"
4
+ | "off";
5
+
6
+ export type { Severity as default };
@@ -0,0 +1,11 @@
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
+
5
+ type Rules = Record<Scope, readonly RuleEntry[]>;
6
+
7
+ export type {
8
+ Rules as default,
9
+ RuleEntry,
10
+ RuleObject,
11
+ };
@@ -1,6 +1,8 @@
1
- export default interface IConfig {
2
- name: `scope:${string}/rule:${string}+${string}`;
3
- rules: IRule;
1
+ import type Input from "../../input/input.js";
2
+
3
+ export default interface Config {
4
+ name: `linted/scope:${string}/rule:${string}+${string}`;
5
+ rules: Input.Rules.Entry.Object;
4
6
  files: readonly string[];
5
7
  linterOptions: {
6
8
  noInlineConfig: true;
@@ -0,0 +1,3 @@
1
+ import type Output from "./config/config.js";
2
+
3
+ export type { Output as default };
@@ -1,9 +1,10 @@
1
1
  import type { Scope } from "../../scopes/scopes.js";
2
+ import type Input from "../../boundary/input/input.js";
2
3
 
3
4
  export default class Files {
4
5
  constructor(
5
- private readonly base: Record<Scope, string[]>,
6
- private readonly includes: Particord<Scope, string[]>,
6
+ private readonly base: Input.Files,
7
+ private readonly includes: Partial<Input.Files>,
7
8
  ) {}
8
9
 
9
10
  public files(scope: Scope): readonly string[] {
@@ -1,6 +1,6 @@
1
1
  import type { Scope } from "../../../scopes/scopes.js";
2
2
  import type { Ruleset } from "../../factory.js";
3
- import type Output from "../../../boundary/output.js";
3
+ import type Output from "../../../boundary/output/output.js";
4
4
 
5
5
  export default abstract class Option<
6
6
  S extends Scope,
@@ -47,7 +47,7 @@ export default abstract class Option<
47
47
  else if (files.length < 1)
48
48
  return [];
49
49
  else {
50
- const baseName = `scope:${scope}/rule:${ruleset.id}` as const;
50
+ const baseName = `linted/scope:${scope}/rule:${ruleset.id}` as const;
51
51
 
52
52
  return ruleset.records.map(
53
53
  ([ruleId, rules]) => {
@@ -1,4 +1,5 @@
1
1
  import type { Scope } from "../../scopes/scopes.js";
2
+ import type Input from "../../boundary/input/input.js";
2
3
  import Rule from "./rule/Rule.js";
3
4
 
4
5
  export { Rule };
@@ -52,7 +53,7 @@ export default class Ruleset<S extends Scope> {
52
53
  }
53
54
  }
54
55
 
55
- public override(overrides: undefined | IRule) {
56
+ public override(overrides: undefined | Input.Rules.Entry.Object) {
56
57
  try {
57
58
  if (typeof overrides !== "undefined")
58
59
  this.overrides = new Rule(
@@ -1,6 +1,8 @@
1
+ import type Input from "../../../boundary/input/input.js";
2
+
1
3
  export default class {
2
4
  constructor(
3
5
  public readonly id: string,
4
- public readonly rules: IRule,
6
+ public readonly rules: Input.Rules.Entry.Object,
5
7
  ) {}
6
8
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import scopes, { type Scope } from "./scopes/scopes.js";
2
- import type Output from "./boundary/output.js";
3
- import type Input from "./boundary/input.js";
2
+ import type Output from "./boundary/output/output.js";
3
+ import type Input from "./boundary/input/input.js";
4
4
  import {
5
5
  Options,
6
6
  Files,
@@ -16,10 +16,10 @@ export type {
16
16
  export default function (
17
17
  plugins: Input.Plugins,
18
18
  parsers: Input.Parsers,
19
- base: Record<Scope, string[]>,
20
- includes: Particord<Scope, string[]>,
21
- rules: Record<Scope, readonly Input.RuleRecord[]>,
22
- overrides: Particord<Scope, IRule>,
19
+ base: Input.Files,
20
+ includes: Partial<Input.Files>,
21
+ rules: Input.Rules,
22
+ overrides: Input.Overrides,
23
23
  ): Output[] {
24
24
  try {
25
25
  const files = new Files(
@@ -9,4 +9,4 @@ const scopes = [
9
9
  ] as const;
10
10
 
11
11
  export default scopes;
12
- export type Scope = typeof scopes[number];
12
+ export type Scope = (typeof scopes)[number];
@@ -1,8 +0,0 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type { Options } from "../../factory/factory.js";
3
-
4
- type Plugins = {
5
- readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
6
- };
7
-
8
- export type { Plugins as default };
@@ -1,6 +0,0 @@
1
- type RuleRecord = readonly [
2
- string,
3
- Record<string, "error" | "warn" | "off" | ["error" | "warn" | "off", ...unknown[]]>,
4
- ];
5
-
6
- export type { RuleRecord as default };
@@ -1,11 +0,0 @@
1
- import type plugins from "./input/plugins.js";
2
- import type parsers from "./input/parsers.js";
3
- import type ruleRecord from "./input/ruleRecord.js";
4
-
5
- namespace Input {
6
- export type Plugins = plugins;
7
- export type Parsers = parsers;
8
- export type RuleRecord = ruleRecord;
9
- }
10
-
11
- export type { Input as default };
@@ -1 +0,0 @@
1
- type IRule = Record<string, RuleSeverity | [RuleSeverity, ...unknown[]]>;
@@ -1,5 +0,0 @@
1
- declare type RuleSeverity =
2
- | "error"
3
- | "warn"
4
- | "off"
5
- ;
@@ -1,3 +0,0 @@
1
- import type Output from "./output/IConfig.js";
2
-
3
- export type { Output as default };