@akanjs/lint 0.0.84 → 0.0.86

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/jest.config.js CHANGED
@@ -22,7 +22,7 @@ __export(jest_config_exports, {
22
22
  module.exports = __toCommonJS(jest_config_exports);
23
23
  var jest_config_default = {
24
24
  displayName: "eslint-rules",
25
- // preset: "../../pkgs/@akanjs/config/src/jest.preset.js",
25
+ // preset: "../../pkgs/@akanjs/config/jest.preset.js",
26
26
  transform: {
27
27
  "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
28
28
  },
package/jest.config.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  var jest_config_default = {
2
2
  displayName: "eslint-rules",
3
- // preset: "../../pkgs/@akanjs/config/src/jest.preset.js",
3
+ // preset: "../../pkgs/@akanjs/config/jest.preset.js",
4
4
  transform: {
5
5
  "^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
6
6
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/lint",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -43,4 +43,4 @@
43
43
  "import": "./index.mjs"
44
44
  }
45
45
  }
46
- }
46
+ }
@@ -1,118 +1,2 @@
1
- import tsParser from "@typescript-eslint/parser";
2
- export declare const eslintConfig: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | {
3
- plugins: {
4
- "@akanjs/lint": {
5
- rules: {
6
- noImportExternalLibrary: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noImportExternalLibrary", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
7
- noImportClientFunctions: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noImportClientFunctions", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
8
- nonScalarPropsRestricted: import("@typescript-eslint/utils/ts-eslint").RuleModule<"nonScalarPropsRestricted", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
9
- useClientByFile: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noUseClient" | "forceUseClient", [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
10
- };
11
- };
12
- "unused-imports": import("eslint").ESLint.Plugin;
13
- "simple-import-sort": import("eslint").ESLint.Plugin;
14
- "@typescript-eslint": {
15
- configs: Record<string, import("@typescript-eslint/utils/ts-eslint").ClassicConfig.Config>;
16
- meta: import("@typescript-eslint/utils/ts-eslint").FlatConfig.PluginMeta;
17
- rules: typeof import("@typescript-eslint/eslint-plugin/use-at-your-own-risk/rules");
18
- };
19
- };
20
- languageOptions: {
21
- parser: typeof tsParser;
22
- ecmaVersion: number;
23
- sourceType: string;
24
- parserOptions: {
25
- project: boolean;
26
- projectService: boolean;
27
- };
28
- };
29
- settings: {
30
- "import/parsers": {
31
- "@typescript-eslint/parser": string[];
32
- };
33
- "import/resolver": {
34
- typescript: string;
35
- };
36
- };
37
- files?: undefined;
38
- ignores?: undefined;
39
- rules?: undefined;
40
- } | {
41
- files: string[];
42
- ignores: string[];
43
- rules: {
44
- "no-console": string;
45
- "@akanjs/lint/useClientByFile": string;
46
- "@akanjs/lint/noImportClientFunctions": string;
47
- "@akanjs/lint/nonScalarPropsRestricted": string;
48
- "@akanjs/lint/noImportExternalLibrary": string;
49
- "@typescript-eslint/no-inferrable-types": string;
50
- "@typescript-eslint/restrict-template-expressions": string;
51
- "@typescript-eslint/consistent-indexed-object-style": string;
52
- "@typescript-eslint/no-extraneous-class": string;
53
- "@typescript-eslint/no-unsafe-enum-comparison": string;
54
- "@typescript-eslint/prefer-promise-reject-errors": string;
55
- "@typescript-eslint/no-misused-promises": (string | {
56
- checksVoidReturn: boolean;
57
- })[];
58
- "react/display-name": string;
59
- "react-hooks/exhaustive-deps": string;
60
- "@next/next/no-html-link-for-pages": string;
61
- "jsx-a11y/alt-text": number[];
62
- "unused-imports/no-unused-imports": string;
63
- "no-unused-vars": string;
64
- "simple-import-sort/imports": string;
65
- "simple-import-sort/exports": string;
66
- "import/first": string;
67
- "import/newline-after-import": string;
68
- "import/no-duplicates"?: undefined;
69
- "import/no-unresolved"?: undefined;
70
- "import/named"?: undefined;
71
- "import/namespace"?: undefined;
72
- "@typescript-eslint/no-explicit-any"?: undefined;
73
- "@typescript-eslint/no-unused-vars"?: undefined;
74
- "@typescript-eslint/no-misused-spread"?: undefined;
75
- "react-hooks/rules-of-hooks"?: undefined;
76
- };
77
- plugins?: undefined;
78
- languageOptions?: undefined;
79
- settings?: undefined;
80
- } | {
81
- files: string[];
82
- rules: {
83
- "import/no-duplicates": string;
84
- "import/no-unresolved": string;
85
- "import/named": string;
86
- "import/namespace": string;
87
- "@typescript-eslint/no-explicit-any": string;
88
- "@typescript-eslint/no-unused-vars": string;
89
- "@typescript-eslint/no-misused-spread": string;
90
- "react-hooks/rules-of-hooks": string;
91
- "no-console"?: undefined;
92
- "@akanjs/lint/useClientByFile"?: undefined;
93
- "@akanjs/lint/noImportClientFunctions"?: undefined;
94
- "@akanjs/lint/nonScalarPropsRestricted"?: undefined;
95
- "@akanjs/lint/noImportExternalLibrary"?: undefined;
96
- "@typescript-eslint/no-inferrable-types"?: undefined;
97
- "@typescript-eslint/restrict-template-expressions"?: undefined;
98
- "@typescript-eslint/consistent-indexed-object-style"?: undefined;
99
- "@typescript-eslint/no-extraneous-class"?: undefined;
100
- "@typescript-eslint/no-unsafe-enum-comparison"?: undefined;
101
- "@typescript-eslint/prefer-promise-reject-errors"?: undefined;
102
- "@typescript-eslint/no-misused-promises"?: undefined;
103
- "react/display-name"?: undefined;
104
- "react-hooks/exhaustive-deps"?: undefined;
105
- "@next/next/no-html-link-for-pages"?: undefined;
106
- "jsx-a11y/alt-text"?: undefined;
107
- "unused-imports/no-unused-imports"?: undefined;
108
- "no-unused-vars"?: undefined;
109
- "simple-import-sort/imports"?: undefined;
110
- "simple-import-sort/exports"?: undefined;
111
- "import/first"?: undefined;
112
- "import/newline-after-import"?: undefined;
113
- };
114
- plugins?: undefined;
115
- languageOptions?: undefined;
116
- settings?: undefined;
117
- ignores?: undefined;
118
- })[];
1
+ import type { Linter } from "eslint";
2
+ export declare const eslintConfig: Linter.Config[];