-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (24 loc) · 850 Bytes
/
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
'use strict';
module.exports = {
env: {
node: true,
es6: true
},
extends: 'xo',
rules: {
'array-bracket-spacing': [ 'error', 'always' ],
'arrow-parens': [ 'error', 'always' ],
'brace-style': [ 'error', 'stroustrup', { 'allowSingleLine': true } ],
'capitalized-comments': 'off',
'curly': [ 'warn', 'multi-line' ],
'func-names': [ 'warn', 'as-needed' ],
'linebreak-style': [ 'warn', 'unix' ],
'no-multiple-empty-lines': [ 'error', { 'max': 3 } ],
'no-negated-condition': 'off',
'object-curly-spacing': [ 'error', 'always' ],
'padded-blocks': [ 'error', { 'blocks': 'never', 'classes': 'always', 'switches': 'never' } ],
'quote-props': [ 'error', 'consistent' ],
'radix': [ 'error', 'as-needed' ],
'unicorn/filename-case': [ 'error', { 'cases': { 'camelCase': true, 'kebabCase': true, 'pascalCase': true } } ]
}
};