-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.json
executable file
·39 lines (36 loc) · 1.06 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"env": {
"browser": true
},
"extends": ["airbnb-typescript/base", "plugin:prettier/recommended"],
"ignorePatterns": ["node_modules", "dist"],
"rules": {
"no-console": "error",
"no-alert": "error",
"eqeqeq": ["error", "always"],
"prefer-arrow-callback": "off",
"consistent-return": "off",
"prefer-destructuring": "off",
"no-param-reassign": "off",
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"class-methods-use-this": ["error", { "exceptMethods": ["getCardSize", "read"] }],
"max-classes-per-file": "off",
"import/extensions": [
"error",
"always",
{
"js": "never",
"ts": "never"
}
],
"import/order": ["error", { "newlines-between": "always" }],
"@typescript-eslint/ban-types": "error",
"@typescript-eslint/array-type": "error",
"prettier/prettier": "error",
// Disable rules that conflict with prettier
"@typescript-eslint/indent": "off"
}
}