-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
42 lines (42 loc) · 1.33 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint","prettier"],
"extends": ["airbnb", "plugin:@typescript-eslint/recommended", "airbnb-typescript", "prettier"],
"rules": {
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off", // package.json에 없는 패키지를 import할 때 에러 무시
"arrow-parens": ["error", "always"],
"object-curly-newline": "off",
"import/extensions": "off", //이상한 확장자 오류 꺼버림
"consistent-return": "off",
"no-useless-escape":"off",
"no-console":"off",
"react/button-has-type":"off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/naming-convention": "warn",
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": "off",
"react/require-default-props": "off"
},
"ignorePatterns": ["./tsconfig.json", "./jest.config.json", ".eslintrc"],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".ts", ".d.ts", ".tsx"]
}
}
}
}