@eslinted/core 12.0.0-rc.2 → 12.0.0-rc.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/dist/factory/files.js +2 -2
  2. package/dist/factory/files.js.map +1 -1
  3. package/dist/factory/ignores.d.ts +7 -0
  4. package/dist/factory/ignores.d.ts.map +1 -0
  5. package/dist/factory/ignores.js +17 -0
  6. package/dist/factory/ignores.js.map +1 -0
  7. package/dist/factory/index.d.ts +7 -4
  8. package/dist/factory/index.d.ts.map +1 -1
  9. package/dist/factory/index.js +9 -5
  10. package/dist/factory/index.js.map +1 -1
  11. package/dist/factory/options/option/index.d.ts +3 -2
  12. package/dist/factory/options/option/index.d.ts.map +1 -1
  13. package/dist/factory/options/option/index.js +7 -5
  14. package/dist/factory/options/option/index.js.map +1 -1
  15. package/dist/factory/{rulesets → rules}/index.d.ts +2 -2
  16. package/dist/factory/rules/index.d.ts.map +1 -0
  17. package/dist/factory/{rulesets → rules}/index.js +2 -2
  18. package/dist/factory/rules/index.js.map +1 -0
  19. package/dist/factory/{rulesets → rules}/ruleset.d.ts +1 -1
  20. package/dist/factory/rules/ruleset.d.ts.map +1 -0
  21. package/dist/factory/{rulesets → rules}/ruleset.js +2 -2
  22. package/dist/factory/rules/ruleset.js.map +1 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +8 -7
  25. package/dist/index.js.map +1 -1
  26. package/dist/interface/input/global/index.d.ts +1 -1
  27. package/dist/interface/input/scoped/ignores/defaults.d.ts +3 -0
  28. package/dist/interface/input/scoped/ignores/defaults.d.ts.map +1 -0
  29. package/dist/interface/input/scoped/ignores/defaults.js +2 -0
  30. package/dist/interface/input/scoped/ignores/defaults.js.map +1 -0
  31. package/dist/interface/input/scoped/ignores/extend.d.ts +3 -0
  32. package/dist/interface/input/scoped/ignores/extend.d.ts.map +1 -0
  33. package/dist/interface/input/scoped/ignores/extend.js +2 -0
  34. package/dist/interface/input/scoped/ignores/extend.js.map +1 -0
  35. package/dist/interface/input/scoped/ignores/index.d.ts +8 -0
  36. package/dist/interface/input/scoped/ignores/index.d.ts.map +1 -0
  37. package/dist/interface/input/scoped/ignores/index.js +2 -0
  38. package/dist/interface/input/scoped/ignores/index.js.map +1 -0
  39. package/dist/interface/input/scoped/index.d.ts +2 -0
  40. package/dist/interface/input/scoped/index.d.ts.map +1 -1
  41. package/dist/interface/output/{globals.d.ts → global.d.ts} +1 -1
  42. package/dist/interface/output/global.d.ts.map +1 -0
  43. package/dist/interface/output/global.js +2 -0
  44. package/dist/interface/output/global.js.map +1 -0
  45. package/dist/interface/output/index.d.ts +1 -1
  46. package/dist/interface/output/index.d.ts.map +1 -1
  47. package/dist/objects/config/{globals → global}/ignores.d.ts +2 -1
  48. package/dist/objects/config/global/ignores.d.ts.map +1 -0
  49. package/dist/objects/config/global/ignores.js.map +1 -0
  50. package/dist/objects/config/{globals → global}/system.d.ts +1 -1
  51. package/dist/objects/config/global/system.d.ts.map +1 -0
  52. package/dist/objects/config/global/system.js.map +1 -0
  53. package/dist/objects/config/index.d.ts +2 -2
  54. package/dist/objects/config/index.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/src/factory/files.ts +3 -3
  57. package/src/factory/ignores.ts +26 -0
  58. package/src/factory/index.ts +10 -5
  59. package/src/factory/options/option/index.ts +7 -5
  60. package/src/factory/{rulesets → rules}/index.ts +2 -2
  61. package/src/factory/{rulesets → rules}/ruleset.ts +3 -3
  62. package/src/index.ts +14 -8
  63. package/src/interface/input/global/index.ts +1 -1
  64. package/src/interface/input/scoped/ignores/defaults.ts +6 -0
  65. package/src/interface/input/scoped/ignores/extend.ts +5 -0
  66. package/src/interface/input/scoped/ignores/index.ts +9 -0
  67. package/src/interface/input/scoped/index.ts +2 -0
  68. package/src/interface/output/index.ts +1 -1
  69. package/src/objects/config/{globals → global}/ignores.ts +3 -1
  70. package/src/objects/config/{globals → global}/system.ts +1 -1
  71. package/src/objects/config/index.ts +2 -2
  72. package/dist/factory/rulesets/index.d.ts.map +0 -1
  73. package/dist/factory/rulesets/index.js.map +0 -1
  74. package/dist/factory/rulesets/ruleset.d.ts.map +0 -1
  75. package/dist/factory/rulesets/ruleset.js.map +0 -1
  76. package/dist/interface/output/globals.d.ts.map +0 -1
  77. package/dist/interface/output/globals.js +0 -2
  78. package/dist/interface/output/globals.js.map +0 -1
  79. package/dist/objects/config/globals/ignores.d.ts.map +0 -1
  80. package/dist/objects/config/globals/ignores.js.map +0 -1
  81. package/dist/objects/config/globals/system.d.ts.map +0 -1
  82. package/dist/objects/config/globals/system.js.map +0 -1
  83. /package/dist/objects/config/{globals → global}/ignores.js +0 -0
  84. /package/dist/objects/config/{globals → global}/system.js +0 -0
  85. /package/src/interface/output/{globals.ts → global.ts} +0 -0
