-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
59 lines (59 loc) · 1.56 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
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": [
"airbnb-typescript",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"no-console": 0,
"prefer-destructuring": ["error", {"object": true, "array": true}],
"object-curly-spacing": ["error", "always"],
"operator-linebreak": ["error", "before", { "overrides": { "=": "after" } }],
"no-unused-expressions": ["warn", {
"allowShortCircuit": true,
"allowTernary": true
}], // https://eslint.org/docs/rules/no-unused-expressions
"@typescript-eslint/prefer-interface": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true
}],
"@typescript-eslint/no-explicit-any": "warn",
"global-require": 0,
"@typescript-eslint/ban-ts-comment": 0,
"max-len": ["error", {"code": 120}],
"react/jsx-filename-extension": 0
},
"overrides": [
{
"files": [ "*.test.ts" ],
"rules": {
"@typescript-eslint/no-use-before-define": 0,
"no-multi-assign": 0,
"operator-linebreak": 0,
"no-unused-expressions": 0
}
}
],
"settings": {
"import/extensions": [".ts"],
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"node": {
"extensions": [".js",".ts"]
}
}
},
"env": {
"commonjs": true,
"node": true,
"jest": true,
"es6": true
}
}