-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
51 lines (51 loc) · 1.21 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
module.exports = {
extends: [
'airbnb',
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ios.js', '.android.js'],
},
},
},
parser: 'babel-eslint',
plugins: [],
rules: {
'no-restricted-syntax': 0,
'import/no-cycle': 0,
radix: 0,
'no-shadow': 'off',
'no-param-reassign': 0,
'no-plusplus': 0,
'no-use-before-define': 0,
'prefer-destructuring': 0,
'global-require': 0,
'max-len': [2, 160, 4],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.android.js', '.ios.js'] }],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'react/forbid-prop-types': 0,
'no-underscore-dangle': 0,
'no-nested-ternary': 0,
'import/named': 0,
'no-console': 0,
camelcase: 0,
'no-bitwise': 0,
'consistent-return': 0,
'guard-for-in': 0,
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
'prefer-const': 1,
'react/prop-types': 0,
'no-unused-expressions': 0,
eqeqeq: 0,
},
globals: {
__DEV__: true,
fetch: true,
window: true,
FormData: true,
SCREEN_HEIGHT: true,
SCREEN_WIDTH: true
},
};