@akanjs/config 0.0.76 → 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/package.json +2 -1
- package/src/eslint.config.ts +0 -117
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"module": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"kakao.maps.d.ts": "^0.1.40",
|
|
23
23
|
"next-pwa": "5.6.0",
|
|
24
24
|
"postcss": "8.5.3",
|
|
25
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
25
26
|
"tailwind-scrollbar": "4.0.2",
|
|
26
27
|
"tailwindcss-animation-delay": "^2.0.2",
|
|
27
28
|
"tailwindcss-radix": "^4.0.2",
|
package/src/eslint.config.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import { FlatCompat } from "@eslint/eslintrc";
|
|
3
|
-
import js from "@eslint/js";
|
|
4
|
-
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
5
|
-
import tsParser from "@typescript-eslint/parser";
|
|
6
|
-
import simpleImportSort from "eslint-plugin-simple-import-sort";
|
|
7
|
-
import unusedImports from "eslint-plugin-unused-imports";
|
|
8
|
-
import { akanjsLint } from "@akanjs/lint";
|
|
9
|
-
|
|
10
|
-
const compat = new FlatCompat({
|
|
11
|
-
baseDirectory: __dirname,
|
|
12
|
-
recommendedConfig: js.configs.recommended,
|
|
13
|
-
allConfig: js.configs.all,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export const eslintConfig = [
|
|
17
|
-
{
|
|
18
|
-
ignores: [
|
|
19
|
-
"**/node_modules/**/*",
|
|
20
|
-
"**/photoshop/**/*",
|
|
21
|
-
"**/public/**/*",
|
|
22
|
-
"**/ios/**/*",
|
|
23
|
-
"**/android/**/*",
|
|
24
|
-
"**/*.js",
|
|
25
|
-
"**/*.jsx",
|
|
26
|
-
"**/.next/**/*",
|
|
27
|
-
"**/typechain-types/**/*",
|
|
28
|
-
"**/script*.ts",
|
|
29
|
-
"data/**/*",
|
|
30
|
-
"dist/**/*",
|
|
31
|
-
"releases/**/*",
|
|
32
|
-
],
|
|
33
|
-
},
|
|
34
|
-
...compat.extends(
|
|
35
|
-
"next",
|
|
36
|
-
"next/core-web-vitals",
|
|
37
|
-
"eslint:recommended",
|
|
38
|
-
"plugin:@typescript-eslint/recommended-type-checked",
|
|
39
|
-
"plugin:@typescript-eslint/strict-type-checked",
|
|
40
|
-
"plugin:@typescript-eslint/stylistic-type-checked"
|
|
41
|
-
),
|
|
42
|
-
{
|
|
43
|
-
plugins: {
|
|
44
|
-
"@akanjs/lint": akanjsLint,
|
|
45
|
-
"unused-imports": unusedImports,
|
|
46
|
-
"simple-import-sort": simpleImportSort,
|
|
47
|
-
"@typescript-eslint": typescriptEslint,
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
languageOptions: {
|
|
51
|
-
parser: tsParser,
|
|
52
|
-
ecmaVersion: 6,
|
|
53
|
-
sourceType: "module",
|
|
54
|
-
|
|
55
|
-
parserOptions: {
|
|
56
|
-
project: true,
|
|
57
|
-
projectService: true,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
settings: {
|
|
62
|
-
"import/parsers": {
|
|
63
|
-
"@typescript-eslint/parser": [".ts", ".tsx"],
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
"import/resolver": {
|
|
67
|
-
typescript: "./tsconfig.json",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
73
|
-
ignores: ["**/*.js", "**/*.jsx"],
|
|
74
|
-
|
|
75
|
-
rules: {
|
|
76
|
-
"no-console": "error",
|
|
77
|
-
"@akanjs/lint/useClientByFile": "error",
|
|
78
|
-
"@akanjs/lint/noImportClientFunctions": "error",
|
|
79
|
-
"@akanjs/lint/nonScalarPropsRestricted": "error",
|
|
80
|
-
"@akanjs/lint/noImportExternalLibrary": "error",
|
|
81
|
-
"@typescript-eslint/no-inferrable-types": "off",
|
|
82
|
-
"@typescript-eslint/restrict-template-expressions": "off",
|
|
83
|
-
"@typescript-eslint/consistent-indexed-object-style": "off",
|
|
84
|
-
"@typescript-eslint/no-extraneous-class": "off",
|
|
85
|
-
"@typescript-eslint/no-unsafe-enum-comparison": "off",
|
|
86
|
-
"@typescript-eslint/prefer-promise-reject-errors": "off",
|
|
87
|
-
"@typescript-eslint/no-misused-promises": ["error", { checksVoidReturn: false }],
|
|
88
|
-
"react/display-name": "off",
|
|
89
|
-
"react-hooks/exhaustive-deps": "off",
|
|
90
|
-
"@next/next/no-html-link-for-pages": "off",
|
|
91
|
-
"jsx-a11y/alt-text": [0],
|
|
92
|
-
"unused-imports/no-unused-imports": "warn",
|
|
93
|
-
"no-unused-vars": "off",
|
|
94
|
-
"simple-import-sort/imports": "warn",
|
|
95
|
-
"simple-import-sort/exports": "off",
|
|
96
|
-
"import/first": "warn",
|
|
97
|
-
"import/newline-after-import": "warn",
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
...compat.extends("plugin:@typescript-eslint/recommended").map((config) => ({
|
|
101
|
-
...config,
|
|
102
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
103
|
-
})),
|
|
104
|
-
{
|
|
105
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
106
|
-
rules: {
|
|
107
|
-
"import/no-duplicates": "warn",
|
|
108
|
-
"import/no-unresolved": "off",
|
|
109
|
-
"import/named": "off",
|
|
110
|
-
"import/namespace": "off",
|
|
111
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
112
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
113
|
-
"@typescript-eslint/no-misused-spread": "off",
|
|
114
|
-
"react-hooks/rules-of-hooks": "off",
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
];
|