-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
91 lines (91 loc) · 2.7 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
87
88
89
90
91
module.exports = {
extends: [ 'esnext', 'esnext/style-guide', 'node', 'node/style-guide' ],
plugins: [
'prefer-arrow',
'no-null'
],
env: {
browser: false,
node: true
},
rules: {
'no-console': 'off', // cli app only,
'quotes': [ 'error', 'single', { allowTemplateLiterals: true,
avoidEscape: true } ],
'no-return-await': 'error',
'arrow-body-style': 'error',
'arrow-parens': [
'error',
'always'
],
'camelcase': [ 'warn', { ignoreImports: true } ],
'comma-dangle': [
'error',
{
objects: 'never',
arrays: 'never',
functions: 'never'
}
],
'prefer-arrow/prefer-arrow-functions': 'error',
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'quote-props': [
'error',
'consistent-as-needed'
],
'no-var': 'error',
'new-parens': 'error',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-debugger': 'error',
'no-empty': 'error',
'no-eval': 'error',
'no-multiple-empty-lines': 'warn',
'no-new-wrappers': 'error',
'no-redeclare': 'error',
'no-shadow': [
'error',
{
hoist: 'all'
}
],
'no-null/no-null': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'error',
'no-unsafe-finally': 'error',
'no-unused-labels': 'error',
'spaced-comment': 'error',
'use-isnan': 'error',
'max-lines': [
'error',
{
max: 300,
skipBlankLines: true,
skipComments: true
}
],
'max-len': [
'warn',
{
code: 140
}
],
'dot-notation': 'error',
'eqeqeq': 'error',
'eol-last': 'error',
'linebreak-style': [ 'error', 'unix' ],
'block-spacing': [ 'error', 'always' ],
'object-curly-spacing': [ 'error', 'always' ],
'import/no-deprecated': 'warn', // eslint deprecation rule sucks. just wrns on deprecated IMPORTs
'tsdoc/syntax': 'off',
'indent': [ 'error', 4 ],
'brace-style': [ 'error', 'stroustrup', { allowSingleLine: false } ],
'sort-imports': 'off', // we have auto-import and hiding in IDEs nowadays. WHO THE FUCK CARES?!,
'curly': [ 'error', 'all' ],
'no-process-exit': 'off',
'semi': [ 'error', 'always' ]
}
};