forked from builder-247/node-autotip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
39 lines (38 loc) · 1.18 KB
/
eslint.config.js
File metadata and controls
39 lines (38 loc) · 1.18 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
37
38
39
import stylistic from '@stylistic/eslint-plugin'
export default [
{
rules: {
'no-trailing-spaces': 'error',
'eol-last': 'error',
'@stylistic/semi': ['error', 'never'],
'no-async-promise-executor': 'off',
'no-case-declarations': 'off',
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': ['error', 'never'],
'@stylistic/member-delimiter-style': ['error', {
multiline: {
delimiter: 'none',
requireLast: false
},
singleline: {
delimiter: 'comma',
requireLast: false
}
}],
'@stylistic/space-infix-ops': ['error'],
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}],
'quotes': [
'error', 'single',
{ avoidEscape: true }
],
'@stylistic/indent': ['error', 4]
},
plugins: {
'@stylistic': stylistic
}
}
]