-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
77 lines (73 loc) · 2.17 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
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
// Whitespace
"indent": ["error", 2],
"max-len": ["warn", { "code": 120 }],
"array-bracket-newline": ["warn", "consistent"],
"array-element-newline": ["warn", "consistent"],
"function-paren-newline": ["warn", "consistent"],
"object-curly-spacing": ["warn", "always", { "objectsInObjects": false }],
"function-call-argument-newline": "off",
"lines-between-class-members": "off",
"padded-blocks": "off",
"space-before-function-paren": ["warn", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
// Formatting
"curly": "error",
"arrow-parens": ["warn", "as-needed"],
"dot-location": ["warn", "property"],
"quote-props": "off",
"quotes": ["warn", "single"],
"semi": "warn",
"@typescript-eslint/semi": "warn",
// Style and pitfalls
"class-methods-use-this": "off",
"eqeqeq": "warn",
"func-style": ["warn", "declaration"],
"multiline-ternary": "off",
"no-console": "off",
"no-else-return": "off",
"no-invalid-this": "off",
"no-negated-condition": "off",
"no-promise-executor-return": "off",
"no-ternary": "off",
"no-throw-literal": "warn",
"no-undef-init": "off",
"no-undefined": "off",
"no-underscore-dangle": "off",
"no-unused-vars": ["warn", { "args": "none" }],
"no-use-before-define": "off",
"one-var": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"sort-keys": "off",
"@typescript-eslint/naming-convention": "warn",
// Stay out of my comments
"capitalized-comments": "off",
"line-comment-position": "off",
"lines-around-comment": "off",
"multiline-comment-style": "off",
"no-inline-comments": "off",
"no-warning-comments": "off",
// No limits
"max-classes-per-file": "off",
"max-lines-per-function": "off",
"max-lines": "off",
"max-params": "off",
"max-statements": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
// "webpack.config.js"
]
}