-
Notifications
You must be signed in to change notification settings - Fork 1
/
base.js
52 lines (52 loc) · 1.51 KB
/
base.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
48
49
50
51
52
module.exports = {
extends: 'airbnb',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
'browser': true,
},
plugins: [
'babel',
'node',
'react',
'promise',
],
rules: {
indent: [ 2, 4, { SwitchCase: 1, MemberExpression: 0 }],
'space-in-parens': [ 2, 'always', { exceptions: [ '{}', '[]', '()' ] }],
strict: [ 2, 'global' ],
'brace-style': [ 2, 'stroustrup' ],
'array-bracket-spacing': [ 2, 'always', {
singleValue: false,
objectsInArrays: false,
arraysInArrays: false,
}],
'comma-dangle': [ 2, {
functions: 'never',
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
}],
'no-param-reassign': 0,
'no-underscore-dangle': 0,
'jsx-quotes': [ 2, 'prefer-single' ],
'react/jsx-indent': [ 2, 4 ],
'react/jsx-uses-react': 2,
'react/jsx-uses-vars': 2,
'react/jsx-filename-extension': [ 1, { 'extensions': [ '.js', '.jsx' ] }],
'function-paren-newline': 0,
'object-curly-newline': [ 'error', { 'consistent': true }],
'prefer-destructuring': [ 'error', {
'array': false,
'object': true,
}, {
'enforceForRenamedProperties': false
}]
},
};