@eslinted/core 18.9.0-rc.1 → 18.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/factory/index.d.ts +950 -16141
  2. package/dist/factory/index.d.ts.map +1 -1
  3. package/dist/factory/index.js +10 -8
  4. package/dist/factory/index.js.map +1 -1
  5. package/dist/factory/manifests.d.ts +9 -9
  6. package/dist/factory/manifests.d.ts.map +1 -1
  7. package/dist/factory/manifests.js.map +1 -1
  8. package/dist/factory/scopes/css.d.ts +9 -9
  9. package/dist/factory/scopes/css.d.ts.map +1 -1
  10. package/dist/factory/scopes/css.js.map +1 -1
  11. package/dist/factory/scopes/html.d.ts +10 -10
  12. package/dist/factory/scopes/html.d.ts.map +1 -1
  13. package/dist/factory/scopes/html.js.map +1 -1
  14. package/dist/factory/scopes/js.d.ts +7 -7
  15. package/dist/factory/scopes/js.d.ts.map +1 -1
  16. package/dist/factory/scopes/js.js +3 -1
  17. package/dist/factory/scopes/js.js.map +1 -1
  18. package/dist/factory/scopes/json.d.ts +8 -8
  19. package/dist/factory/scopes/json.d.ts.map +1 -1
  20. package/dist/factory/scopes/json.js +3 -1
  21. package/dist/factory/scopes/json.js.map +1 -1
  22. package/dist/factory/scopes/jsonc.d.ts +9 -8
  23. package/dist/factory/scopes/jsonc.d.ts.map +1 -1
  24. package/dist/factory/scopes/jsonc.js +4 -1
  25. package/dist/factory/scopes/jsonc.js.map +1 -1
  26. package/dist/factory/scopes/manifest/index.d.ts +11 -19
  27. package/dist/factory/scopes/manifest/index.d.ts.map +1 -1
  28. package/dist/factory/scopes/manifest/index.js.map +1 -1
  29. package/dist/factory/scopes/mocha.d.ts +15 -15
  30. package/dist/factory/scopes/mocha.d.ts.map +1 -1
  31. package/dist/factory/scopes/mocha.js.map +1 -1
  32. package/dist/factory/scopes/svelte.d.ts +18 -20
  33. package/dist/factory/scopes/svelte.d.ts.map +1 -1
  34. package/dist/factory/scopes/svelte.js +3 -1
  35. package/dist/factory/scopes/svelte.js.map +1 -1
  36. package/dist/factory/scopes/ts.d.ts +16 -16
  37. package/dist/factory/scopes/ts.d.ts.map +1 -1
  38. package/dist/factory/scopes/ts.js.map +1 -1
  39. package/dist/factory/scopes/yml.d.ts +9 -9
  40. package/dist/factory/scopes/yml.d.ts.map +1 -1
  41. package/dist/factory/scopes/yml.js.map +1 -1
  42. package/dist/index.spec.js.map +1 -1
  43. package/dist/interface/input/imported.d.ts +2 -2
  44. package/dist/interface/input/imported.d.ts.map +1 -1
  45. package/dist/interface/input/index.d.ts +3 -3
  46. package/dist/interface/input/index.d.ts.map +1 -1
  47. package/dist/interface/input/scopes/defaults.d.ts +4 -4
  48. package/dist/interface/input/scopes/defaults.d.ts.map +1 -1
  49. package/dist/interface/input/scopes/extensions.d.ts +6 -6
  50. package/dist/interface/input/scopes/extensions.d.ts.map +1 -1
  51. package/dist/interface/output/configs/scoped/rules.d.ts +1 -1
  52. package/dist/interface/output/configs/scoped/rules.d.ts.map +1 -1
  53. package/dist/interface/output/configs/scoped/settings.d.ts +2 -2
  54. package/dist/interface/output/configs/scoped/settings.d.ts.map +1 -1
  55. package/dist/interface/output/index.d.ts +3 -3
  56. package/dist/interface/output/index.d.ts.map +1 -1
  57. package/dist/interface/proto/config/index.d.ts +14 -14
  58. package/dist/interface/proto/config/index.d.ts.map +1 -1
  59. package/dist/interface/proto/config/rule/index.d.ts +2 -2
  60. package/dist/interface/proto/config/rule/index.d.ts.map +1 -1
  61. package/dist/interface/proto/config/utility/index.d.ts +2 -2
  62. package/dist/interface/proto/config/utility/index.d.ts.map +1 -1
  63. package/dist/scopes/imports/index.d.ts +2 -2
  64. package/dist/scopes/imports/index.d.ts.map +1 -1
  65. package/dist/scopes/tree/index.d.ts +1 -1
  66. package/dist/scopes/tree/index.d.ts.map +1 -1
  67. package/dist/scopes/tree/index.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/factory/index.ts +37 -35
  70. package/src/factory/manifests.ts +1 -1
  71. package/src/factory/scopes/css.ts +7 -7
  72. package/src/factory/scopes/html.ts +9 -9
  73. package/src/factory/scopes/js.ts +7 -5
  74. package/src/factory/scopes/json.ts +8 -6
  75. package/src/factory/scopes/jsonc.ts +9 -6
  76. package/src/factory/scopes/manifest/index.ts +29 -13
  77. package/src/factory/scopes/mocha.ts +7 -7
  78. package/src/factory/scopes/svelte.ts +12 -10
  79. package/src/factory/scopes/ts.ts +8 -8
  80. package/src/factory/scopes/yml.ts +8 -8
  81. package/src/index.spec.ts +1 -1
  82. package/src/interface/input/imported.ts +3 -3
  83. package/src/interface/input/index.ts +5 -5
  84. package/src/interface/input/scopes/defaults.ts +4 -4
  85. package/src/interface/input/scopes/extensions.ts +6 -6
  86. package/src/interface/output/configs/scoped/rules.ts +2 -2
  87. package/src/interface/output/configs/scoped/settings.ts +5 -3
  88. package/src/interface/output/index.ts +3 -3
  89. package/src/interface/proto/config/index.ts +14 -14
  90. package/src/interface/proto/config/rule/index.ts +4 -4
  91. package/src/interface/proto/config/utility/index.ts +3 -3
  92. package/src/scopes/imports/index.ts +2 -2
  93. package/src/scopes/tree/index.ts +6 -6
