-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
46 lines (46 loc) · 1.51 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/standard"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
"max-len": ["error", { "code": 120 }],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-duplicate-imports": "error",
"@typescript-eslint/no-empty-interface": "off",
"semi": "off",
"@typescript-eslint/semi": ["error", "never"],
"quotes": "off",
"@typescript-eslint/quotes": ["error", "single", { "allowTemplateLiterals": true, "avoidEscape": true }],
"object-curly-spacing": ["error", "always"],
"computed-property-spacing": ["error", "never"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": { "delimiter": "none", "requireLast": false },
"singleline": { "delimiter": "semi", "requireLast": false }
}
],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/camelcase": "off",
"max-lines-per-function": ["error", 100],
"@typescript-eslint/explicit-function-return-type": "off"
}
}