-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 1.15 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
{
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier"],
"plugins": ["prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"prettier/prettier": ["error"],
// * All JS rules
"no-console": "off",
"no-underscore-dangle": 0,
"no-warning-comments": [
2,
{ "terms": ["temp", "no-commit", "dont-commit"], "location": "start" }
],
"radix": 0,
"global-require": 0,
"quote-props": ["error", "consistent-as-needed"],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
// "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"object-shorthand": ["error", "properties"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
},
"env": {
"node": true,
"jest": true
},
"settings": {
"import/resolver": {
"alias": {
"map": [["~", "./src"]],
"extensions": [".ts", ".js", ".json"]
}
}
}
}