@@ -1,14 +1,14 @@
1
1
  import { ScopeManifest } from "./manifest/index.js";
2
- export default class YmlManifest extends ScopeManifest<"yml"> {
3
- readonly languageOptions: {
4
- readonly parser: "yml";
5
- readonly globals: null;
2
+ export default class YmlManifest extends ScopeManifest {
3
+ languageOptions: {
4
+ parser: "yml";
5
+ globals: null;
6
6
  };
7
- readonly parserOptions: {
8
- readonly parser: null;
9
- readonly defaultYAMLVersion: "1.2";
7
+ parserOptions: {
8
+ parser: null;
9
+ defaultYAMLVersion: string;
10
10
  };
11
- readonly processor: {};
12
- readonly language: {};
11
+ processor: {};
12
+ language: {};
13
13
  }
14
14
  //# sourceMappingURL=yml.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa,CAAC,KAAK,CAAC;IAC3D,SAAgB,eAAe;;;MAGpB;IACX,SAAgB,aAAa;;;MAIlB;IACX,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;CACxC"}
1
+ {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa;IAC7C,eAAe;;;MAGpB;IACK,aAAa;;;MAIlB;IACK,SAAS,KAAM;IACf,QAAQ,KAAM;CACtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAoB;IAC3C,eAAe,GAAG;QAChC,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,IAAI;KACL,CAAC;IACK,aAAa,GAAG;QAC9B,oGAAoG;QACpG,MAAM,EAAE,IAAI;QACZ,kBAAkB,EAAE,KAAK,CAAC,6BAA6B;KAC/C,CAAC;IACK,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;CACxC"}
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa;IAC7C,eAAe,GAAG;QACvB,MAAM,EAAE,KAAc;QACtB,OAAO,EAAE,IAAI;KACd,CAAC;IACK,aAAa,GAAG;QACrB,oGAAoG;QACpG,MAAM,EA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ACvB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACf,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;YAC7C,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACf,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC;iBACvB,EAAE,CAAC,QAAQ,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,6BAA6B,EAAE;YAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACf,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;YAC9C,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACf,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC;iBAC7B,EAAE,CAAC,QAAQ,CAAC,CAAC;YAChB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACf,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,4BAA4B,CAAC;iBACjD,CAAC,CAAC,QAAQ,CAAC,CAAC;YACf,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACf,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../proto/index.js";
2
2
  export interface Imported<Plugins extends string, Parsers extends string> {
3
- readonly plugins: Config.Config<Plugins>["plugins"];
4
- readonly parsers: Readonly<Record<Parsers, unknown>>;
3
+ plugins: Config.Config<Plugins>["plugins"];
4
+ parsers: Record<Parsers, unknown>;
5
5
  }
6
6
  //# sourceMappingURL=imported.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"imported.d.ts","sourceRoot":"","sources":["../../../src/interface/input/imported.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,QAAQ,CACvB,OAAO,SAAS,MAAM,EACtB,OAAO,SAAS,MAAM;IAEtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC;IACpD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAC/B,OAAO,EACP,OAAO,CACR,CAAC,CAAC;CACJ"}
1
+ {"version":3,"file":"imported.d.ts","sourceRoot":"","sources":["../../../src/interface/input/imported.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,WAAW,QAAQ,CACvB,OAAO,SAAS,MAAM,EACtB,OAAO,SAAS,MAAM;IAEtB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,CACb,OAAO,EACP,OAAO,CACR,CAAC;CACH"}
@@ -2,8 +2,8 @@ import type { Imports, Scope } from "../../scopes/index.js";
2
2
  import type { Imported } from "./imported.js";
3
3
  import type { Defaults, Extensions } from "./scopes/index.js";
4
4
  export interface Input {
5
- readonly imports: Imported<Imports.Plugin, Imports.Parser>;
6
- readonly defaults: Defaults<Scope>;
7
- readonly extensions: Extensions<Scope>;
5
+ imports: Imported<Imports.Plugins, Imports.Parsers>;
6
+ defaults: Defaults<Scope>;
7
+ extensions: Extensions<Scope>;
8
8
  }
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CACxB,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,MAAM,CACf,CAAC;IACF,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CACxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,QAAQ,CACf,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,OAAO,CAChB,CAAC;IACF,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CAC/B"}
@@ -1,8 +1,8 @@
1
1
  import type { Config } from "../../proto/index.js";
2
2
  export interface Defaults<Scopes extends string> {
3
- readonly settings: Config.Config["linterOptions"] & Config.Config["languageOptions"];
4
- readonly files: Readonly<Record<Scopes, string[]>>;
5
- readonly ignores: Readonly<Record<"*" | Scopes, string[]>>;
6
- readonly rules: Readonly<Record<Scopes, Config.Rule.NamedRuleBag[]>>;
3
+ settings: Config.Config["linterOptions"] & Config.Config["languageOptions"];
4
+ files: Record<Scopes, string[]>;
5
+ ignores: Record<"*" | Scopes, string[]>;
6
+ rules: Record<Scopes, Config.Rule.NamedRuleBag[]>;
7
7
  }
8
8
  //# sourceMappingURL=defaults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/scopes/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,QAAQ,CAAC,MAAM,SAAS,MAAM;IAC7C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACrF,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAC3D,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;CACtE"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/scopes/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,QAAQ,CAAC,MAAM,SAAS,MAAM;IAC7C,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC5E,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC,GAAG,GAAG,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;CACnD"}
@@ -1,12 +1,12 @@
1
1
  import type { Defaults } from "./defaults.js";
2
2
  export type Extensions<Scopes extends string> = ({
3
- readonly "*"?: Partial<Defaults<Scopes>["settings"]> & {
4
- readonly override?: boolean;
5
- readonly ignores?: Defaults<Scopes>["ignores"]["*"];
3
+ "*"?: Partial<Defaults<Scopes>["settings"]> & {
4
+ override?: boolean;
5
+ ignores?: Defaults<Scopes>["ignores"]["*"];
6
6
  };
7
7
  } & Partial<Record<Scopes, {
8
- readonly files?: Defaults<Scopes>["files"][Scopes];
9
- readonly ignores?: Defaults<Scopes>["ignores"][Scopes];
10
- readonly rules?: Defaults<Scopes>["rules"][Scopes][number]["rules"];
8
+ files?: Defaults<Scopes>["files"][Scopes];
9
+ ignores?: Defaults<Scopes>["ignores"][Scopes];
10
+ rules?: Defaults<Scopes>["rules"][Scopes][number]["rules"];
11
11
  }>>);
12
12
  //# sourceMappingURL=extensions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/scopes/extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI,CAC5C;IACA,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG;QACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC;KACrD,CAAC;CACH,GACC,OAAO,CAAC,MAAM,CACd,MAAM,EACN;IACE,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IACnD,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;CACrE,CACF,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/scopes/extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI,CAC5C;IACA,GAAG,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG;QAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC;KAC5C,CAAC;CACH,GACC,OAAO,CAAC,MAAM,CACd,MAAM,EACN;IACE,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IAC9C,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5D,CACF,CAAC,CACH,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { Config } from "../../../proto/index.js";
2
- export type Rules<Scope extends string> = Config.PickConfig<`linted/${Scope}/${string}/`, "files" | "ignores" | "rules">;
2
+ export type Rules = Config.PickConfig<`linted/${string}`, "files" | "ignores" | "rules">;
3
3
  //# sourceMappingURL=rules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../../src/interface/output/configs/scoped/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,KAAK,CAAC,KAAK,SAAS,MAAM,IAAI,MAAM,CAAC,UAAU,CACzD,UAAU,KAAK,IAAI,MAAM,GAAG,EAC1B,OAAO,GACP,SAAS,GACT,OAAO,CACV,CAAC"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../../src/interface/output/configs/scoped/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CACnC,UAAU,MAAM,EAAE,EAChB,OAAO,GACP,SAAS,GACT,OAAO,CACV,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Config } from "../../../proto/index.js";
2
- export type Settings<Scope extends string> = Config.PickConfig<`linted/${Scope}/`, "files" | "ignores" | "processor" | "language" | "settings", string, {
3
- readonly languageOptions: object;
2
+ export type Settings = Config.PickConfig<`linted/${string}`, "files" | "ignores" | "processor" | "language" | "settings", string, {
3
+ languageOptions: object;
4
4
  }>;
5
5
  //# sourceMappingURL=settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/interface/output/configs/scoped/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,QAAQ,CAAC,KAAK,SAAS,MAAM,IAAI,MAAM,CAAC,UAAU,CAC5D,UAAU,KAAK,GAAG,EAChB,OAAO,GACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,EACZ,MAAM,EACN;IAAE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CACrC,CAAC"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/interface/output/configs/scoped/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CACtC,UAAU,MAAM,EAAE,EAChB,OAAO,GACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,EACZ,MAAM,EACN;IACE,eAAe,EAAE,MAAM,CAAC;CACzB,CACF,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import type * as Configs from "./configs/index.js";
2
- import type { Imports, Scope } from "../../scopes/index.js";
2
+ import type { Imports } from "../../scopes/index.js";
3
3
  export type Output = readonly [
4
- Configs.Global.Plugins<Imports.Plugin>,
4
+ Configs.Global.Plugins<Imports.Plugins>,
5
5
  Configs.Global.Settings,
6
6
  Configs.Global.Ignores,
7
- ...readonly (Configs.Scoped.Settings<Scope> | Configs.Scoped.Rules<Scope>)[]
7
+ ...(Configs.Scoped.Settings | Configs.Scoped.Rules)[]
8
8
  ];
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;IACtC,OAAO,CAAC,MAAM,CAAC,QAAQ;IACvB,OAAO,CAAC,MAAM,CAAC,OAAO;IACtB,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE;CAC7E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;IACvC,OAAO,CAAC,MAAM,CAAC,QAAQ;IACvB,OAAO,CAAC,MAAM,CAAC,OAAO;IACtB,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;CACtD,CAAC"}
@@ -2,21 +2,21 @@ import type * as Rule from "./rule/index.js";
2
2
  export type { Rule };
3
3
  export type * from "./utility/index.js";
4
4
  export interface Config<Plugins extends string = string> {
5
- readonly name: `linted/${string}/`;
6
- readonly plugins: Readonly<Record<Plugins, unknown>>;
7
- readonly files: readonly string[];
8
- readonly ignores: readonly string[];
9
- readonly rules: Rule.RuleBag;
10
- readonly linterOptions: {
11
- readonly noInlineConfig: boolean;
12
- readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
5
+ name: `linted/${string}`;
6
+ plugins: Record<Plugins, unknown>;
7
+ files: string[];
8
+ ignores: string[];
9
+ rules: Rule.RuleBag;
10
+ linterOptions: {
11
+ noInlineConfig: boolean;
12
+ reportUnusedDisableDirectives: "error" | "warn" | "off";
13
13
  };
14
- readonly languageOptions: {
15
- readonly sourceType: "module" | "script";
16
- readonly ecmaVersion: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
14
+ languageOptions: {
15
+ sourceType: "module" | "script";
16
+ ecmaVersion: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
17
17
  };
18
- readonly processor?: string;
19
- readonly language?: string;
20
- readonly settings?: Readonly<Record<string, unknown>>;
18
+ processor?: string;
19
+ language?: string;
20
+ settings?: Record<string, unknown>;
21
21
  }
22
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/proto/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,QAAQ,CAAC;AAEpC,YAAY,EAAE,IAAI,EAAE,CAAC;AACrB,mBAAmB,WAAW,CAAC;AAC/B,MAAM,WAAW,MAAM,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrD,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,GAAG,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE;QACtB,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;QACjC,QAAQ,CAAC,6BAA6B,EAClC,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,QAAQ,CAAC,eAAe,EAAE;QACxB,QAAQ,CAAC,UAAU,EACf,QAAQ,GACR,QAAQ,CACX;QACD,QAAQ,CAAC,WAAW,EAChB,QAAQ,GACR,CAAC,GACD,CAAC,GACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP;KACF,CAAC;IACF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/proto/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,QAAQ,CAAC;AAEpC,YAAY,EAAE,IAAI,EAAE,CAAC;AACrB,mBAAmB,WAAW,CAAC;AAC/B,MAAM,WAAW,MAAM,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrD,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;IACpB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,EACN,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,EACP,QAAQ,GACR,CAAC,GACD,CAAC,GACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP;KACF,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
@@ -1,7 +1,7 @@
1
1
  export interface NamedRuleBag {
2
2
  id: string;
3
- readonly rules: RuleBag;
3
+ rules: RuleBag;
4
4
  }
5
- export type RuleBag = Readonly<Record<string, RuleState | readonly [RuleState, ...readonly unknown[]]>>;
5
+ export type RuleBag = Record<string, RuleState | readonly [RuleState, ...unknown[]]>;
6
6
  export type RuleState = ("error" | "warn" | "off");
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/proto/config/rule/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AACD,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CACnC,MAAM,EACJ,SAAS,GACT,SAAS,CAAC,SAAS,EAAE,GAAG,SAAS,OAAO,EAAE,CAAC,CAC9C,CAAC,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/proto/config/rule/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;CAChB;AACD,MAAM,MAAM,OAAO,GAAG,MAAM,CAC1B,MAAM,EACJ,SAAS,GACT,SAAS,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CACrC,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Config } from "../index.js";
2
2
  export type PickConfig<Name extends Config["name"], Picks extends Exclude<keyof Config, "name" | keyof Rest>, Plugins extends string = string, Rest extends object = object> = (Rest & Pick<Config<Plugins>, Picks> & {
3
- readonly name: Name;
4
- } & Readonly<Partial<Record<Exclude<keyof Config, "name" | keyof Rest | Picks>, never>>>);
3
+ name: Name;
4
+ } & Partial<Record<Exclude<keyof Config, "name" | keyof Rest | Picks>, never>>);
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/proto/config/utility/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAEjC,MAAM,MAAM,UAAU,CACpB,IAAI,SAAS,MAAM,CAAC,MAAM,CAAC,EAC3B,KAAK,SAAS,OAAO,CACnB,MAAM,MAAM,EACV,MAAM,GACN,MAAM,IAAI,CACb,EACD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,IAAI,SAAS,MAAM,GAAG,MAAM,IAC1B,CACA,IAAI,GACJ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CAAE,GACvB,QAAQ,CAAC,OAAO,CAAC,MAAM,CACvB,OAAO,CACL,MAAM,MAAM,EACV,MAAM,GACN,MAAM,IAAI,GACV,KAAK,CACR,EACD,KAAK,CACN,CAAC,CAAC,CACJ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/proto/config/utility/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAEjC,MAAM,MAAM,UAAU,CACpB,IAAI,SAAS,MAAM,CAAC,MAAM,CAAC,EAC3B,KAAK,SAAS,OAAO,CACnB,MAAM,MAAM,EACV,MAAM,GACN,MAAM,IAAI,CACb,EACD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,IAAI,SAAS,MAAM,GAAG,MAAM,IAC1B,CACA,IAAI,GACJ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAC5B;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,GACd,OAAO,CAAC,MAAM,CACd,OAAO,CACL,MAAM,MAAM,EACV,MAAM,GACN,MAAM,IAAI,GACV,KAAK,CACR,EACD,KAAK,CACN,CAAC,CACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare namespace Imports {
2
- type Plugin = ("@stylistic" | "@typescript-eslint" | "mocha" | "chai-friendly" | "chai-expect" | "svelte" | "@html-eslint" | "css" | "json" | "jsonc" | "yml");
3
- type Parser = ("ts" | "svelte" | "html" | "yml");
2
+ type Plugins = ("@stylistic" | "@typescript-eslint" | "mocha" | "chai-friendly" | "chai-expect" | "svelte" | "@html-eslint" | "css" | "json" | "jsonc" | "yml");
3
+ type Parsers = ("ts" | "svelte" | "html" | "yml");
4
4
  }
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scopes/imports/index.ts"],"names":[],"mappings":"AAAA,yBAAiB,OAAO,CAAC;IACvB,KAAY,MAAM,GAAG,CACjB,YAAY,GACZ,oBAAoB,GACpB,OAAO,GACP,eAAe,GACf,aAAa,GACb,QAAQ,GACR,cAAc,GACd,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,CACR,CAAC;IACF,KAAY,MAAM,GAAG,CACjB,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,KAAK,CACR,CAAC;CACH"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scopes/imports/index.ts"],"names":[],"mappings":"AAAA,yBAAiB,OAAO,CAAC;IACvB,KAAY,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,OAAO,GACP,eAAe,GACf,aAAa,GACb,QAAQ,GACR,cAAc,GACd,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,CACR,CAAC;IACF,KAAY,OAAO,GAAG,CAClB,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,KAAK,CACR,CAAC;CACH"}
@@ -1,6 +1,6 @@
1
1
  import type { Scope } from "../index.js";
2
2
  export declare const tree: [
3
3
  Scope,
4
- readonly Scope[]
4
+ Scope[]
5
5
  ][];
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scopes/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,eAAO,MAAM,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC,EAKlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scopes/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,eAAO,MAAM,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,EAKlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/scopes/tree/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAgC;IAC/C,CAAC,OAAO,EAAE,CAAC,MAAM,CAAU,CAAU;IACrC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAU,CAAU;IACnC,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAU,CAAU;IACpC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAU,CAAU;CACxB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/scopes/tree/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,IAAI,GAAuB;IACtC,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAU;IAC5B,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAU;IAC1B,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAU;IAC3B,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAU;CACxB,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/core",
6
- "version": "18.9.0-rc.1",
6
+ "version": "18.9.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
8
8
  "private": false,
9
9
  "engineStrict": true,
@@ -1,20 +1,20 @@
1
1
  import globals from "globals";
2
2
  import { ScopeManifests } from "./manifests";
3
3
  import type { Input } from "../interface";
4
- import type { tree as Tree } from "../scopes";
4
+ import type { Scope, tree as Tree } from "../scopes";
5
5
 
6
6
  export class Factory {
7
- public readonly global;
8
- public readonly scopes;
7
+ public global;
8
+ public scopes;
9
9
 
10
10
  constructor(
11
11
  tree: typeof Tree,
12
- public readonly parsers: Input["imports"]["parsers"],
12
+ public parsers: Input["imports"]["parsers"],
13
13
  defaults: Input["defaults"],
14
14
  {
15
15
  "*": globalExtension = {},
16
16
  ...scopeExtensions
17
- }: Input["extensions"] = {} as const,
17
+ }: Input["extensions"] = {},
18
18
  ) {
19
19
  const {
20
20
  noInlineConfig = defaults.settings.noInlineConfig,
@@ -27,23 +27,23 @@ export class Factory {
27
27
 
28
28
  this.global = {
29
29
  settings: {
30
- name: "linted/*/settings/",
31
- linterOptions: { noInlineConfig, reportUnusedDisableDirectives } as const,
32
- languageOptions: { sourceType, ecmaVersion } as const,
33
- } as const,
30
+ name: "linted/*/settings/" as const,
31
+ linterOptions: { noInlineConfig, reportUnusedDisableDirectives },
32
+ languageOptions: { sourceType, ecmaVersion },
33
+ },
34
34
  ignores: {
35
- name: "linted/*/ignores/",
35
+ name: "linted/*/ignores/" as const,
36
36
  ignores: [
37
37
  ...override ? [] : defaults.ignores["*"],
38
38
  ...ignores,
39
- ] as const,
40
- } as const,
41
- } as const;
39
+ ],
40
+ },
41
+ };
42
42
  this.scopes = {
43
43
  files: defaults.files,
44
44
  ignores: defaults.ignores,
45
45
  rules: defaults.rules,
46
- } as const;
46
+ };
47
47
 
48
48
  for (const scope in scopeExtensions) {
49
49
  const {
@@ -51,14 +51,14 @@ export class Factory {
51
51
  files: userFiles = [],
52
52
  ignores: userIgnores = [],
53
53
  rules: userRules = null,
54
- } = {} as const,
54
+ } = {},
55
55
  } = scopeExtensions;
56
56
 
57
57
  this.scopes.files[scope as keyof typeof scopeExtensions].push(...userFiles);
58
58
  this.scopes.ignores[scope as keyof typeof scopeExtensions].push(...userIgnores);
59
59
 
60
60
  if (userRules !== null)
61
- this.scopes.rules[scope as keyof typeof scopeExtensions].push({ id: `${scope}/override`, rules: userRules } as const);
61
+ this.scopes.rules[scope as keyof typeof scopeExtensions].push({ id: `${scope}/override`, rules: userRules });
62
62
  }
63
63
 
64
64
  for (const [scope, parents] of tree)
@@ -84,13 +84,13 @@ export class Factory {
84
84
  ] as const;
85
85
  }
