@eslinted/core 14.2.13 → 15.0.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 (28) hide show
  1. package/dist/interface/output/index.d.ts +2 -2
  2. package/dist/interface/output/index.d.ts.map +1 -1
  3. package/dist/interface/output/scoped/index.d.ts.map +1 -0
  4. package/dist/interface/output/scoped/index.js.map +1 -0
  5. package/dist/interface/output/scoped/rules.d.ts +3 -0
  6. package/dist/interface/output/scoped/rules.d.ts.map +1 -0
  7. package/dist/interface/output/scoped/rules.js.map +1 -0
  8. package/dist/interface/output/scoped/settings.d.ts +5 -0
  9. package/dist/interface/output/scoped/settings.d.ts.map +1 -0
  10. package/dist/interface/output/scoped/settings.js.map +1 -0
  11. package/package.json +2 -2
  12. package/src/interface/output/index.ts +4 -4
  13. package/src/interface/output/scoped/rules.ts +12 -0
  14. package/src/interface/output/{scope → scoped}/settings.ts +2 -2
  15. package/dist/interface/output/scope/index.d.ts.map +0 -1
  16. package/dist/interface/output/scope/index.js.map +0 -1
  17. package/dist/interface/output/scope/rules.d.ts +0 -3
  18. package/dist/interface/output/scope/rules.d.ts.map +0 -1
  19. package/dist/interface/output/scope/rules.js.map +0 -1
  20. package/dist/interface/output/scope/settings.d.ts +0 -5
  21. package/dist/interface/output/scope/settings.d.ts.map +0 -1
  22. package/dist/interface/output/scope/settings.js.map +0 -1
  23. package/src/interface/output/scope/rules.ts +0 -12
  24. /package/dist/interface/output/{scope → scoped}/index.d.ts +0 -0
  25. /package/dist/interface/output/{scope → scoped}/index.js +0 -0
  26. /package/dist/interface/output/{scope → scoped}/rules.js +0 -0
  27. /package/dist/interface/output/{scope → scoped}/settings.js +0 -0
  28. /package/src/interface/output/{scope → scoped}/index.ts +0 -0
@@ -1,10 +1,10 @@
1
1
  import type { CommonPlugins, CommonSettings, CommonIgnores } from "./common/index.js";
2
- import type { ScopeSettings, ScopeRules } from "./scope/index.js";
2
+ import type { ScopedSettings, ScopedRules } from "./scoped/index.js";
3
3
  import type { Plugins, Scopes } from "../../scopes/index.js";
4
4
  export type Output = readonly [
5
5
  CommonPlugins<Plugins>,
6
6
  CommonSettings,
7
7
  CommonIgnores,
8
- ...readonly (ScopeSettings<Scopes> | ScopeRules<Scopes>)[]
8
+ ...readonly (ScopedSettings<Scopes> | ScopedRules<Scopes>)[]
9
9
  ];
10
10
  //# 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,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,aAAa,CAAC,OAAO,CAAC;IACtB,cAAc;IACd,aAAa;IACb,GAAG,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE;CAC3D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACZ,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,aAAa,CAAC,OAAO,CAAC;IACtB,cAAc;IACd,aAAa;IACb,GAAG,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE;CAC7D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scoped/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/output/scoped/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { PartialConfig } from "../../shared/index.js";
2
+ export type ScopedRules<Scope extends string> = PartialConfig<`linted/${Scope}/${string}/`, "files" | "ignores" | "rules">;
3
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scoped/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,WAAW,CAAC,KAAK,SAAS,MAAM,IAAI,aAAa,CAC3D,UAAU,KAAK,IAAI,MAAM,GAAG,EAC1B,OAAO,GACP,SAAS,GACT,OAAO,CACV,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/interface/output/scoped/rules.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { PartialConfig } from "../../shared/index.js";
2
+ export type ScopedSettings<Scope extends string> = PartialConfig<`linted/${Scope}/`, "files" | "ignores" | "processor" | "language" | "settings", string, {
3
+ readonly languageOptions: object;
4
+ }>;
5
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scoped/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,MAAM,IAAI,aAAa,CAC9D,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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interface/output/scoped/settings.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.12.1",
3
3
  "name": "@eslinted/core",
