@eslinted/core 13.4.0-rc.1 → 13.4.0-rc.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ export declare class Factory {
5
5
  readonly parsers: Input["imports"]["parsers"];
6
6
  readonly common: {
7
7
  readonly settings: {
8
- readonly name: "linted/*/settings";
8
+ readonly name: "linted/*";
9
9
  readonly linterOptions: {
10
10
  readonly noInlineConfig: boolean;
11
11
  readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
@@ -37,7 +37,7 @@ export declare class Factory {
37
37
  ]>>;
38
38
  } | {
39
39
  readonly processor?: "svelte/svelte";
40
- readonly name: `linted/${S}/settings`;
40
+ readonly name: `linted/${S}`;
41
41
  readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
42
42
  readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
43
43
  readonly languageOptions: {
@@ -8,7 +8,7 @@ export class Factory {
8
8
  const { noInlineConfig = defaultSettings.noInlineConfig, reportUnusedDisableDirectives = defaultSettings.reportUnusedDisableDirectives, sourceType = defaultSettings.sourceType, ecmaVersion = defaultSettings.ecmaVersion, ignores = [], override = false, } = commonExtension;
9
9
  this.common = {
10
10
  settings: {
11
- name: "linted/*/settings",
11
+ name: "linted/*",
12
12
  linterOptions: { noInlineConfig, reportUnusedDisableDirectives },
13
13
  languageOptions: { sourceType, ecmaVersion },
14
14
  },
@@ -62,7 +62,7 @@ export class Factory {
62
62
  ? []
63
63
  : [
64
64
  {
65
- name: `linted/${scope}/settings`,
65
+ name: `linted/${scope}`,
66
66
  files,
67
67
  ignores,
68
68
  languageOptions: loadedLanguageOptions,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,OAAO,OAAO;IAMA;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B,KAAK;wBACL,OAAO;wBACP,KAAK;qBACI,CAAA,CAAC;iBACb,CAAC;IACV,CAAC;CACF"}
package/dist/index.js CHANGED
@@ -4,8 +4,8 @@ export default function ({ imports: { plugins, parsers }, defaults, extensions,
4
4
  try {
5
5
  const factory = new Factory(tree, parsers, defaults, extensions);
6
6
  return [
7
- { name: `linted/*/plugins`, plugins },
8
7
  factory.common.settings,
8
+ { name: `linted/*/plugins`, plugins },
9
9
  factory.common.ignores,
10
10
  ...scopes.flatMap(scope => factory.scope(scope)),
11
11
  ];
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACJ;IACN,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAEjE,OAAO;YACL,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAW;YAC9C,OAAO,CAAC,MAAM,CAAC,QAAQ;YACvB,OAAO,CAAC,MAAM,CAAC,OAAO;YACtB,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACxC,CAAC;IACb,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACJ;IACN,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAEjE,OAAO;YACL,OAAO,CAAC,MAAM,CAAC,QAAQ;YACvB,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAW;YAC9C,OAAO,CAAC,MAAM,CAAC,OAAO;YACtB,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACxC,CAAC;IACb,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { PartialConfig } from "../../shared/index.js";
2
2
  export type CommonSettings = PartialConfig<{
3
- readonly name: `linted/*/settings`;
3
+ readonly name: `linted/*`;
4
4
  }, "linterOptions" | "languageOptions">;
5
5
  //# sourceMappingURL=settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,aAAa,CACxC;IAAE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAA;CAAE,EACpC,eAAe,GACf,iBAAiB,CACpB,CAAC"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,aAAa,CACxC;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,EAC3B,eAAe,GACf,iBAAiB,CACpB,CAAC"}
@@ -2,8 +2,8 @@ import type { CommonPlugins, CommonSettings, CommonIgnores } from "./common/inde
2
2
  import type { ScopeSettings, ScopeRules } from "./scope/index.js";
3
3
  import type { Plugins, Scopes } from "../../scopes/index.js";
4
4
  export type Output = readonly [
5
- CommonPlugins<Plugins>,
6
5
  CommonSettings,
6
+ CommonPlugins<Plugins>,
7
7
  CommonIgnores,
8
8
  ...readonly (ScopeSettings<Scopes> | ScopeRules<Scopes>)[]
9
9
  ];
@@ -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,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,cAAc;IACd,aAAa,CAAC,OAAO,CAAC;IACtB,aAAa;IACb,GAAG,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE;CAC3D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../../shared/index.js";
2
2
  export type ScopeSettings<Scopes extends string> = {
3
- readonly name: `linted/${Scopes}/settings`;
3
+ readonly name: `linted/${Scopes}`;
4
4
  readonly languageOptions: object;
5
5
  } & Pick<Config, "files" | "ignores" | "processor" | "language" | "settings">;
6
6
  //# sourceMappingURL=settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,IAAI;IACjD,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,WAAW,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,IAAI;IACjD,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "@eslinted/core",
4
- "version": "13.4.0-rc.1",
4
+ "version": "13.4.0-rc.3",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -28,7 +28,7 @@ export class Factory {
28
28
 
29
29
  this.common = {
30
30
  settings: {
31
- name: "linted/*/settings",
31
+ name: "linted/*",
32
32
  linterOptions: { noInlineConfig, reportUnusedDisableDirectives } as const,
33
33
  languageOptions: { sourceType, ecmaVersion } as const,
34
34
  } as const,
@@ -108,7 +108,7 @@ export class Factory {
108
108
  ? [] as const
109
109
  : [
110
110
  {
111
- name: `linted/${scope}/settings`,
111
+ name: `linted/${scope}`,
112
112
  files,
113
113
  ignores,
114
114
  languageOptions: loadedLanguageOptions,
package/src/index.ts CHANGED
@@ -13,8 +13,8 @@ export default function ({
13
13
  const factory = new Factory(tree, parsers, defaults, extensions);
14
14
 
15
15
  return [
16
- { name: `linted/*/plugins`, plugins } as const,
17
16
  factory.common.settings,
17
+ { name: `linted/*/plugins`, plugins } as const,
18
18
  factory.common.ignores,
19
19
  ...scopes.flatMap(scope => factory.scope(scope)),
20
20
  ] as const;
@@ -1,7 +1,7 @@
1
1
  import type { PartialConfig } from "../../shared";
2
2
 
3
3
  export type CommonSettings = PartialConfig<
4
- { readonly name: `linted/*/settings` },
4
+ { readonly name: `linted/*` },
5
5
  | "linterOptions"
6
6
  | "languageOptions"
7
7
  >;
@@ -10,8 +10,8 @@ import type {
10
10
  import type { Plugins, Scopes } from "../../scopes";
11
11
 
12
12
  export type Output = readonly [
13
- CommonPlugins<Plugins>,
14
13
  CommonSettings,
14
+ CommonPlugins<Plugins>,
15
15
  CommonIgnores,
16
16
  ...readonly (ScopeSettings<Scopes> | ScopeRules<Scopes>)[],
17
17
  ];
@@ -1,6 +1,6 @@
1
1
  import type { Config } from "../../shared";
2
2
 
3
3
  export type ScopeSettings<Scopes extends string> = {
4
- readonly name: `linted/${Scopes}/settings`;
4
+ readonly name: `linted/${Scopes}`;
5
5
  readonly languageOptions: object;
6
6
  } & Pick<Config, "files" | "ignores" | "processor" | "language" | "settings">;