-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
47 lines (45 loc) · 1.05 KB
/
index.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
module.exports = {
extends: [
'prettier',
'plugin:compat/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'standard',
],
plugins: ['compat', 'html', 'prettier', 'import'],
env: {
browser: true,
es6: true
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
'no-console': ['error', { allow: ['error', 'info', 'warn'] }],
'no-new': ['error'],
'no-unused-vars': ['error'],
'no-var': ['error'],
'object-shorthand': ['error', 'always'],
'prefer-arrow-callback': ['error', { allowNamedFunctions: true }],
'prefer-const': ['error'],
'prefer-template': ['error'],
'lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true },
],
// Import
'import/no-default-export': ['error'],
'import/order': ['error', {
'groups': [
'builtin',
'external',
['internal', 'parent'],
'sibling',
],
'newlines-between': 'always'
}],
},
globals: {
document: true,
window: true
}
}