@akanjs/lint 0.0.75 → 0.0.77

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.
Files changed (25) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +4 -14
  3. package/index.mjs +4 -4
  4. package/package.json +16 -2
  5. package/{pkgs/@akanjs/lint/src/lint.config.d.ts → src/eslint.config.d.ts} +1 -2
  6. package/src/{lint.config.js → eslint.config.js} +11 -7
  7. package/src/{lint.config.mjs → eslint.config.mjs} +3 -3
  8. package/{pkgs/@akanjs/lint/src → src}/lintRule.d.ts +1 -2
  9. package/src/lintRule.js +6 -3
  10. package/src/lintRule.mjs +2 -3
  11. package/pkgs/@akanjs/lint/index.d.ts +0 -2
  12. /package/{pkgs/@akanjs/lint/jest.config.d.ts → jest.config.d.ts} +0 -0
  13. /package/{pkgs/@akanjs/lint/src → src}/rules/noImportClientFunctions.d.ts +0 -0
  14. /package/{pkgs/@akanjs/lint/src → src}/rules/noImportExternalLibrary.d.ts +0 -0
  15. /package/{pkgs/@akanjs/lint/src → src}/rules/nonScalarPropsRestricted.d.ts +0 -0
  16. /package/{pkgs/@akanjs/lint/src → src}/rules/useClientByFile.d.ts +0 -0
  17. /package/{pkgs/@akanjs/lint/src → src}/util/fileHasClientFunction.d.ts +0 -0
  18. /package/{pkgs/@akanjs/lint/src → src}/util/fileHasContent.d.ts +0 -0
  19. /package/{pkgs/@akanjs/lint/src → src}/util/fileHasUseClient.d.ts +0 -0
  20. /package/{pkgs/@akanjs/lint/src → src}/util/fileIsPureImportFile.d.ts +0 -0
  21. /package/{pkgs/@akanjs/lint/src → src}/util/fileIsServerFile.d.ts +0 -0
  22. /package/{pkgs/@akanjs/lint/src → src}/util/getAppName.d.ts +0 -0
  23. /package/{pkgs/@akanjs/lint/src → src}/util/getFilename.d.ts +0 -0
  24. /package/{pkgs/@akanjs/lint/src → src}/util/index.d.ts +0 -0
  25. /package/{pkgs/@akanjs/lint/src → src}/util/isInternalImport.d.ts +0 -0
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { akanjsLint } from "./src/lintRule";
2
+ export { eslintConfig } from "./src/eslint.config";
package/index.js CHANGED
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,23 +14,15 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
  var lint_exports = {};
29
19
  __export(lint_exports, {
30
- akanjsLint: () => import_lintRule.default,
31
- eslintConfig: () => import_lint.default
20
+ akanjsLint: () => import_lintRule.akanjsLint,
21
+ eslintConfig: () => import_eslint.eslintConfig
32
22
  });
33
23
  module.exports = __toCommonJS(lint_exports);
34
- var import_lintRule = __toESM(require("./src/lintRule"));
35
- var import_lint = __toESM(require("./src/lint.config"));
24
+ var import_lintRule = require("./src/lintRule");
25
+ var import_eslint = require("./src/eslint.config");
36
26
  // Annotate the CommonJS export names for ESM import in node:
