@akanjs/lint 0.0.77 → 0.0.78
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/index.d.ts +1 -1
- package/index.js +2 -2
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/src/{eslint.config.js → eslintConfig.js} +3 -3
- package/src/util/isInternalImport.js +6 -2
- package/src/util/isInternalImport.mjs +6 -2
- /package/src/{eslint.config.d.ts → eslintConfig.d.ts} +0 -0
- /package/src/{eslint.config.mjs → eslintConfig.mjs} +0 -0
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { akanjsLint } from "./src/lintRule";
|
|
2
|
-
export { eslintConfig } from "./src/
|
|
2
|
+
export { eslintConfig } from "./src/eslintConfig";
|
package/index.js
CHANGED
|
@@ -18,11 +18,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var lint_exports = {};
|
|
19
19
|
__export(lint_exports, {
|
|
20
20
|
akanjsLint: () => import_lintRule.akanjsLint,
|
|
21
|
-
eslintConfig: () =>
|
|
21
|
+
eslintConfig: () => import_eslintConfig.eslintConfig
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(lint_exports);
|
|
24
24
|
var import_lintRule = require("./src/lintRule");
|
|
25
|
-
var
|
|
25
|
+
var import_eslintConfig = require("./src/eslintConfig");
|
|
26
26
|
// Annotate the CommonJS export names for ESM import in node:
|
|
27
27
|
0 && (module.exports = {
|
|
28
28
|
akanjsLint,
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -25,11 +25,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
var
|
|
29
|
-
__export(
|
|
28
|
+
var eslintConfig_exports = {};
|
|
29
|
+
__export(eslintConfig_exports, {
|
|
30
30
|
eslintConfig: () => eslintConfig
|
|
31
31
|
});
|
|
32
|
-
module.exports = __toCommonJS(
|
|
32
|
+
module.exports = __toCommonJS(eslintConfig_exports);
|
|
33
33
|
var import_eslintrc = require("@eslint/eslintrc");
|
|
34
34
|
var import_js = __toESM(require("@eslint/js"));
|
|
35
35
|
var import_eslint_plugin = __toESM(require("@typescript-eslint/eslint-plugin"));
|
|
@@ -32,9 +32,13 @@ __export(isInternalImport_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(isInternalImport_exports);
|
|
33
33
|
var fs = __toESM(require("fs"));
|
|
34
34
|
const projectRoot = process.cwd();
|
|
35
|
-
const
|
|
35
|
+
const hasLibs = fs.existsSync(`${projectRoot}/libs`);
|
|
36
|
+
const hasPkgs = fs.existsSync(`${projectRoot}/pkgs`);
|
|
37
|
+
const libNames = hasLibs ? fs.readdirSync(`${projectRoot}/libs`) : [];
|
|
38
|
+
const pkgsNames = hasPkgs ? fs.readdirSync(`${projectRoot}/pkgs`) : [];
|
|
39
|
+
const importNames = [...libNames, ...pkgsNames];
|
|
36
40
|
const internalImportSet = /* @__PURE__ */ new Set([
|
|
37
|
-
...
|
|
41
|
+
...importNames.map((libName) => `@${libName}`),
|
|
38
42
|
"react-icons",
|
|
39
43
|
"react",
|
|
40
44
|
"next",
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as fs from "fs";
|
|
2
2
|
const projectRoot = process.cwd();
|
|
3
|
-
const
|
|
3
|
+
const hasLibs = fs.existsSync(`${projectRoot}/libs`);
|
|
4
|
+
const hasPkgs = fs.existsSync(`${projectRoot}/pkgs`);
|
|
5
|
+
const libNames = hasLibs ? fs.readdirSync(`${projectRoot}/libs`) : [];
|
|
6
|
+
const pkgsNames = hasPkgs ? fs.readdirSync(`${projectRoot}/pkgs`) : [];
|
|
7
|
+
const importNames = [...libNames, ...pkgsNames];
|
|
4
8
|
const internalImportSet = /* @__PURE__ */ new Set([
|
|
5
|
-
...
|
|
9
|
+
...importNames.map((libName) => `@${libName}`),
|
|
6
10
|
"react-icons",
|
|
7
11
|
"react",
|
|
8
12
|
"next",
|
|
File without changes
|
|
File without changes
|