-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
32 lines (32 loc) · 776 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
32
module.exports = {
env: {
'es6': true
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 6,
ecmaFeatures: {
'jsx': true
}
},
rules: {
'no-mixed-spaces-and-tabs': 2,
'indent': [2, 2],
'camelcase': 2,
'curly': [2, 'multi-line'],
'eqeqeq': [2, 'smart'],
'no-extra-semi': 2,
'brace-style': [2, '1tbs', { 'allowSingleLine': true }],
'semi-spacing': 1,
'key-spacing': 1,
'block-spacing': 1,
'comma-spacing': 1,
'no-multi-spaces': 1,
'space-before-blocks': 1,
'keyword-spacing': [1, { 'before': true, 'after': true }],
'space-infix-ops': 1,
'one-var': [1, { 'uninitialized': 'always', 'initialized': 'never' }],
'comma-style': [2, 'last'],
'quotes': [1, 'single']
}
};