forked from ballad89/react-native-media-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
46 lines (46 loc) · 1.23 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"__DEV__": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"react-native",
"esnext",
"eslint:recommended",
"plugin:react/recommended",
"plugin:jest/recommended",
"prettier"
],
"plugins": ["react", "react-native", "jest", "prettier"],
"settings": {
"react": {
"version": "16.5.2"
}
},
"rules": {
"class-methods-use-this": "off",
"react-native/split-platform-components": "off",
"semi": ["error", "always"],
"no-console": ["error", { "allow": ["warn", "error", "log"] }],
"react/jsx-handler-names": "off",
"import/no-namespace": "off",
"import/namespace": "off",
"import/prefer-default-export": "off",
"import/default": "off",
"react/prefer-stateless-function": "off",
"react-native/no-color-literals": "off",
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "ignore" }]
}
}