86
86
 
87
- public scope<S extends keyof typeof ScopeManifests>(scope: S) {
87
+ public scope(scope: Scope) {
88
88
  const {
89
89
  files: { [scope]: files },
90
90
  ignores: { [scope]: ignores },
91
91
  rules: { [scope]: rules },
92
92
  } = this.scopes,
93
- ruleset = rules.map(({ id, rules }) => ({ id: `${scope}/${id}`, rules } as const)),
93
+ ruleset = rules.map(({ id, rules }) => { return { id: `${scope}/${id}`, rules }; }),
94
94
  {
95
95
  languageOptions: {
96
96
  parser = null,
@@ -106,36 +106,38 @@ export class Factory {
106
106
  } = new ScopeManifests[scope]();
107
107
 
108
108
  return files.length === 0
109
- ? [] as const
109
+ ? []
110
110
  : ruleset.length === 0
111
- ? [] as const
111
+ ? []
112
112
  : [
113
113
  {
114
- name: `linted/${scope}/`,
114
+ name: `linted/${scope as string}/` as const,
115
115
  files,
116
116
  ignores,
117
117
  languageOptions: {
118
118
  ...languageOptionsStatic,
119
- ...global !== null && global in globals ? { globals: globals[global as keyof typeof globals] } as const : {} as const,
120
- ...parser === null ? {} as const : { parser: this.parsers[parser] } as const,
119
+ ...global === null || !(global in globals) ? {} : { globals: globals[global as keyof typeof globals] as Record<string, boolean> },
120
+ ...parser === null ? {} : { parser: this.parsers[parser] },
121
121
  ...Object.keys(parserOptionsStatic).length < 1 && subparser === null
122
- ? {} as const
122
+ ? {}
123
123
  : {
124
124
  parserOptions: {
125
125
  ...parserOptionsStatic,
126
- ...subparser === null ? {} as const : { parser: this.parsers[subparser] } as const,
127
- } as const,
128
- } as const,
129
- } as const,
126
+ ...subparser === null ? {} : { parser: this.parsers[subparser] },
127
+ },
128
+ },
129
+ },
130
130
  ...processor,
131
131
  ...language,
132
- } as const,
133
- ...ruleset.map(({ id, rules }) => ({
134
- name: `linted/${id}/`,
135
- files,
136
- ignores,
137
- rules,
138
- } as const)),
132
+ },
133
+ ...ruleset.map(({ id, rules }) => {
134
+ return {
135
+ name: `linted/${id}/` as const,
136
+ files,
137
+ ignores,
138
+ rules,
139
+ };
140
+ }),
139
141
  ];
