-
Notifications
You must be signed in to change notification settings - Fork 218
/
.eslintrc.js
86 lines (86 loc) · 2.75 KB
/
.eslintrc.js
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
module.exports = {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"prettier",
"@typescript-eslint"
],
"extends": [
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"rules": {
"prettier/prettier": [
"error",
{
"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"printWidth": 100,
"proseWrap": "preserve",
"requirePragma": false,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
},
{
"usePrettierrc": false
},
],
"quotes": [
1,
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
// Disabling because this rule is extremely slow.
"import/no-cycle": "off",
// Disabling because this rule is slow and not a common violation.
"import/no-named-as-default": "off",
// Disabling because this rule is slow and not a common violation.
"import/no-named-as-default-member": "off",
// This rule is already covered by the TypeScript compiler.
"import/default": "off",
// This rule is already covered by the TypeScript compiler.
"import/no-unresolved": "off",
"operator-linebreak": "off",
"no-param-reassign": "off",
"implicit-arrow-linebreak": "off",
"max-len": "off",
"indent": "off",
"no-shadow": "off",
"arrow-parens": "off",
"no-confusing-arrow": "off",
"no-use-before-define": "off",
"object-curly-newline": "off",
"function-paren-newline": "off",
"import/prefer-default-export": "off",
"max-classes-per-file": "off",
"react/jsx-filename-extension": "off",
"import/extensions": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error"
}
}