forked from MetaMask/metamask-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
138 lines (138 loc) · 3.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// eslint-disable-next-line import/no-commonjs
module.exports = {
root: true,
parser: 'babel-eslint',
extends: ['@react-native-community', 'eslint:recommended', 'plugin:import/warnings', 'plugin:react/recommended'],
globals: {
process: true,
beforeAll: true,
afterAll: true,
describe: true,
expect: true,
it: true,
jasmine: true,
jest: true,
spyOn: true,
element: true,
by: true,
beforeEach: true,
device: true,
waitFor: true,
__DEV__: true
},
settings: {
'import/resolver': {
typescript: {} // this loads <rootdir>/tsconfig.json to eslint
}
},
rules: {
'no-catch-shadow': 0,
'no-console': ['warn', { allow: ['warn', 'error'] }],
quotes: [
'error',
'single',
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
'comma-dangle': 0,
curly: 0,
'no-shadow': 0,
'no-bitwise': 0,
'class-methods-use-this': 0,
'eol-last': 1,
'import/no-named-as-default': 0,
'no-invalid-this': 0,
'no-new': 0,
'react/jsx-handler-names': 0,
'react/no-did-mount-set-state': 0,
'react/prefer-stateless-function': 0,
'require-atomic-updates': 0,
'array-callback-return': 2,
'arrow-body-style': 2,
'dot-notation': 2,
eqeqeq: 2,
'import/no-amd': 2,
'import/no-commonjs': 2,
'import/no-duplicates': 2,
'import/no-extraneous-dependencies': 2,
'import/no-mutable-exports': 2,
'import/no-namespace': 2,
'import/no-nodejs-modules': 2,
'import/prefer-default-export': 2,
'no-alert': 2,
'no-constant-condition': [
2,
{
checkLoops: false
}
],
'no-duplicate-imports': 2,
'no-empty-function': 2,
'no-else-return': 2,
'no-eval': 2,
'no-extend-native': 2,
'no-extra-bind': 2,
'no-global-assign': 2,
'no-implicit-globals': 2,
'no-implied-eval': 2,
'no-lonely-if': 2,
'no-loop-func': 2,
'no-new-func': 2,
'no-new-wrappers': 2,
'no-proto': 2,
'no-script-url': 2,
'no-self-compare': 2,
'no-throw-literal': 2,
'no-unmodified-loop-condition': 2,
'no-unneeded-ternary': [
2,
{
defaultAssignment: false
}
],
'no-unsafe-negation': 2,
'no-unused-expressions': 'off',
'no-use-before-define': [2, 'nofunc'],
'no-useless-call': 2,
'no-useless-computed-key': 2,
'no-useless-concat': 2,
'no-useless-constructor': 2,
'no-useless-rename': 2,
'no-var': 2,
'no-with': 2,
'object-shorthand': 2,
'operator-assignment': 2,
'prefer-arrow-callback': 2,
'prefer-const': 2,
'prefer-rest-params': 2,
'prefer-spread': 2,
'import/no-unresolved': 2,
'eslint-comments/no-unlimited-disable': 0,
'eslint-comments/no-unused-disable': 0,
'react-native/no-color-literals': 2,
'react-native/no-inline-styles': 2,
'react-native/no-unused-styles': 2,
'react-native/split-platform-components': 2,
'react/jsx-boolean-value': 2,
'react/jsx-key': 1,
'react/jsx-no-bind': 0,
'react/jsx-pascal-case': 2,
'react/jsx-wrap-multilines': 2,
'react/no-danger': 2,
'react/no-did-update-set-state': 2,
'react/no-find-dom-node': 2,
'react/no-multi-comp': [
2,
{
ignoreStateless: true
}
],
'react/no-render-return-value': 2,
'react/no-string-refs': 2,
'react/no-unused-prop-types': 2,
'react/prefer-es6-class': 2,
radix: 0
}
};