linted 32.5.0-rc.1 → 32.5.0-rc.2

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 Core from "@eslinted/core";
2
- export default function (extensions?: Parameters<typeof Core>[0]["configuration"]["extensions"], ...attachments: Parameters<typeof Core>[0]["configuration"]["attachments"]): unknown[];
2
+ export default function (extensions?: Parameters<typeof Core>[0]["configuration"]["extensions"]): unknown[];
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAOlC,MAAM,CAAC,OAAO,WACZ,UAAU,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,YAAY,CAAM,EAC1E,GAAG,WAAW,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,aAAa,CAAC,aAqB3E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAIlC,MAAM,CAAC,OAAO,WACZ,UAAU,GAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,YAAY,CAAM,aAW3E"}
package/dist/index.js CHANGED
@@ -1,20 +1,13 @@
1
1
  import Core from "@eslinted/core";
2
- import { settings, defaults, } from "@eslinted/defaults";
2
+ import defaults from "@eslinted/defaults";
3
3
  import imports from "./imports/index.js";
4
- export default function (extensions = {}, ...attachments) {
5
- try {
6
- return Core({
7
- imports,
8
- configuration: {
9
- settings,
10
- defaults,
11
- extensions,
12
- attachments,
13
- },
14
- });
15
- }
16
- catch (e) {
17
- throw TypeError("linted: ", { cause: e });
18
- }
4
+ export default function (extensions = {}) {
5
+ return Core({
6
+ imports,
7
+ configuration: {
8
+ defaults,
9
+ extensions,
10
+ },
11
+ });
19
12
  }
20
13
  //# 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,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACL,QAAQ,EACR,QAAQ,GACT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,CAAC,OAAO,WACZ,aAAwE,EAAE,EAC1E,GAAG,WAAuE;IAE1E,IAAI,CAAC;QACH,OAAO,IAAI,CACT;YACE,OAAO;YACP,aAAa,EAAE;gBACb,QAAQ;gBACR,QAAQ;gBACR,UAAU;gBACV,WAAW;aACZ;SACF,CACF,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,CACb,UAAU,EACV,EAAE,KAAK,EAAE,CAAC,EAAE,CACb,CAAC;IACJ,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,CAAC,OAAO,WACZ,aAAwE,EAAE;IAE1E,OAAO,IAAI,CACT;QACE,OAAO;QACP,aAAa,EAAE;YACb,QAAQ;YACR,UAAU;SACX;KACF,CACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "linted",
6
- "version": "32.5.0-rc.1",
6
+ "version": "32.5.0-rc.2",
7
7
  "repository": "github:jimmy-zhening-luo/linted",
8
8
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
9
9
  "keywords": [
@@ -53,8 +53,8 @@
53
53
  "dependencies": {
54
54
  "@eslint/css": "0.13.0",
55
55
  "@eslint/json": "0.13.2",
56
- "@eslinted/core": "25.1.0",
57
- "@eslinted/defaults": "13.4.1",
56
+ "@eslinted/core": "26.0.0-rc.1",
57
+ "@eslinted/defaults": "14.0.0-rc.0",
58
58
  "@html-eslint/eslint-plugin": "0.47.0",
59
59
  "@stylistic/eslint-plugin": "5.4.0",
60
60
  "eslint-plugin-chai-expect": "3.1.0",
package/src/index.ts CHANGED
@@ -1,31 +1,17 @@
1
1
  import Core from "@eslinted/core";
2
- import {
3
- settings,
4
- defaults,
5
- } from "@eslinted/defaults";
2
+ import defaults from "@eslinted/defaults";
6
3
  import imports from "./imports";
7
4
 
8
5
  export default function (
9
6
  extensions: Parameters<typeof Core>[0]["configuration"]["extensions"] = {},
10
- ...attachments: Parameters<typeof Core>[0]["configuration"]["attachments"]
11
7
  ) {
12
- try {
13
- return Core(
14
- {
15
- imports,
16
- configuration: {
17
- settings,
18
- defaults,
19
- extensions,
20
- attachments,
21
- },
8
+ return Core(
9
+ {
10
+ imports,
11
+ configuration: {
12
+ defaults,
13
+ extensions,
22
14
  },
23
- );
24
- }
25
- catch (e) {
26
- throw TypeError(
27
- "linted: ",
28
- { cause: e },
29
- );
30
- }
15
+ },
16
+ );
31
17
  }