linted 25.0.0-rc.0 → 25.0.0-rc.1

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.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { type Input } from "@eslinted/core";
2
- export default function (extensions?: Input["extensions"]): readonly [import("@eslinted/core/dist/interface/output/common").CommonPlugins<import("@eslinted/core").Plugins>, import("@eslinted/core/dist/interface/output/common").CommonSettings, import("@eslinted/core/dist/interface/output/common").CommonIgnores, ...(import("@eslinted/core/dist/interface/output/scoped").ScopedSettings<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml"> | import("@eslinted/core/dist/interface/output/scoped").ScopedRules<"js" | "ts" | "svelte" | "mocha" | "html" | "json" | "jsonc" | "yml">)[]];
2
+ export default function (extensions?: Input["extensions"]): readonly [import("@eslinted/core/dist/interface/output/common").CommonPlugins<import("@eslinted/core").Plugins>, import("@eslinted/core/dist/interface/output/common").CommonSettings, import("@eslinted/core/dist/interface/output/common").CommonIgnores, ...(import("@eslinted/core/dist/interface/output/scoped").ScopedSettings<"ts" | "svelte" | "html" | "jsonc" | "yml" | "js" | "mocha" | "json"> | import("@eslinted/core/dist/interface/output/scoped").ScopedRules<"ts" | "svelte" | "html" | "jsonc" | "yml" | "js" | "mocha" | "json">)[]];
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import Core, {} from "@eslinted/core";
2
2
  import * as defaults from "@eslinted/defaults";
3
- import plugins from "./plugins.js";
4
- import parsers from "./parsers.js";
3
+ import { plugins } from "./plugins.js";
4
+ import { parsers } from "./parsers.js";
5
5
  export default function (extensions = {}) {
6
6
  try {
7
7
  return Core({
@@ -11,7 +11,7 @@ export default function (extensions = {}) {
11
11
  });
12
12
  }
13
13
  catch (e) {
14
- throw new Error(`linted(): `, { cause: e });
14
+ throw new Error(`linted: `, { cause: e });
15
15
  }
16
16
  }
17
17
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAc,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,CAAC,OAAO,WAAW,aAAkC,EAAE;IAC3D,IAAI,CAAC;QACH,OAAO,IAAI,CAAC;YACV,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;YAC7B,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAc,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,aAAkC,EAAE;IAC3D,IAAI,CAAC;QACH,OAAO,IAAI,CAAC;YACV,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;YAC7B,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC"}
package/dist/parsers.d.ts CHANGED
@@ -1,13 +1,4 @@
1
- import svelte from "svelte-eslint-parser";
2
- import html from "@html-eslint/parser";
3
- import jsonc from "jsonc-eslint-parser";
4
- import yml from "yaml-eslint-parser";
5
- declare const _default: {
6
- readonly ts: import("@typescript-eslint/utils/ts-eslint").Parser.LooseParserModule;
7
- readonly svelte: typeof svelte;
8
- readonly html: typeof html;
9
- readonly jsonc: typeof jsonc;
10
- readonly yml: typeof yml;
11
- };
12
- export default _default;
1
+ type Parsers = "ts" | "svelte" | "html" | "jsonc" | "yml";
2
+ export declare const parsers: Readonly<Record<Parsers, unknown>>;
3
+ export {};
13
4
  //# sourceMappingURL=parsers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,oBAAoB,CAAC;;;;;;;;AAErC,wBAMW"}
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAMA,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAE1D,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAMtD,CAAC"}
package/dist/parsers.js CHANGED
@@ -3,7 +3,7 @@ import svelte from "svelte-eslint-parser";
3
3
  import html from "@html-eslint/parser";
4
4
  import jsonc from "jsonc-eslint-parser";
5
5
  import yml from "yaml-eslint-parser";
6
- export default {
6
+ export const parsers = {
7
7
  ts,
8
8
  svelte,
9
9
  html,
@@ -1 +1 @@
1
- {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,eAAe;IACb,EAAE;IACF,MAAM;IACN,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
1
+ {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,IAAI,MAAM,qBAAqB,CAAC;AACvC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAIrC,MAAM,CAAC,MAAM,OAAO,GAAuC;IACzD,EAAE;IACF,MAAM;IACN,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
package/dist/plugins.d.ts CHANGED
@@ -1,13 +1,15 @@
1
1
  import mocha from "eslint-plugin-mocha";
2
2
  import chai_friendly from "eslint-plugin-chai-friendly";
3
3
  import chai_expect from "eslint-plugin-chai-expect";
4
- declare const _default: {
5
- readonly "@stylistic": {
4
+ export declare const plugins: {
5
+ "@stylistic": {
6
6
  rules: import("@stylistic/eslint-plugin").Rules;
7
7
  configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
8
8
  };
9
- readonly "@typescript-eslint": import("@typescript-eslint/utils/ts-eslint").FlatConfig.Plugin;
10
- readonly svelte: {
9
+ "@typescript-eslint": {
10
+ readonly config: Record<string, unknown>;
11
+ };
12
+ svelte: {
11
13
  meta: typeof import("eslint-plugin-svelte/lib/meta");
12
14
  configs: {
13
15
  base: import("eslint").Linter.LegacyConfig<import("eslint").Linter.RulesRecord, import("eslint").Linter.RulesRecord>;
@@ -27,10 +29,10 @@ declare const _default: {
27
29
  svelte: typeof import("eslint-plugin-svelte/lib/processor");
28
30
  };
29
31
  };
30
- readonly mocha: typeof mocha;
31
- readonly "chai-friendly": typeof chai_friendly;
32
- readonly "chai-expect": typeof chai_expect;
33
- readonly "@html-eslint": {
32
+ mocha: typeof mocha;
33
+ "chai-friendly": typeof chai_friendly;
34
+ "chai-expect": typeof chai_expect;
35
+ "@html-eslint": {
34
36
  configs: {
35
37
  recommended: typeof import("@html-eslint/eslint-plugin/types/configs/recommended");
36
38
  "flat/recommended": import("eslint").Linter.FlatConfig;
@@ -85,7 +87,7 @@ declare const _default: {
85
87
  };
86
88
  };
87
89
  };
88
- readonly jsonc: {
90
+ jsonc: {
89
91
  meta: typeof import("eslint-plugin-jsonc/meta");
90
92
  configs: {
91
93
  base: {
@@ -447,7 +449,7 @@ declare const _default: {
447
449
  traverseNodes: typeof import("eslint-plugin-jsonc").traverseNodes;
448
450
  getStaticJSONValue: typeof import("eslint-plugin-jsonc").getStaticJSONValue;
449
451
  };
450
- readonly yml: {
452
+ yml: {
451
453
  meta: typeof import("eslint-plugin-yml/lib/meta");
452
454
  configs: {
453
455
  base: {
@@ -646,5 +648,4 @@ declare const _default: {
646
648
  };
647
649
  };
648
650
  };
649
- export default _default;
650
651
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;;;;;;;;;;yBADhD,QAAQ,6BAA6B,QAAQ,6BAC5B,QAAQ;gCACF,QAAQ,6BACzB,QAAQ,6BACX,QAAO;6BAGP,QAAQ,6BACE,QAAQ,6BAEvB,QACF;wBACS,QAAQ,6BACD,QAAQ,6BAGlB,QACJ;gCAAmD,QAAQ,uBAAuB,QAAQ;uCAA4D,QAAQ,uB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8B,CAAC;;;;0CAA6H,oBAAoB;;;;;;;uBAA6M,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAAitC,QAAQ;;qBAAiD,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;0CAA6H,oBAAoB;;;;;;;uBAA6M,CAAC;;;;;;;;;;;;;;;;;;;;;;CAD36L,CAAC"}
package/dist/plugins.js CHANGED
@@ -7,7 +7,7 @@ import chai_expect from "eslint-plugin-chai-expect";
7
7
  import html_eslint from "@html-eslint/eslint-plugin";
8
8
  import jsonc from "eslint-plugin-jsonc";
9
9
  import yml from "eslint-plugin-yml";
10
- export default {
10
+ export const plugins = {
11
11
  "@stylistic": stylistic,
12
12
  "@typescript-eslint": typescript_eslint,
13
13
  svelte,
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,eAAe;IACb,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAAiB;IACvC,MAAM;IACN,KAAK;IACL,eAAe,EAAE,aAAa;IAC9B,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,WAAW;IAC3B,KAAK;IACL,GAAG;CACK,CAAC"}
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAAiE;IACvF,MAAM;IACN,KAAK;IACL,eAAe,EAAE,aAAa;IAC9B,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,WAAW;IAC3B,KAAK;IACL,GAAG;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$template": "22.13.4",
3
3
  "name": "linted",
4
- "version": "25.0.0-rc.0",
4
+ "version": "25.0.0-rc.1",
5
5
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
6
  "repository": "github:jimmy-zhening-luo/linted",
7
7
  "license": "MIT",
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@eslinted/core": "15.2.9",
41
- "@eslinted/defaults": "4.10.6",
41
+ "@eslinted/defaults": "4.11.0",
42
42
  "@html-eslint/eslint-plugin": "0.33.1",
43
43
  "@html-eslint/parser": "0.33.0",
44
- "@stylistic/eslint-plugin": "2.13.0",
44
+ "@stylistic/eslint-plugin": "3.0.0",
45
45
  "eslint-plugin-chai-expect": "3.1.0",
46
46
  "eslint-plugin-chai-friendly": "1.0.1",
47
47
  "eslint-plugin-jsonc": "2.19.1",
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import Core, { type Input } from "@eslinted/core";
2
2
  import * as defaults from "@eslinted/defaults";
3
- import plugins from "./plugins";
4
- import parsers from "./parsers";
3
+ import { plugins } from "./plugins";
4
+ import { parsers } from "./parsers";
5
5
 
6
6
  export default function (extensions: Input["extensions"] = {}) {
7
7
  try {
@@ -12,6 +12,6 @@ export default function (extensions: Input["extensions"] = {}) {
12
12
  });
13
13
  }
14
14
  catch (e) {
15
- throw new Error(`linted(): `, { cause: e });
15
+ throw new Error(`linted: `, { cause: e });
16
16
  }
17
17
  }
package/src/parsers.ts CHANGED
@@ -4,10 +4,12 @@ import html from "@html-eslint/parser";
4
4
  import jsonc from "jsonc-eslint-parser";
5
5
  import yml from "yaml-eslint-parser";
6
6
 
7
- export default {
7
+ type Parsers = "ts" | "svelte" | "html" | "jsonc" | "yml";
8
+
9
+ export const parsers: Readonly<Record<Parsers, unknown>> = {
8
10
  ts,
9
11
  svelte,
10
12
  html,
11
13
  jsonc,
12
14
  yml,
13
- } as const;
15
+ };
package/src/plugins.ts CHANGED
@@ -8,9 +8,9 @@ import html_eslint from "@html-eslint/eslint-plugin";
8
8
  import jsonc from "eslint-plugin-jsonc";
9
9
  import yml from "eslint-plugin-yml";
10
10
 
11
- export default {
11
+ export const plugins = {
12
12
  "@stylistic": stylistic,
13
- "@typescript-eslint": typescript_eslint,
13
+ "@typescript-eslint": typescript_eslint as { readonly config: Record<string, unknown> },
14
14
  svelte,
15
15
  mocha,
16
16
  "chai-friendly": chai_friendly,
@@ -18,4 +18,4 @@ export default {
18
18
  "@html-eslint": html_eslint,
19
19
  jsonc,
20
20
  yml,
21
- } as const;
21
+ };