-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
41 lines (41 loc) Β· 1.58 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "standard-with-typescript", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json",
"createDefaultProgram": true
},
"overrides": [
{
"files": ["*.ts", "*.tsx"]
}
],
"plugins": ["react"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/restrict-plus-operands": "off", // λΉ λ°μ΄ν°μ λν "+=" μ°μ°μλ₯Ό λ°©μ§νλ λ£°
"@typescript-eslint/restrict-template-expressions": "off", // any νμ
λ°μ΄ν°λ₯Ό literal template μ μ¬μ©νλ €κ³ νλ©΄ λ°λνλ λ£°
"@typescript-eslint/naming-convention": "off", // μΈλΆ API Response λ Naming Convention μ΄ λ€λ₯Ό μ μμ
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": { "attributes": false }}],
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off", // boolean eqeqeq λΉκ΅μ μλ¬ λ°μ X
"no-constant-condition": "off",
"no-useless-return": "off",
"no-unused-vars": "off",
"react/react-in-jsx-scope": "off",
"no-var": "error",
"eqeqeq": "error",
"no-console": ["error", { "allow": ["info", "warn", "error"] }]
}
}