@eslinted/core 13.4.0-rc.5 → 13.4.0-rc.6

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/*";
8
+ readonly name: "linted/*/";
9
9
  readonly linterOptions: {
10
10
  readonly noInlineConfig: boolean;
11
11
  readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
@@ -91,7 +91,7 @@ export declare class Factory {
91
91
  };
92
92
  };
93
93
  readonly processor?: "svelte/svelte";
94
- readonly name: `linted/${S}`;
94
+ readonly name: `linted/${S}/`;
95
95
  readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
96
96
  readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
97
97
  })[];
@@ -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/*",
11
+ name: "linted/*/",
12
12
  linterOptions: { noInlineConfig, reportUnusedDisableDirectives },
13
13
  languageOptions: { sourceType, ecmaVersion },
14
14
  },
@@ -47,7 +47,7 @@ export class Factory {
47
47
  ? []
48
48
  : [
49
49
  {
50
- name: `linted/${scope}`,
50
+ name: `linted/${scope}/`,
51
51
  files,
52
52
  ignores,
53
53
  ...processor,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,OAAO,OAAO;IAMA;IALF,MAAM,CAAC;IACP,MAAM,CAAC;IAEvB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,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;wBACjC,IAAI,EAAE,UAAU,EAAE,EAAE;wBACpB,KAAK;wBACL,OAAO;wBACP,KAAK;qBACI,CAAA,CAAC;iBACb,CAAC;IACV,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
1
  import type { PartialConfig } from "../../shared/index.js";
2
2
  export type CommonSettings = PartialConfig<{
3
- readonly name: `linted/*`;
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,UAAU,CAAA;CAAE,EAC3B,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,WAAW,CAAA;CAAE,EAC5B,eAAe,GACf,iBAAiB,CACpB,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}`;
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,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"}
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,GAAG,CAAC;IACnC,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.5",
4
+ "version": "13.4.0-rc.6",
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/*",
31
+ name: "linted/*/",
32
32
  linterOptions: { noInlineConfig, reportUnusedDisableDirectives } as const,
33
33
  languageOptions: { sourceType, ecmaVersion } as const,
34
34
  } as const,
@@ -100,7 +100,7 @@ export class Factory {
100
100
  ? [] as const
101
101
  : [
102
102
  {
103
- name: `linted/${scope}`,
103
+ name: `linted/${scope}/`,
104
104
  files,
105
105
  ignores,
106
106
  ...processor,
@@ -1,7 +1,7 @@
1
1
  import type { PartialConfig } from "../../shared";
2
2
 
3
3
  export type CommonSettings = PartialConfig<
4
- { readonly name: `linted/*` },
4
+ { readonly name: `linted/*/` },
5
5
  | "linterOptions"
6
6
  | "languageOptions"
7
7
  >;
@@ -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}`;
4
+ readonly name: `linted/${Scopes}/`;
5
5
  readonly languageOptions: object;
6
6
  } & Pick<Config, "files" | "ignores" | "processor" | "language" | "settings">;