4
- "version": "14.2.13",
4
+ "version": "15.0.0",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -33,7 +33,7 @@
33
33
  "devDependencies": {
34
34
  "@types/chai": "^5.0.1",
35
35
  "@types/mocha": "^10.0.10",
36
- "@types/node": "^22.10.2",
36
+ "@types/node": "^22.10.5",
37
37
  "chai": "^5.1.2",
38
38
  "mocha": "^11.0.1",
39
39
  "npm-run-all": "^4.1.5",
@@ -4,14 +4,14 @@ import type {
4
4
  CommonIgnores,
5
5
  } from "./common";
6
6
  import type {
7
- ScopeSettings,
8
- ScopeRules,
9
- } from "./scope";
7
+ ScopedSettings,
8
+ ScopedRules,
9
+ } from "./scoped";
10
10
  import type { Plugins, Scopes } from "../../scopes";
11
11
 
12
12
  export type Output = readonly [
13
13
  CommonPlugins<Plugins>,
14
14
  CommonSettings,
15
15
  CommonIgnores,
16
- ...readonly (ScopeSettings<Scopes> | ScopeRules<Scopes>)[],
16
+ ...readonly (ScopedSettings<Scopes> | ScopedRules<Scopes>)[],
17
17
  ];
@@ -0,0 +1,12 @@
1
+ import type { PartialConfig } from "../../shared";
2
+
3
+ export type ScopedRules<Scope extends string> = PartialConfig<
4
+ `linted/${Scope}/${string}/`,
5
+ | "files"
6
+ | "ignores"
7
+ | "rules"
8
+ >;
9
+
10
+ // export type ScopedRules<Scope extends string> = {
11
+ // readonly name: `linted/${Scope}/${string}/`;
12
+ // } & Pick<Config, "files" | "ignores" | "rules">;
@@ -1,7 +1,7 @@
1
1
  import type { PartialConfig } from "../../shared";
2
2
 
3
- export type ScopeSettings<Scopes extends string> = PartialConfig<
4
- `linted/${Scopes}/`,
3
+ export type ScopedSettings<Scope extends string> = PartialConfig<
4
+ `linted/${Scope}/`,
5
5
  | "files"
6
6
  | "ignores"
7
7
  | "processor"
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/output/scope/index.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { PartialConfig } from "../../shared/index.js";
2
- export type ScopeRules<Scopes extends string> = PartialConfig<`linted/${Scopes}/${string}/`, "files" | "ignores" | "rules">;
3
- //# sourceMappingURL=rules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI,aAAa,CAC3D,UAAU,MAAM,IAAI,MAAM,GAAG,EAC3B,OAAO,GACP,SAAS,GACT,OAAO,CACV,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/interface/output/scope/rules.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { PartialConfig } from "../../shared/index.js";
2
- export type ScopeSettings<Scopes extends string> = PartialConfig<`linted/${Scopes}/`, "files" | "ignores" | "processor" | "language" | "settings", string, {
3
- readonly languageOptions: object;
4
- }>;
5
- //# sourceMappingURL=settings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,IAAI,aAAa,CAC9D,UAAU,MAAM,GAAG,EACjB,OAAO,GACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,EACZ,MAAM,EACN;IAAE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CACrC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interface/output/scope/settings.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import type { PartialConfig } from "../../shared";
2
-
3
- export type ScopeRules<Scopes extends string> = PartialConfig<
4
- `linted/${Scopes}/${string}/`,
5
- | "files"
6
- | "ignores"
7
- | "rules"
8
- >;
9
-
10
- // export type ScopeRules<Scopes extends string> = {
11
- // readonly name: `linted/${Scopes}/${string}/`;
12
- // } & Pick<Config, "files" | "ignores" | "rules">;
File without changes