-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
102 lines (102 loc) · 2.53 KB
/
.eslintrc
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": "./",
"project": ["./tsconfig.json"]
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "@emotion"],
"rules": {
"@typescript-eslint/consistent-type-exports": [
"error",
{ "fixMixedExportsWithInlineTypeSpecifier": false }
],
"@typescript-eslint/consistent-type-imports": [
"error",
{ "prefer": "type-imports" }
],
"@typescript-eslint/no-misused-promises": "off", // ANCHOR: 무슨 옵션인지 정확히 알 수 없으나, callback 처리가 잘 안됨
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": null,
"leadingUnderscore": "allow"
}
],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"type",
"unknown"
],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": { "order": "asc", "caseInsensitive": false },
"warnOnUnassignedImports": true
}
],
"import/prefer-default-export": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-underscore-dangle": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function"
}
],
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"react/jsx-sort-props": [
"error",
{
"callbacksLast": true,
"shorthandFirst": true,
"multiline": "last",
"reservedFirst": true
}
]
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
}
}