-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
57 lines (57 loc) · 1.78 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
{
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended", "eslint-config-prettier"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "drill4j"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {}
}
},
"rules": {
"drill4j/license-header": ["error"],
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": [
2,
{
"devDependencies": ["**/spec.tsx", "**/spec.ts", "__tests__/**/*"]
}
],
"import/extensions": 0,
"indent": "off",
// "@typescript-eslint/indent": ["error", 2], // disabled due to https://github.com/typescript-eslint/typescript-eslint/issues/1824
"no-shadow": "off",
// "@typescript-eslint/no-shadow": ["error"], // TODO fix no-shadow https://github.com/typescript-eslint/typescript-eslint/issues/2466#issuecomment-685876323
"no-warning-comments": [1, { "terms": ["fixme"], "location": "start" }],
"eofline": 0,
"arrow-parens": 0,
"ordered-imports": 0,
"object-literal-sort-keys": 0,
"no-empty": 2,
"no-unused-expression": 0,
"linebreak-style": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"max-len": [
"error",
{
"code": 140
}
],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-empty-function": 0,
"no-unused-expressions": 0,
"operator-linebreak": 0,
"implicit-arrow-linebreak": 0,
"no-implicit-dependencies": 0,
"no-use-before-define": 0,
"class-methods-use-this": 0,
"no-restricted-syntax": 0,
"no-await-in-loop": 0,
"no-continue": 0,
"no-underscore-dangle": 0,
"no-console": 0,
"func-names": ["warn", "never"]
}
}