-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.js
64 lines (63 loc) · 1.61 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
parser: 'babel-eslint',
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:flowtype/recommended'
],
plugins: [
'react',
'flowtype',
'flowtype-errors'
],
rules: {
'react/prop-types': 1,
'flowtype-errors/show-errors': 2,
'array-bracket-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'never'],
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', {before: true, after: true}],
camelcase: 'off',
'comma-dangle': 'off',
'consistent-return': 'off',
curly: 'off',
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
'key-spacing': 'off',
'keyword-spacing': 'error',
'max-len': ['error', 110, 2],
'no-case-declarations': 'off',
'no-cond-assign': 'off',
'no-console': 'off',
'no-constant-condition': 'off',
'no-empty': 'off',
'no-fallthrough': 'off',
'no-inner-declarations': 'off',
'no-multi-spaces': 'off',
'no-labels': 'off',
'no-loop-func': 'off',
'no-process-exit': 'off',
'no-return-assign': 'off',
'no-shadow': 'off',
'no-trailing-spaces': 'error',
'no-underscore-dangle': 'off',
'no-unreachable': 'off',
'no-use-before-define': 'off',
'no-var': 'error',
'prefer-const': 'error',
quotes: ['error', 'single', {allowTemplateLiterals: true}],
'space-before-blocks': ['error', 'always'],
'space-infix-ops': 'error',
semi: ['error', 'always'],
strict: 'off'
},
parserOptions: {
ecmaVersion: 8,
jsx: true
},
env: {
mocha: true,
node: true,
es6: true,
}
};