forked from Ortus-Solutions/coding-standards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
36 lines (36 loc) · 1.11 KB
/
.eslintrc
File metadata and controls
36 lines (36 loc) · 1.11 KB
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
rules: {
'prefer-promise-reject-errors': 'off',
'semi' : [ 'error', 'always' ],
'indent' : [ 'error', 'tab' ],
'space-in-parens' : [ 'error', 'always' ],
'array-bracket-spacing' : [ 'error', 'always', {
'singleValue' : true,
'arraysInArrays' : true,
'objectsInArrays': true
}],
'object-curly-spacing' : [ 'error', 'always', {
'objectsInObjects': true,
'arraysInObjects' : true
}],
'no-trailing-spaces' : [ 'error', {
'skipBlankLines': false,
'ignoreComments': false
}],
'space-before-function-paren' : [ 'error', {
"anonymous" : 'never',
"named" : 'never',
"asyncArrow": 'never'
}],
'keyword-spacing' : [ 'error', { 'after': true, 'before': true } ],
'key-spacing' : [ 'error', {
"singleLine": {
'beforeColon': false,
'afterColon' : true
},
"multiLine": {
'beforeColon': true,
'afterColon' : true,
'align' : 'colon'
}
}]
}