-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
66 lines (65 loc) · 1.25 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import prettier from "eslint-config-prettier";
import globals from "globals";
export default [
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
ignores: [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"coverage/**",
"**/.next/**",
".husky/**/*.js",
// frontend/dist 관련 모든 파일을 명확하게 무시
"frontend/dist/**",
"**/frontend/dist/**/*.*",
// dist 디렉토리 아래의 모든 것을 재귀적으로 무시
"dist/**/*",
// assets 디렉토리도 명시적으로 무시
"**/assets/**",
],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
process: "readonly",
},
},
},
{
files: [".husky/**/*.js"],
rules: {
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off",
},
},
{
rules: {
"no-process-env": "off",
"no-process-exit": "off",
},
},
{
files: ["main.js", "electron/**/*"],
languageOptions: {
globals: {
...globals.node,
},
},
},
{
files: ["src/**/*"],
languageOptions: {
globals: {
...globals.browser,
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
prettier,
];