-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (31 loc) · 997 Bytes
/
.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
module.exports = {
// If you don't use these rules in your JS project, you're an asshole.
'rules': {
'brace-style': [2, '1tbs'],
'camelcase': 1,
'comma-dangle': [2, 'never'],
'comma-spacing': [2, { 'before': false, 'after': true }],
'comma-style': [2, 'last'],
'consistent-return': 2,
'eqeqeq': 2,
'indent': [2, 4],
'linebreak-style': [2, 'unix'],
'no-else-return': 2,
'no-redeclare': 0,
'no-underscore-dangle': 0,
'object-curly-spacing': [2, 'always'],
'prefer-const': 1,
'quotes': [2, 'single'],
'semi': [2, 'always'],
'semi-spacing': [2, { 'before': false, 'after': true }],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': ['error', 'always'],
'space-in-parens': [2, 'never'],
'strict': 0
},
'env': {
'node': true,
'es6': true
},
'extends': 'eslint:recommended'
};