forked from EdgeApp/edge-react-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
27 lines (27 loc) · 947 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
module.exports = {
extends: ['standard', 'plugin:flowtype/recommended', 'plugin:react/recommended', 'plugin:react-native/all'],
globals: {
fetch: true
},
parser: 'babel-eslint',
plugins: ['flowtype', 'standard', 'react', 'react-native'],
rules: {
'flowtype/generic-spacing': 'off',
'flowtype/require-valid-file-annotation': [2, 'always'],
'flowtype/semi': [2, 'never'],
'no-throw-literal': 'error',
'no-var': 'error',
'prefer-const': 'error',
'react-native/no-inline-styles': 0,
'react-native/no-unused-styles': 0,
'react-native/split-platform-components': 2,
'react/jsx-indent-props': ['error', 2],
'react/jsx-no-duplicate-props': ['error', { ignoreCase: true }],
'react/no-array-index-key': 'error',
'react/no-string-refs': 0,
'react/no-typos': 'error',
'react/prop-types': 0,
'react/self-closing-comp': ['error', { component: true }],
camelcase: 'error'
}
}