-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
49 lines (49 loc) · 1.28 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
module.exports = {
extends: [
'recommended/esnext',
'recommended/esnext/style-guide',
'recommended/node',
'recommended/node/style-guide',
'recommended/react-native',
'recommended/react-native/style-guide'
],
rules: {
'arrow-parens': ['error', 'always'],
'camelcase': 'off',
'curly': ['error', 'all'],
'indent': ['error', 2, {
SwitchCase: 1,
}],
'max-len': ['error', {
code: 100,
tabWidth: 2,
ignorePattern: '`.*?`',
}],
'no-console': 'warn',
'no-duplicate-imports': 'off',
'no-extra-parens': 'off',
'no-invalid-this': 'off',
'object-property-newline': ['error', {
allowMultiplePropertiesPerLine: true,
}],
'operator-linebreak': 'off',
'sort-imports': 'off',
'space-before-function-paren': 'off',
'template-curly-spacing': 'off',
'react/jsx-indent': [2, 2],
'react/jsx-indent-props': [2, 2],
'react/jsx-curly-spacing': [2, 'never'],
'react-native/no-inline-styles': 'off',
'react/jsx-max-props-per-line': 'off',
'react/jsx-sort-props': 'off',
'react/no-unused-prop-types': 'off',
'react/jsx-handler-names': 'off',
'react/jsx-no-bind': 'off',
},
globals: {
Position: true,
ReactClass: true,
chrome: true,
TimeoutID: true,
}
};