-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
108 lines (108 loc) · 1.81 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
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
103
104
105
106
107
108
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true,
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"import/extensions": [
0,
"never",
{
"ignorePackages": true
}
],
"spaced-comment": [
"error",
"always"
],
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"no-underscore-dangle": [
"error",
{
"allow": [
"_id"
]
}
],
"camelcase": [
"error",
{
"allow": [
"oauth2_v2",
"user_id"
],
"properties": "never"
}
],
"func-names": [
"error",
"never"
],
"arrow-parens": [
"error",
"as-needed"
],
"semi": "error",
"no-extra-semi": 0,
"import/no-unresolved": "off",
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.ts",
"**/*.spec.ts"
]
}
],
"no-unused-vars": "off",
"dot-notation": "off",
"class-methods-use-this": "off",
"comma-dangle": [
"error",
{
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "ignore"
}
],
"handle-callback-err": "error",
"quotes": [
"error",
"single"
]
},
"overrides": [
{
"files": [
"**/*.ts"
],
"parser": "@typescript-eslint/parser",
"rules": {
"no-undef": "off"
}
}
],
"extends": [
"eslint:recommended",
"airbnb-base"
],
"plugins": [
"@typescript-eslint"
],
"settings": {}
}