-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (61 loc) · 1.83 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "@typescript-eslint"],
"env": {
"browser": true,
"node": true
},
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"curly": ["error", "all"],
"default-case": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-else-return": "off",
"no-nested-ternary": "off",
"no-restricted-syntax": "off",
"prefer-destructuring": "off",
"prettier/prettier": ["error", {"singleQuote": false, "parser": false}],
// "import/extensions": "off",
"import/extensions": [
"error",
"ignorePackages",
{ "js": "never", "jsx": "never", "ts": "never", "tsx": "never" }
],
"import/no-cycle": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"no-useless-constructor": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-useless-constructor": ["error"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"no-underscore-dangle": [
"error",
{
"allow": ["_privateVar", "_id", "_source", "_client"]
}
],
"camelcase": ["error", { "allow": ["doc_count"] }]
},
"settings": {
"import/resolver": {
"typescript": {} // eslint-import-resolver-typescript 추가
}
}
}