-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
executable file
·56 lines (55 loc) · 1.14 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
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
extends: [
'eslint:recommended',
'airbnb',
'plugin:react/recommended'
],
plugins: [
'react'
],
env: {
browser: true,
node: true,
es6: true
},
globals: {
__: true,
axios: true,
__I18N_LANG__: true
},
rules: {
'max-len': [1, 120],
'no-console': 0,
'camelcase': 1,
'quotes': [1, 'single'],
'no-unused-vars': 1,
'no-empty-function': 1,
'arrow-body-style': [1, 'as-needed'],
'react/prop-types': 0,
'react/prefer-stateless-function': 1,
'react/sort-comp': 1,
'react/jsx-boolean-value': 0,
'import/no-unresolved': 0,
'newline-per-chained-call': 0,
'jsx-quotes': [1, 'prefer-single'],
'one-var': 0,
'comma-dangle': 0,
'consistent-return': 1,
'spaced-comment': 1,
'no-underscore-dangle': 1,
'no-param-reassign': 1,
'no-sequences': 0,
'no-use-before-define': 1,
'no-unused-expressions': 0,
'no-useless-constructor': 1,
'one-var-declaration-per-line': 0
}
};