37
27
  0 && (module.exports = {
38
28
  akanjsLint,
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { default as default2 } from "./src/lintRule";
2
- import { default as default3 } from "./src/lint.config";
1
+ import { akanjsLint } from "./src/lintRule";
2
+ import { eslintConfig } from "./src/eslint.config";
3
3
  export {
4
- default2 as akanjsLint,
5
- default3 as eslintConfig
4
+ akanjsLint,
5
+ eslintConfig
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/lint",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,8 +20,22 @@
20
20
  "@typescript-eslint/eslint-plugin": "^8.29.1",
21
21
  "@typescript-eslint/parser": "^8.29.1",
22
22
  "@typescript-eslint/utils": "^8.29.1",
23
+ "eslint": "^9.19.0",
24
+ "eslint-config-airbnb-typescript": "^18.0.0",
25
+ "eslint-config-next": "^15.1.3",
26
+ "eslint-config-prettier": "9.1.0",
27
+ "eslint-plugin-import": "^2.31.0",
28
+ "eslint-plugin-jsx-a11y": "^6.10.2",
29
+ "eslint-plugin-mocha": "^10.5.0",
30
+ "eslint-plugin-node": "^11.1.0",
31
+ "eslint-plugin-playwright": "^2.1.0",
32
+ "eslint-plugin-prettier": "^5.2.1",
33
+ "eslint-plugin-react": "^7.37.3",
34
+ "eslint-plugin-react-hooks": "5.1.0",
23
35
  "eslint-plugin-simple-import-sort": "^12.1.1",
24
- "eslint-plugin-unused-imports": "^4.1.4"
36
+ "eslint-plugin-unused-imports": "^4.1.4",
37
+ "jsonc-eslint-parser": "^2.4.0",
38
+ "typescript-eslint": "^8.20.0"
25
39
  },
26
40
  "exports": {
27
41
  ".": {
@@ -1,5 +1,5 @@
1
1
  import tsParser from "@typescript-eslint/parser";
2
- declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
2
+ export declare const eslintConfig: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
3
3
  plugins: {
4
4
  "@akanjs/lint": {
5
5
  rules: {
@@ -116,4 +116,3 @@ declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.
116
116
  settings?: undefined;
117
117
  ignores?: undefined;
118
118
  })[];
119
- export default _default;
@@ -25,24 +25,24 @@ 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 lint_config_exports = {};
29
- __export(lint_config_exports, {
30
- default: () => lint_config_default
28
+ var eslint_config_exports = {};
29
+ __export(eslint_config_exports, {
30
+ eslintConfig: () => eslintConfig
31
31
  });
32
- module.exports = __toCommonJS(lint_config_exports);
32
+ module.exports = __toCommonJS(eslint_config_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"));
36
36
  var import_parser = __toESM(require("@typescript-eslint/parser"));
37
37
  var import_eslint_plugin_simple_import_sort = __toESM(require("eslint-plugin-simple-import-sort"));
38
38
  var import_eslint_plugin_unused_imports = __toESM(require("eslint-plugin-unused-imports"));
39
- var import_lintRule = __toESM(require("./lintRule"));
39
+ var import_lintRule = require("./lintRule");
40
40
  const compat = new import_eslintrc.FlatCompat({
41
41
  baseDirectory: __dirname,
42
42
  recommendedConfig: import_js.default.configs.recommended,
43
43
  allConfig: import_js.default.configs.all
44
44
  });
45
- var lint_config_default = [
45
+ const eslintConfig = [
46
46
  {
47
47
  ignores: [
48
48
  "**/node_modules/**/*",
@@ -70,7 +70,7 @@ var lint_config_default = [
70
70
  ),
71
71
  {
72
72
  plugins: {
73
- "@akanjs/lint": import_lintRule.default,
73
+ "@akanjs/lint": import_lintRule.akanjsLint,
74
74
  "unused-imports": import_eslint_plugin_unused_imports.default,
75
75
  "simple-import-sort": import_eslint_plugin_simple_import_sort.default,
76
76
  "@typescript-eslint": import_eslint_plugin.default
@@ -139,3 +139,7 @@ var lint_config_default = [
139
139
  }
140
140
  }
141
141
  ];
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ eslintConfig
145
+ });
@@ -4,13 +4,13 @@ import typescriptEslint from "@typescript-eslint/eslint-plugin";
4
4
  import tsParser from "@typescript-eslint/parser";
5
5
  import simpleImportSort from "eslint-plugin-simple-import-sort";
6
6
  import unusedImports from "eslint-plugin-unused-imports";
7
- import akanjsLint from "./lintRule";
7
+ import { akanjsLint } from "./lintRule";
8
8
  const compat = new FlatCompat({
9
9
  baseDirectory: __dirname,
10
10
  recommendedConfig: js.configs.recommended,
11
11
  allConfig: js.configs.all
12
12
  });
13
- var lint_config_default = [
13
+ const eslintConfig = [
14
14
  {
15
15
  ignores: [
16
16
  "**/node_modules/**/*",
@@ -108,5 +108,5 @@ var lint_config_default = [
108
108
  }
109
109
  ];
110
110
  export {
111
- lint_config_default as default
111
+ eslintConfig
112
112
  };
@@ -1,4 +1,4 @@
1
- declare const akanLint: {
1
+ export declare const akanjsLint: {
2
2
  rules: {
3
3
  noImportExternalLibrary: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noImportExternalLibrary", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
4
4
  noImportClientFunctions: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noImportClientFunctions", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
@@ -6,4 +6,3 @@ declare const akanLint: {
6
6
  useClientByFile: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noUseClient" | "forceUseClient", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
7
7
  };
8
8
  };
9
- export default akanLint;
package/src/lintRule.js CHANGED
@@ -17,14 +17,14 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var lintRule_exports = {};
19
19
  __export(lintRule_exports, {
20
- default: () => lintRule_default
20
+ akanjsLint: () => akanjsLint
21
21
  });
22
22
  module.exports = __toCommonJS(lintRule_exports);
23
23
  var import_noImportClientFunctions = require("./rules/noImportClientFunctions");
24
24
  var import_noImportExternalLibrary = require("./rules/noImportExternalLibrary");
25
25
  var import_nonScalarPropsRestricted = require("./rules/nonScalarPropsRestricted");
26
26
  var import_useClientByFile = require("./rules/useClientByFile");
27
- const akanLint = {
27
+ const akanjsLint = {
28
28
  rules: {
29
29
  noImportExternalLibrary: import_noImportExternalLibrary.noImportExternalLibrary,
30
30
  noImportClientFunctions: import_noImportClientFunctions.noImportClientFunctions,
@@ -32,4 +32,7 @@ const akanLint = {
32
32
  useClientByFile: import_useClientByFile.useClientByFile
33
33
  }
34
34
  };
35
- var lintRule_default = akanLint;
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ akanjsLint
38
+ });
package/src/lintRule.mjs CHANGED
@@ -2,7 +2,7 @@ import { noImportClientFunctions } from "./rules/noImportClientFunctions";
2
2
  import { noImportExternalLibrary } from "./rules/noImportExternalLibrary";
3
3
  import { nonScalarPropsRestricted } from "./rules/nonScalarPropsRestricted";
4
4
  import { useClientByFile } from "./rules/useClientByFile";
5
- const akanLint = {
5
+ const akanjsLint = {
6
6
  rules: {
7
7
  noImportExternalLibrary,
8
8
  noImportClientFunctions,
@@ -10,7 +10,6 @@ const akanLint = {
10
10
  useClientByFile
11
11
  }
12
12
  };
13
- var lintRule_default = akanLint;
14
13
  export {
15
- lintRule_default as default
14
+ akanjsLint
16
15
  };
@@ -1,2 +0,0 @@
1
- export { default as akanjsLint } from "./src/lintRule";
2
- export { default as eslintConfig } from "./src/lint.config";
File without changes