acaleph-eslint 1.0.7 → 1.0.9

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.cjs CHANGED
@@ -183,10 +183,9 @@ async function interopDefault(m) {
183
183
  function renameRules(rules, map) {
184
184
  return Object.fromEntries(
185
185
  Object.entries(rules).map(([key, value]) => {
186
- for (const [from, to] of Object.entries(map)) {
186
+ for (const [from, to] of Object.entries(map))
187
187
  if (key.startsWith(`${from}/`))
188
188
  return [to + key.slice(from.length), value];
189
- }
190
189
  return [key, value];
191
190
  })
192
191
  );
@@ -607,17 +606,17 @@ async function react(options = {}) {
607
606
  ];
608
607
  }
609
608
 
609
+ // src/plugins.ts
610
+ var pluginImport = __toESM(require("eslint-plugin-import-x"), 1);
611
+ var import_eslint_plugin_unused_imports = __toESM(require("eslint-plugin-unused-imports"), 1);
612
+
610
613
  // src/configs/import.ts
611
614
  async function imports(options = {}) {
612
- const [unusedImports, pluginImport] = await Promise.all([
613
- interopDefault(import("eslint-plugin-unused-imports")),
614
- interopDefault(import("eslint-plugin-import-x"))
615
- ]);
616
615
  return [
617
616
  {
618
617
  name: "acaleph/imports/rules",
619
618
  plugins: {
620
- "unused-imports": unusedImports,
619
+ "unused-imports": import_eslint_plugin_unused_imports.default,
621
620
  "import": pluginImport
622
621
  },
623
622
  rules: {
package/dist/index.js CHANGED
@@ -136,10 +136,9 @@ async function interopDefault(m) {
136
136
  function renameRules(rules, map) {
137
137
  return Object.fromEntries(
138
138
  Object.entries(rules).map(([key, value]) => {
139
- for (const [from, to] of Object.entries(map)) {
139
+ for (const [from, to] of Object.entries(map))
140
140
  if (key.startsWith(`${from}/`))
141
141
  return [to + key.slice(from.length), value];
142
- }
143
142
  return [key, value];
144
143
  })
145
144
  );
@@ -560,17 +559,17 @@ async function react(options = {}) {
560
559
  ];
561
560
  }
562
561
 
562
+ // src/plugins.ts
563
+ import * as pluginImport from "eslint-plugin-import-x";
564
+ import { default as default2 } from "eslint-plugin-unused-imports";
565
+
563
566
  // src/configs/import.ts
564
567
  async function imports(options = {}) {
565
- const [unusedImports, pluginImport] = await Promise.all([
566
- interopDefault(import("eslint-plugin-unused-imports")),
567
- interopDefault(import("eslint-plugin-import-x"))
568
- ]);
569
568
  return [
570
569
  {
571
570
  name: "acaleph/imports/rules",
572
571
  plugins: {
573
- "unused-imports": unusedImports,
572
+ "unused-imports": default2,
574
573
  "import": pluginImport
575
574
  },
576
575
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acaleph-eslint",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,8 +13,7 @@
13
13
  "scripts": {
14
14
  "typegen": "esno scripts/typegen.ts",
15
15
  "build": "pnpm typegen && tsup --format esm,cjs --clean --dts",
16
- "b": "tsup --format esm,cjs --clean --dts",
17
- "d1": "tsup --format esm,cjs --clean --dts"
16
+ "publish": "pnpm build && npm publish"
18
17
  },
19
18
  "keywords": [],
20
19
  "exports": {