-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
64 lines (64 loc) · 2.2 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
module.exports = {
extends: ['alloy', 'alloy/typescript', 'prettier', 'eslint:recommended'],
env : {
node: true,
},
'rules': {
'max-len': [
'error',
{
code: 256,
},
],
quotes : ['error', 'single'],
indent : ['error', 4],
semi : ['error', 'always'],
'comma-dangle' : ['error', 'always-multiline'],
'no-debugger' : process.env.NODE_ENV === 'production' ? 'error' : 'off',
'padded-blocks' : ['error', 'never'],
'linebreak-style' : ['error', process.platform === 'win32' ? 'windows' : 'unix'],
'lines-between-class-members': [
'error',
'always',
{
exceptAfterSingleLine: true,
},
],
'class-methods-use-this': 'off',
'no-trailing-spaces' : [
'error',
{
skipBlankLines: true,
ignoreComments: true,
},
],
'key-spacing': [
'error',
{
align: 'colon',
},
],
'arrow-parens' : ['error', 'always'],
'no-underscore-dangle' : 'off',
'space-in-parens' : 'off',
'no-prototype-builtins' : 'off',
'import/no-unresolved' : 'off',
'import/extensions' : 'off',
'no-multiple-empty-lines': 'off',
'no-unneeded-ternary' : 'error',
'brace-style' : [
'error',
'1tbs',
],
curly : ['error', 'all'],
'no-else-return' : 'error',
'no-lonely-if' : 'error',
'max-params' : ['warn', 5],
'import/no-named-as-default' : 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export' : 'off',
'require-jsdoc' : 'off',
'node/no-extraneous-import' : 'off',
'no-process-exit' : 'off',
},
};