140
142
  }
141
143
  }
@@ -18,4 +18,4 @@ export const ScopeManifests = {
18
18
  json,
19
19
  jsonc,
20
20
  yml,
21
- } as const;
21
+ };
@@ -1,17 +1,17 @@
1
1
  import { ScopeManifest } from "./manifest";
2
2
 
3
3
  export default class CssManifest extends ScopeManifest {
4
- public readonly languageOptions = {
4
+ public languageOptions = {
5
5
  parser: null,
6
6
  globals: null,
7
7
  tolerant: false,
8
- } as const;
9
- public readonly parserOptions = {
8
+ };
9
+ public parserOptions = {
10
10
  /* DOC: https://github.com/ota-meshi/yaml-eslint-parser?tab=readme-ov-file#advanced-configuration */
11
11
  parser: null,
12
- } as const;
13
- public readonly processor = {} as const;
14
- public readonly language = {
12
+ };
13
+ public processor = {};
14
+ public language = {
15
15
  language: "css/css",
16
- } as const;
16
+ };
17
17
  }
@@ -1,16 +1,16 @@
1
1
  import { ScopeManifest } from "./manifest";
2
2
 
3
- export default class HtmlManifest extends ScopeManifest<"html"> {
4
- public readonly languageOptions = {
5
- parser: "html",
3
+ export default class HtmlManifest extends ScopeManifest {
4
+ public languageOptions = {
5
+ parser: "html" as const,
6
6
  globals: null,
7
- } as const;
8
- public readonly parserOptions = {
7
+ };
8
+ public parserOptions = {
9
9
  parser: null,
10
10
  frontmatter: true /* DOC: https://github.com/yeonjuan/html-eslint/issues/291#issuecomment-2726307803 */,
11
- } as const;
12
- public readonly processor = {} as const;
13
- public readonly language = {
11
+ };
12
+ public processor = {};
13
+ public language = {
14
14
  language: "@html-eslint/html",
15
- } as const;
15
+ };
16
16
  }
@@ -1,11 +1,13 @@
1
1
  import { ScopeManifest } from "./manifest";
2
2
 
3
3
  export default class JsManifest extends ScopeManifest {
4
- public readonly languageOptions = {
4
+ public languageOptions = {
5
5
  parser: null,
6
6
  globals: null,
7
- } as const;
8
- public readonly parserOptions = { parser: null } as const;
9
- public readonly processor = {} as const;
10
- public readonly language = {} as const;
7
+ };
8
+ public parserOptions = {
9
+ parser: null,
10
+ };
11
+ public processor = {};
12
+ public language = {};
11
13
  }
@@ -1,13 +1,15 @@
1
1
  import { ScopeManifest } from "./manifest";
2
2
 
3
3
  export default class JsonManifest extends ScopeManifest {
4
- public readonly languageOptions = {
4
+ public languageOptions = {
5
5
  parser: null,
6
6
  globals: null,
7
- } as const;
8
- public readonly parserOptions = { parser: null } as const;
9
- public readonly processor = {} as const;
10
- public readonly language = {
7
+ };
8
+ public parserOptions = {
9
+ parser: null,
10
+ };
11
+ public processor = {};
12
+ public language = {
11
13
  language: "json/json",
12
- } as const;
14
+ };
13
15
  }
@@ -1,13 +1,16 @@
1
1
  import { ScopeManifest } from "./manifest";
2
2
 
3
3
  export default class JsoncManifest extends ScopeManifest {
4
- public readonly languageOptions = {
4
+ public languageOptions = {
5
5
  parser: null,
6
6
  globals: null,
7
- } as const;
8
- public readonly parserOptions = { parser: null } as const;
9
- public readonly processor = {} as const;
10
- public readonly language = {
7
+ allowTrailingCommas: true,
8
+ };
9
+ public parserOptions = {
10
+ parser: null,
11
+ };
12
+ public processor = {};
13
+ public language = {
11
14
  language: "json/jsonc",
12
- } as const;
15
+ };
13
16
  }