-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
31 lines (31 loc) · 947 Bytes
/
.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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"project": "./tsconfig.json"
},
"env": {
"es6": true
},
"ignorePatterns": "dist/**/*",
"rules": {
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
"indent": ["warn", "tab", { "SwitchCase": 1 }],
"max-len": ["warn", {
"code": 80,
"tabWidth": 1,
"ignoreStrings": true,
"ignoreComments": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-tabs": ["error", { "allowIndentationTabs": true }]
}
}