@@ -1,10 +1,10 @@
1
1
  export class Files {
2
2
  _files = new Map();
3
3
  constructor(files) {
4
- const { files: base, includes } = files, scopes = Object.keys(base);
4
+ const { files: defaults, includes } = files, scopes = Object.keys(defaults);
5
5
  for (const scope of scopes)
6
6
  this._files.set(scope, [
7
- ...base[scope],
7
+ ...defaults[scope],
8
8
  ...scope in includes ? includes[scope] : [],
9
9
  ]);
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/factory/files.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,KAAK;IACC,MAAM,GAAG,IAAI,GAAG,EAAoB,CAAC;IAEtD,YAAY,KAAqB;QAC/B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EACvC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAA0B,CAAC;QAEpD,KAAK,MAAM,KAAK,IAAI,MAAM;YACxB,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,KAAK,EACL;gBACE,GAAG,IAAI,CAAC,KAAK,CAAC;gBACd,GAAG,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAE,QAAQ,CAAC,KAAK,CAAc,CAAC,CAAC,CAAC,EAAE;aAC1D,CACF,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,KAAa;QACxB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;YACzB,MAAM,IAAI,cAAc,CAAC,8BAA8B,KAAK,EAAE,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAa,CAAC;IAC5C,CAAC;CACF"}
1
+ {"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/factory/files.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,KAAK;IACC,MAAM,GAAG,IAAI,GAAG,EAAoB,CAAC;IAEtD,YAAY,KAAqB;QAC/B,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAC3C,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAA8B,CAAC;QAE5D,KAAK,MAAM,KAAK,IAAI,MAAM;YACxB,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,KAAK,EACL;gBACE,GAAG,QAAQ,CAAC,KAAK,CAAC;gBAClB,GAAG,KAAK,IAAI,QAAQ,CAAC,CAAC,CAAE,QAAQ,CAAC,KAAK,CAAc,CAAC,CAAC,CAAC,EAAE;aAC1D,CACF,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,KAAa;QACxB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;YACzB,MAAM,IAAI,cAAc,CAAC,8BAA8B,KAAK,EAAE,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAa,CAAC;IAC5C,CAAC;CACF"}
@@ -0,0 +1,7 @@
1
+ import type { Input } from "./index.js";
2
+ export declare class Ignores {
3
+ private readonly _ignores;
4
+ constructor(ignores: Input["ignores"]);
5
+ ignores(scope: string): string[];
6
+ }
7
+ //# sourceMappingURL=ignores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../src/factory/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;gBAE5C,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAc9B,OAAO,CAAC,KAAK,EAAE,MAAM,GAIS,MAAM,EAAE;CAE9C"}
@@ -0,0 +1,17 @@
1
+ export class Ignores {
2
+ _ignores = new Map();
3
+ constructor(ignores) {
4
+ const { ignores: defaults, extend } = ignores, scopes = Object.keys(defaults);
5
+ for (const scope of scopes)
6
+ this._ignores.set(scope, [
7
+ ...defaults[scope],
8
+ ...scope in extend ? extend[scope] : [],
9
+ ]);
10
+ }
11
+ ignores(scope) {
12
+ if (!this._ignores.has(scope))
13
+ throw new ReferenceError(`Files not found for scope: ${scope}`);
14
+ return this._ignores.get(scope);
15
+ }
16
+ }
17
+ //# sourceMappingURL=ignores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../src/factory/ignores.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IACD,QAAQ,GAAG,IAAI,GAAG,EAAoB,CAAC;IAExD,YAAY,OAAyB;QACnC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,EAC7C,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAA8B,CAAC;QAE5D,KAAK,MAAM,KAAK,IAAI,MAAM;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CACf,KAAK,EACL;gBACE,GAAG,QAAQ,CAAC,KAAK,CAAC;gBAClB,GAAG,KAAK,IAAI,MAAM,CAAC,CAAC,CAAE,MAAM,CAAC,KAAK,CAAc,CAAC,CAAC,CAAC,EAAE;aACtD,CACF,CAAC;IACN,CAAC;IAEM,OAAO,CAAC,KAAa;QAC1B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC;YAC3B,MAAM,IAAI,cAAc,CAAC,8BAA8B,KAAK,EAAE,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAa,CAAC;IAC9C,CAAC;CACF"}
@@ -1,15 +1,18 @@
1
1
  export type { Scope, Input, ScopedConfig, RuleEntry, RuleRecord, } from "../index.js";
2
2
  import { Files } from "./files.js";
3
- import { Rulesets } from "./rulesets/index.js";
3
+ import { Ignores } from "./ignores.js";
4
+ import { Rules } from "./rules/index.js";
4
5
  import Options from "./options/index.js";
5
6
  export { Options };
6
7
  export declare class Factory {
7
8
  readonly files: Files;
8
- readonly rulesets: Rulesets;
9
- constructor(files: ConstructorParameters<typeof Files>[0], rules: ConstructorParameters<typeof Rulesets>[0]);
9
+ readonly ignores: Ignores;
10
+ readonly rules: Rules;
11
+ constructor(files: ConstructorParameters<typeof Files>[0], ignores: ConstructorParameters<typeof Ignores>[0], rules: ConstructorParameters<typeof Rules>[0]);
10
12
  produce(scope: string): readonly [
11
13
  string[],
12
- import("./rulesets/ruleset.js").Ruleset
14
+ string[],
15
+ import("./rules/ruleset.js").Ruleset
13
16
  ];
14
17
  }
15
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,qBAAa,OAAO;IAClB,SAAgB,KAAK,EAAE,KAAK,CAAC;IAC7B,SAAgB,QAAQ,EAAE,QAAQ,CAAC;gBAGjC,KAAK,EAAE,qBAAqB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7C,KAAK,EAAE,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IAM3C,OAAO,CAAC,KAAK,EAAE,MAAM;CAM7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,KAAK,EACL,YAAY,EACZ,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,qBAAa,OAAO;IAClB,SAAgB,KAAK,EAAE,KAAK,CAAC;IAC7B,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,SAAgB,KAAK,EAAE,KAAK,CAAC;gBAG3B,KAAK,EAAE,qBAAqB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7C,OAAO,EAAE,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,EACjD,KAAK,EAAE,qBAAqB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;IAOxC,OAAO,CAAC,KAAK,EAAE,MAAM;CAO7B"}
@@ -1,18 +1,22 @@
1
1
  import { Files } from "./files.js";
2
- import { Rulesets } from "./rulesets/index.js";
2
+ import { Ignores } from "./ignores.js";
3
+ import { Rules } from "./rules/index.js";
3
4
  import Options from "./options/index.js";
4
5
  export { Options };
5
6
  export class Factory {
6
7
  files;
7
- rulesets;
8
- constructor(files, rules) {
8
+ ignores;
9
+ rules;
10
+ constructor(files, ignores, rules) {
9
11
  this.files = new Files(files);
10
- this.rulesets = new Rulesets(rules);
12
+ this.ignores = new Ignores(ignores);
13
+ this.rules = new Rules(rules);
11
14
  }
12
15
  produce(scope) {
13
16
  return [
14
17
  this.files.files(scope),
15
- this.rulesets.ruleset(scope),
18
+ this.ignores.ignores(scope),
19
+ this.rules.rules(scope),
16
20
  ];
17
21
  }
18
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,MAAM,OAAO,OAAO;IACF,KAAK,CAAQ;IACb,QAAQ,CAAW;IAEnC,YACE,KAA6C,EAC7C,KAAgD;QAEhD,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAEM,OAAO,CAAC,KAAa;QAC1B,OAAO;YACL,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YACvB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC;SACpB,CAAC;IACb,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,MAAM,OAAO,OAAO;IACF,KAAK,CAAQ;IACb,OAAO,CAAU;IACjB,KAAK,CAAQ;IAE7B,YACE,KAA6C,EAC7C,OAAiD,EACjD,KAA6C;QAE7C,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAEM,OAAO,CAAC,KAAa;QAC1B,OAAO;YACL,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YACvB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;YAC3B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;SACf,CAAC;IACb,CAAC;CACF"}
@@ -1,14 +1,15 @@
1
1
  import type { Scope, ScopedConfig } from "../index.js";
2
2
  import type { LanguageOptions, Globals } from "./template/index.js";
3
- import type { Ruleset } from "../../rulesets/ruleset.js";
3
+ import type { Ruleset } from "../../rules/ruleset.js";
4
4
  export default abstract class Option<S extends Scope, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, Global extends Globals = never, Processor extends object = never, Language extends object = never> {
5
5
  readonly parser: Tuple<ParserCount, unknown>;
6
6
  readonly files: string[];
7
+ readonly ignores: string[];
7
8
  readonly ruleset: Ruleset;
8
9
  abstract readonly scope: literalful<S>;
9
10
  abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
10
11
  abstract readonly language: Interface<Language> extends never ? object : Interface<Language> extends Readonly<Record<"language", string>> ? Interface<Language> : object;
11
- constructor(parser: Tuple<ParserCount, unknown>, files: string[], ruleset: Ruleset);
12
+ constructor(parser: Tuple<ParserCount, unknown>, files: string[], ignores: string[], ruleset: Ruleset);
12
13
  get configs(): ScopedConfig[];
13
14
  private get option();
14
15
  protected abstract get languageOptions(): LanguageOptions<ParserOptions, Global>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,KAAK,EACL,YAAY,EACb,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,EAEV,eAAe,EACf,OAAO,EACR,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,aAAa,SACX,MAAM,GACN,OAAO,GAAG,KAAK,EACjB,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,MAAM,SAAS,OAAO,GAAG,KAAK,EAC9B,SAAS,SAAS,MAAM,GAAG,KAAK,EAChC,QAAQ,SAAS,MAAM,GAAG,KAAK;aAeb,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC;aACnC,KAAK,EAAE,MAAM,EAAE;aACf,OAAO,EAAE,OAAO;IAflC,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;IACb,kBAAyB,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,KAAK,GAChE,MAAM,GACN,SAAS,CAAC,QAAQ,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,GAC9D,SAAS,CAAC,QAAQ,CAAC,GACnB,MAAM,CAAC;gBAGK,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,OAAO,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/B"}
@@ -2,24 +2,26 @@ import globals from "globals";
2
2
  export default class Option {
3
3
  parser;
4
4
  files;
5
+ ignores;
5
6
  ruleset;
6
- constructor(parser, files, ruleset) {
7
+ constructor(parser, files, ignores, ruleset) {
7
8
  this.parser = parser;
8
9
  this.files = files;
10
+ this.ignores = ignores;
9
11
  this.ruleset = ruleset;
10
12
  }
11
13
  get configs() {
12
- const { scope, ruleset, files, option, } = this;
14
+ const { scope, files, ignores, ruleset, option, } = this;
13
15
  if (ruleset.scope !== scope)
14
16
  throw new TypeError(`Scope mismatch between option and ruleset`, { cause: { option: scope, ruleset: ruleset.scope } });
15
17
  return files.length < 1
16
18
  ? []
17
- : ruleset.ruleset.map(({ id, rule }) => {
19
+ : ruleset.ruleset.map(({ id, rules }) => {
18
20
  return {
19
21
  name: `linted/${id}`,
20
22
  files,
21
- ignores: [],
22
- rules: rule,
23
+ ignores,
24
+ rules,
23
25
  ...option,
24
26
  };
25
27
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAY9B,MAAM,CAAC,OAAO,OAAgB,MAAM;IAuBhB;IACA;IACA;IAHlB,YACkB,MAAmC,EACnC,KAAe,EACf,OAAgB;QAFhB,WAAM,GAAN,MAAM,CAA6B;QACnC,UAAK,GAAL,KAAK,CAAU;QACf,YAAO,GAAP,OAA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O,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
@@ -1,9 +1,9 @@
1
1
  export type { RuleEntry, RuleRecord, } from "../index.js";
2
2
  import type { Input } from "../index.js";
3
3
  import { Ruleset } from "./ruleset.js";
4
- export declare class Rulesets {
4
+ export declare class Rules {
5
5
  private readonly rulesets;
6
6
  constructor(rules: Input["rules"]);
7
- ruleset(scope: string): Ruleset;
7
+ rules(scope: string): Ruleset;
8
8
  }
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/rules/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,KAAK;IAChB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA8B;gBAE3C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;IAQ1B,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAMrC"}
@@ -1,12 +1,12 @@
1
1
  import { Ruleset } from "./ruleset.js";
2
- export class Rulesets {
2
+ export class Rules {
3
3
  rulesets = new Map();
4
4
  constructor(rules) {
5
5
  const { rules: base, overrides } = rules, scopes = Object.keys(base);
6
6
  for (const scope of scopes)
7
7
  this.rulesets.set(scope, new Ruleset(scope, base[scope], overrides[scope]));
8
8
  }
9
- ruleset(scope) {
9
+ rules(scope) {
10
10
  if (!this.rulesets.has(scope))
11
11
  throw new ReferenceError(`Ruleset not found for scope: ${scope}`);
12
12
  return this.rulesets.get(scope);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/rules/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,KAAK;IACC,QAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;IAEvD,YAAY,KAAqB;QAC/B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EACxC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAA0B,CAAC;QAEpD,KAAK,MAAM,KAAK,IAAI,MAAM;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChF,CAAC;IAEM,KAAK,CAAC,KAAa;QACxB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC;YAC3B,MAAM,IAAI,cAAc,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAC;QAEpE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAY,CAAC;IAC7C,CAAC;CACF"}
@@ -3,7 +3,7 @@ export declare class Ruleset {
3
3
  readonly scope: string;
4
4
  readonly ruleset: {
5
5
  id: string;
6
- rule: RuleRecord;
6
+ rules: RuleRecord;
7
7
  }[];
8
8
  constructor(scope: string, rules: RuleEntry[], override?: RuleRecord);
9
9
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/rules/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACX,MAAM,GAAG,CAAC;AAEX,qBAAa,OAAO;aAIA,KAAK,EAAE,MAAM;IAH/B,SAAgB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,UAAU,CAAA;KAAE,EAAE,CAAC;gBAG3C,KAAK,EAAE,MAAM,EAC7B,KAAK,EAAE,SAAS,EAAE,EAClB,QAAQ,CAAC,EAAE,UAAU;CAgBxB"}
@@ -3,10 +3,10 @@ export class Ruleset {
3
3
  ruleset;
4
4
  constructor(scope, rules, override) {
5
5
  this.scope = scope;
6
- const map = ([id, rule]) => {
6
+ const map = ([id, rules]) => {
7
7
  return {
8
8
  id: `${scope}:${id}`,
9
- rule,
9
+ rules,
10
10
  };
11
11
  };
12
12
  this.ruleset = [
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../../src/factory/rules/ruleset.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,CAAsC;IAE7D,YACkB,KAAa,EAC7B,KAAkB,EAClB,QAAqB;QAFL,UAAK,GAAL,KAAK,CAAQ;QAI7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,CAAY,EAAE,EAAE;YACrC,OAAO;gBACL,EAAE,EAAE,GAAG,KAAK,IAAI,EAAE,EAAE;gBACpB,KAAK;aACN,CAAC;QACJ,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC/B,GAAG,OAAO,QAAQ,KAAK,WAAW;gBAChC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC3C,CAAC;IACJ,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,KAAK,EACL,MAAM,GACP,CAAC;AAQF,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAiF7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,KAAK,EACL,MAAM,GACP,CAAC;AAQF,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAuF7C"}
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { scopes } from "./scopes/index.js";
2
2
  import { Factory, Options, } from "./factory/index.js";
3
3
  export default function (input) {
4
4
  try {
5
- const { plugins, parsers, settings, ignores, files, rules, } = input, factory = new Factory(files, rules), options = {
5
+ const { plugins, parsers, settings, globals, files, ignores, rules, } = input, factory = new Factory(files, ignores, rules), options = {
6
6
  js: new Options
7
7
  .js([], ...factory.produce("js")).configs,
8
8
  ts: new Options
@@ -22,17 +22,18 @@ export default function (input) {
22
22
  };
23
23
  return [
24
24
  {
25
- ignores: typeof ignores.extend.ignores === "undefined" || ignores.extend.ignores.length < 1
26
- ? ignores.ignores.ignores
25
+ name: "linted/global/ignores",
26
+ ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
27
+ ? globals.ignores.ignores
27
28
  : [
28
- ...ignores.extend.inherit === false
29
+ ...globals.extend.inherit === false
29
30
  ? []
30
- : ignores.ignores.ignores,
31
- ...ignores.extend.ignores,
31
+ : globals.ignores.ignores,
32
+ ...globals.extend.ignores,
32
33
  ],
33
34
  },
34
35
  {
35
- name: "linted",
36
+ name: "linted/global/settings",
36
37
  plugins,
37
38
  linterOptions: {
38
39
  noInlineConfig: settings.noInlineConfig,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,OAAO,EACP,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,KAAY;IACnC,IAAI,CAAC;QACH,MAAM,EACJ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,GACN,GAAG,KAAK,EACT,OAAO,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,EACnC,OAAO,GAAiF;YACtF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,EACF,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACzB,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,OAAO,CAAC,EAAE,CAAC,EACZ,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACzB,CAAC,OAAO;YACX,MAAM,EAAE,IAAI,OAAO;iBAChB,MAAM,CACL,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,EAC5B,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC7B,CAAC,OAAO;YACX,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,CAAC,OAAO,CAAC,EAAE,CAAC,EACZ,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAC5B,CAAC,OAAO;YACX,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,CAAC,OAAO,CAAC,IAAI,CAAC,EACd,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAC3B,CAAC,OAAO;YACX,IA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AAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export type { GlobalConfigIgnores } from "../index.js";
2
2
  import type { InputGlobalIgnores } from "./ignores/index.js";
3
3
  export interface InputGlobal {
4
- ignores: InputGlobalIgnores;
4
+ globals: InputGlobalIgnores;
5
5
  }
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { Scope } from "./index.js";
2
+ export type ScopedIgnoreDefaults = Record<Scope, string[]>;
3
+ //# sourceMappingURL=defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/ignores/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,KAAK,EACL,MAAM,EAAE,CACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/ignores/defaults.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { ScopedIgnoreDefaults } from "./defaults.js";
2
+ export type ScopedIgnoreExtend = Partial<ScopedIgnoreDefaults>;
3
+ //# sourceMappingURL=extend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extend.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/ignores/extend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACtC,oBAAoB,CACrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=extend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/ignores/extend.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export type { Scope } from "../index.js";
2
+ import type { ScopedIgnoreDefaults } from "./defaults.js";
3
+ import type { ScopedIgnoreExtend } from "./extend.js";
4
+ export interface InputScopedIgnores {
5
+ ignores: ScopedIgnoreDefaults;
6
+ extend: ScopedIgnoreExtend;
7
+ }
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/ignores/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,EAAE,kBAAkB,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/ignores/index.ts"],"names":[],"mappings":""}
@@ -1,8 +1,10 @@
1
1
  export type { Scope, RuleEntry, RuleRecord, } from "../index.js";
2
2
  import type { InputFiles } from "./files/index.js";
3
+ import type { InputScopedIgnores } from "./ignores/index.js";
3
4
  import type { InputRules } from "./rules/index.js";
4
5
  export interface InputScoped {
5
6
  files: InputFiles;
7
+ ignores: InputScopedIgnores;
6
8
  rules: InputRules;
7
9
  }
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/scoped/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/scoped/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,EAAE,UAAU,CAAC;CACnB"}
@@ -3,4 +3,4 @@ export type GlobalConfigs = readonly [
3
3
  GlobalConfigIgnores,
4
4
  GlobalConfigSystem
5
5
  ];
6
- //# sourceMappingURL=globals.d.ts.map
6
+ //# sourceMappingURL=global.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,mBAAmB;IACnB,kBAAkB;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  export type { GlobalConfigIgnores, GlobalConfigSystem, } from "../index.js";
2
- import type { GlobalConfigs } from "./globals.js";
2
+ import type { GlobalConfigs } from "./global.js";
3
3
  import type { ScopedConfig } from "../index.js";
4
4
  export type Output = [
5
5
  ...GlobalConfigs,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,aAAa;IAChB,GAAG,YAAY,EAAE;CAClB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,aAAa;IAChB,GAAG,YAAY,EAAE;CAClB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { ConfigProperty } from "../index.js";
2
- export type GlobalConfigIgnores = Partial<Record<Exclude<ConfigProperty, "ignores">, never>> & {
2
+ export type GlobalConfigIgnores = Partial<Record<Exclude<ConfigProperty, "name" | "ignores">, never>> & {
3
+ name: "linted/global/ignores";
3
4
  ignores: string[];
4
5
  };
5
6
  //# sourceMappingURL=ignores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAC9C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,CACZ,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/objects/config/global/ignores.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import type { Plugins, ConfigProperty } from "../index.js";
2
2
  export type GlobalConfigSystem = Partial<Record<Exclude<ConfigProperty, "name" | "plugins" | "linterOptions" | "languageOptions">, never>> & {
3
- name: `linted`;
3
+ name: "linted/global/settings";
4
4
  plugins: Plugins;
5
5
  linterOptions: {
6
6
  noInlineConfig: boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAC7C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,GACT,eAAe,GACf,iBAAiB,CACpB,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KAAK,CACZ,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CACL,EAAE,CAAC,CAAC;KACR,CAAC;CACH,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/objects/config/global/system.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  export type { Plugins, RuleRecord, } from "../index.js";
2
2
  export type { ConfigProperty } from "./property.js";
3
3
  export type { ScopedConfig } from "./scoped.js";
4
- export type { GlobalConfigIgnores } from "./globals/ignores.js";
5
- export type { GlobalConfigSystem } from "./globals/system.js";
4
+ export type { GlobalConfigIgnores } from "./global/ignores.js";
5
+ export type { GlobalConfigSystem } from "./global/system.js";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "@eslinted/core",
4
- "version": "12.0.0-rc.2",
4
+ "version": "12.0.0-rc.4",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -4,14 +4,14 @@ export class Files {
4
4
  private readonly _files = new Map<string, string[]>();
5
5
 
6
6
  constructor(files: Input["files"]) {
7
- const { files: base, includes } = files,
8
- scopes = Object.keys(base) as (keyof typeof base)[];
7
+ const { files: defaults, includes } = files,
8
+ scopes = Object.keys(defaults) as (keyof typeof defaults)[];
9
9
 
10
10
  for (const scope of scopes)
11
11
  this._files.set(
12
12
  scope,
13
13
  [
14
- ...base[scope],
14
+ ...defaults[scope],
15
15
  ...scope in includes ? (includes[scope] as string[]) : [],
16
16
  ],
17
17
  );
@@ -0,0 +1,26 @@
1
+ import type { Input } from ".";
2
+
3
+ export class Ignores {
4
+ private readonly _ignores = new Map<string, string[]>();
5
+
6
+ constructor(ignores: Input["ignores"]) {
7
+ const { ignores: defaults, extend } = ignores,
8
+ scopes = Object.keys(defaults) as (keyof typeof defaults)[];
9
+
10
+ for (const scope of scopes)
11
+ this._ignores.set(
12
+ scope,
13
+ [
14
+ ...defaults[scope],
15
+ ...scope in extend ? (extend[scope] as string[]) : [],
16
+ ],
17
+ );
18
+ }
19
+
20
+ public ignores(scope: string) {
21
+ if (!this._ignores.has(scope))
22
+ throw new ReferenceError(`Files not found for scope: ${scope}`);
23
+
24
+ return this._ignores.get(scope) as string[];
25
+ }
26
+ }
@@ -7,26 +7,31 @@ export type {
7
7
  } from "..";
8
8
 
9
9
  import { Files } from "./files";
10
- import { Rulesets } from "./rulesets";
10
+ import { Ignores } from "./ignores";
11
+ import { Rules } from "./rules";
11
12
  import Options from "./options";
12
13
 
13
14
  export { Options };
14
15
  export class Factory {
15
16
  public readonly files: Files;
16
- public readonly rulesets: Rulesets;
17
+ public readonly ignores: Ignores;
18
+ public readonly rules: Rules;
17
19
 
18
20
  constructor(
19
21
  files: ConstructorParameters<typeof Files>[0],
20
- rules: ConstructorParameters<typeof Rulesets>[0],
22
+ ignores: ConstructorParameters<typeof Ignores>[0],
23
+ rules: ConstructorParameters<typeof Rules>[0],
21
24
  ) {
22
25
  this.files = new Files(files);
23
- this.rulesets = new Rulesets(rules);
26
+ this.ignores = new Ignores(ignores);
27
+ this.rules = new Rules(rules);
24
28
  }
25
29
 
26
30
  public produce(scope: string) {
27
31
  return [
28
32
  this.files.files(scope),
29
- this.rulesets.ruleset(scope),
33
+ this.ignores.ignores(scope),
34
+ this.rules.rules(scope),
30
35
  ] as const;
31
36
  }
32
37
  }
@@ -8,7 +8,7 @@ import type {
8
8
  LanguageOptions,
9
9
  Globals,
10
10
  } from "./template";
11
- import type { Ruleset } from "../../rulesets/ruleset";
11
+ import type { Ruleset } from "../../rules/ruleset";
12
12
 
13
13
  export default abstract class Option<
14
14
  S extends Scope,
@@ -35,14 +35,16 @@ export default abstract class Option<
35
35
  constructor(
36
36
  public readonly parser: Tuple<ParserCount, unknown>,
37
37
  public readonly files: string[],
38
+ public readonly ignores: string[],
38
39
  public readonly ruleset: Ruleset,
39
40
  ) {}
40
41
 
41
42
  public get configs(): ScopedConfig[] {
42
43
  const {
43
44
  scope,
44
- ruleset,
45
45
  files,
46
+ ignores,
47
+ ruleset,
46
48
  option,
47
49
  } = this;
48
50
 
@@ -51,12 +53,12 @@ export default abstract class Option<
51
53
 
52
54
  return files.length < 1
53
55
  ? []
54
- : ruleset.ruleset.map(({ id, rule }) => {
56
+ : ruleset.ruleset.map(({ id, rules }) => {
55
57
  return {
56
58
  name: `linted/${id}`,
57
59
  files,
58
- ignores: [],
59
- rules: rule,
60
+ ignores,
61
+ rules,
60
62
  ...option,
61
63
  };
62
64
  });
@@ -6,7 +6,7 @@ export type {
6
6
  import type { Input } from "..";
7
7
  import { Ruleset } from "./ruleset";
8
8
 
9
- export class Rulesets {
9
+ export class Rules {
10
10
  private readonly rulesets = new Map<string, Ruleset>();
11
11
 
12
12
  constructor(rules: Input["rules"]) {
@@ -17,7 +17,7 @@ export class Rulesets {
17
17
  this.rulesets.set(scope, new Ruleset(scope, base[scope], overrides[scope]));
18
18
  }
19
19
 
20
- public ruleset(scope: string): Ruleset {
20
+ public rules(scope: string): Ruleset {
21
21
  if (!this.rulesets.has(scope))
22
22
  throw new ReferenceError(`Ruleset not found for scope: ${scope}`);
23
23
 
@@ -4,17 +4,17 @@ import type {
4
4
  } from ".";
5
5
 
6
6
  export class Ruleset {
7
- public readonly ruleset: { id: string; rule: RuleRecord }[];
7
+ public readonly ruleset: { id: string; rules: RuleRecord }[];
8
8
 
9
9
  constructor(
10
10
  public readonly scope: string,
11
11
  rules: RuleEntry[],
12
12
  override?: RuleRecord,
13
13
  ) {
14
- const map = ([id, rule]: typeof rules[number]) => {
14
+ const map = ([id, rules]: RuleEntry) => {
15
15
  return {
16
16
  id: `${scope}:${id}`,
17
- rule,
17
+ rules,
18
18
  };
19
19
  };
20
20
 
package/src/index.ts CHANGED
@@ -31,11 +31,16 @@ export default function (input: Input): Output {
31
31
  plugins,
32
32
  parsers,
33
33
  settings,
34
- ignores,
34
+ globals,
35
35
  files,
36
+ ignores,
36
37
  rules,
37
38
  } = input,
38
- factory = new Factory(files, rules),
39
+ factory = new Factory(
40
+ files,
41
+ ignores,
42
+ rules,
43
+ ),
39
44
  options: { [S in typeof scopes[number]]: InstanceType<typeof Options[S]>["configs"] } = {
40
45
  js: new Options
41
46
  .js(
@@ -81,17 +86,18 @@ export default function (input: Input): Output {
81
86
 
82
87
  return [
83
88
  {
84
- ignores: typeof ignores.extend.ignores === "undefined" || ignores.extend.ignores.length < 1
85
- ? ignores.ignores.ignores
89
+ name: "linted/global/ignores",
90
+ ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
91
+ ? globals.ignores.ignores
86
92
  : [
87
- ...ignores.extend.inherit === false
93
+ ...globals.extend.inherit === false
88
94
  ? []
89
- : ignores.ignores.ignores,
90
- ...ignores.extend.ignores,
95
+ : globals.ignores.ignores,
96
+ ...globals.extend.ignores,
91
97
  ],
92
98
  },
93
99
  {
94
- name: "linted",
100
+ name: "linted/global/settings",
95
101
  plugins,
96
102
  linterOptions: {
97
103
  noInlineConfig: settings.noInlineConfig,
@@ -3,5 +3,5 @@ export type { GlobalConfigIgnores } from "..";
3
3
  import type { InputGlobalIgnores } from "./ignores";
4
4
 
5
5
  export interface InputGlobal {
6
- ignores: InputGlobalIgnores;
6
+ globals: InputGlobalIgnores;
7
7
  }
@@ -0,0 +1,6 @@
1
+ import type { Scope } from ".";
2
+
3
+ export type ScopedIgnoreDefaults = Record<
4
+ Scope,
5
+ string[]
6
+ >;
@@ -0,0 +1,5 @@
1
+ import type { ScopedIgnoreDefaults } from "./defaults";
2
+
3
+ export type ScopedIgnoreExtend = Partial<
4
+ ScopedIgnoreDefaults
5
+ >;
@@ -0,0 +1,9 @@
1
+ export type { Scope } from "..";
2
+
3
+ import type { ScopedIgnoreDefaults } from "./defaults";
4
+ import type { ScopedIgnoreExtend } from "./extend";
5
+
6
+ export interface InputScopedIgnores {
7
+ ignores: ScopedIgnoreDefaults;
8
+ extend: ScopedIgnoreExtend;
9
+ }
@@ -5,9 +5,11 @@ export type {
5
5
  } from "..";
6
6
 
7
7
  import type { InputFiles } from "./files";
8
+ import type { InputScopedIgnores } from "./ignores";
8
9
  import type { InputRules } from "./rules";
9
10
 
10
11
  export interface InputScoped {
11
12
  files: InputFiles;
13
+ ignores: InputScopedIgnores;
12
14
  rules: InputRules;
13
15
  }
@@ -3,7 +3,7 @@ export type {
3
3
  GlobalConfigSystem,
4
4
  } from "..";
5
5
 
6
- import type { GlobalConfigs } from "./globals";
6
+ import type { GlobalConfigs } from "./global";
7
7
  import type { ScopedConfig } from "..";
8
8
 
9
9
  export type Output = [
@@ -3,9 +3,11 @@ import type { ConfigProperty } from "..";
3
3
  export type GlobalConfigIgnores = Partial<Record<
4
4
  Exclude<
5
5
  ConfigProperty,
6
- "ignores"
6
+ | "name"
7
+ | "ignores"
7
8
  >,
8
9
  never
9
10
  >> & {
11
+ name: "linted/global/ignores";
10
12
  ignores: string[];
11
13
  };
@@ -13,7 +13,7 @@ export type GlobalConfigSystem = Partial<Record<
13
13
  >,
14
14
  never
15
15
  >> & {
16
- name: `linted`;
16
+ name: "linted/global/settings";
17
17
  plugins: Plugins;
18
18
  linterOptions: {
19
19
  noInlineConfig: boolean;
@@ -4,5 +4,5 @@ export type {
4
4
  } from "..";
5
5
  export type { ConfigProperty } from "./property";
6
6
  export type { ScopedConfig } from "./scoped";
7
- export type { GlobalConfigIgnores } from "./globals/ignores";
8
- export type { GlobalConfigSystem } from "./globals/system";
7
+ export type { GlobalConfigIgnores } from "./global/ignores";
8
+ export type { GlobalConfigSystem } from "./global/system";
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,UAAU,GACX,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,qBAAa,QAAQ;IACnB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA8B;gBAE3C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;IAQ1B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAMvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,OAAO,QAAQ;IACF,QAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;IAEvD,YAAY,KAAqB;QAC/B,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,KAAK,EACxC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAA0B,CAAC;QAEpD,KAAK,MAAM,KAAK,IAAI,MAAM;YACxB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChF,CAAC;IAEM,OAAO,CAAC,KAAa;QAC1B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC;YAC3B,MAAM,IAAI,cAAc,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAC;QAEpE,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAY,CAAC;IAC7C,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/rulesets/ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACX,MAAM,GAAG,CAAC;AAEX,qBAAa,OAAO;aAIA,KAAK,EAAE,MAAM;IAH/B,SAAgB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,EAAE,CAAC;gBAG1C,KAAK,EAAE,MAAM,EAC7B,KAAK,EAAE,SAAS,EAAE,EAClB,QAAQ,CAAC,EAAE,UAAU;CAgBxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ruleset.js","sourceRoot":"","sources":["../../../src/factory/rulesets/ruleset.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,OAAO;IAIA;IAHF,OAAO,CAAqC;IAE5D,YACkB,KAAa,EAC7B,KAAkB,EAClB,QAAqB;QAFL,UAAK,GAAL,KAAK,CAAQ;QAI7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,CAAuB,EAAE,EAAE;YAC/C,OAAO;gBACL,EAAE,EAAE,GAAG,KAAK,IAAI,EAAE,EAAE;gBACpB,IAAI;aACL,CAAC;QACJ,CAAC,CAAC;QAEF,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC/B,GAAG,OAAO,QAAQ,KAAK,WAAW;gBAChC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC3C,CAAC;IACJ,CAAC;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/interface/output/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,mBAAmB;IACnB,kBAAkB;CACnB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=globals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../src/interface/output/globals.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/globals/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAC9C,OAAO,CACL,cAAc,EACd,SAAS,CACV,EACD,KAAK,CACN,CAAC,GAAG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/objects/config/globals/ignores.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/globals/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAC7C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,GACT,eAAe,GACf,iBAAiB,CACpB,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KAAK,CACZ,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CACL,EAAE,CAAC,CAAC;KACR,CAAC;CACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/objects/config/globals/system.ts"],"names":[],"mappings":""}
File without changes