@akanjs/lint 0.0.57 → 0.0.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/lint",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -52,3 +52,7 @@ const noImportClientFunctions = import_utils.ESLintUtils.RuleCreator(() => __fil
52
52
  };
53
53
  }
54
54
  });
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ noImportClientFunctions
58
+ });
@@ -58,3 +58,7 @@ const noImportExternalLibrary = import_utils.ESLintUtils.RuleCreator(() => __fil
58
58
  };
59
59
  }
60
60
  });
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ noImportExternalLibrary
64
+ });
@@ -58,3 +58,7 @@ const nonScalarPropsRestricted = import_utils.ESLintUtils.RuleCreator(() => __fi
58
58
  };
59
59
  }
60
60
  });
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ nonScalarPropsRestricted
64
+ });
@@ -69,3 +69,7 @@ const useClientByFile = import_utils.ESLintUtils.RuleCreator(() => __filename)({
69
69
  };
70
70
  }
71
71
  });
72
+ // Annotate the CommonJS export names for ESM import in node:
73
+ 0 && (module.exports = {
74
+ useClientByFile
75
+ });
@@ -41,3 +41,7 @@ const fileHasClientFunction = (node) => {
41
41
  else
42
42
  return false;
43
43
  };
44
+ // Annotate the CommonJS export names for ESM import in node:
45
+ 0 && (module.exports = {
46
+ fileHasClientFunction
47
+ });
@@ -24,3 +24,7 @@ const fileHasContent = (context, node) => {
24
24
  const firstToken = context.sourceCode.getFirstToken(node);
25
25
  return !!firstToken;
26
26
  };
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ fileHasContent
30
+ });
@@ -24,3 +24,7 @@ const fileHasUseClient = (context) => {
24
24
  const firstLineIdx = context.sourceCode.lines.findIndex((line) => line.trim() !== "");
25
25
  return { hasUseClient: context.sourceCode.lines[firstLineIdx].includes('"use client"'), firstLineIdx };
26
26
  };
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ fileHasUseClient
30
+ });
@@ -57,3 +57,7 @@ const fileIsPureImportFile = (filename) => {
57
57
  else
58
58
  return false;
59
59
  };
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
62
+ fileIsPureImportFile
63
+ });
@@ -54,3 +54,7 @@ const fileIsServerFile = (absFilePath, sourceCode) => {
54
54
  return false;
55
55
  return null;
56
56
  };
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ fileIsServerFile
60
+ });
@@ -25,3 +25,7 @@ const getAppName = (filePaths) => {
25
25
  const appName = appsIdx === -1 ? null : filePaths[appsIdx + 1];
26
26
  return appName;
27
27
  };
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ getAppName
31
+ });
@@ -24,3 +24,7 @@ const getFilename = (absFilePath) => {
24
24
  const filePaths = absFilePath.split("/");
25
25
  return filePaths.at(-1) ?? "";
26
26
  };
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ getFilename
30
+ });
package/src/util/index.js CHANGED
@@ -35,3 +35,14 @@ var import_getFilename = require("./getFilename");
35
35
  var import_fileIsPureImportFile = require("./fileIsPureImportFile");
36
36
  var import_isInternalImport = require("./isInternalImport");
37
37
  var import_getAppName = require("./getAppName");
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ fileHasClientFunction,
41
+ fileHasContent,
42
+ fileHasUseClient,
43
+ fileIsPureImportFile,
44
+ fileIsServerFile,
45
+ getAppName,
46
+ getFilename,
47
+ isInternalImport
48
+ });
@@ -52,3 +52,7 @@ const isInternalImport = (importPaths, appName) => {
52
52
  else
53
53
  return false;
54
54
  };
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ isInternalImport
58
+ });