-
Notifications
You must be signed in to change notification settings - Fork 3
/
react-native.js
56 lines (55 loc) · 1.28 KB
/
react-native.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
'use strict';
const path = require('path');
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
extends: [
'xo/esnext',
'xo-react/space',
path.join(__dirname, 'index.js')
],
plugins: [
'react-native-wix'
],
rules: {
'no-unused-expressions': 2,
'arrow-parens': [
'error',
'always'
],
'no-unused-vars': [ // unused args in functions are OK
'error',
{
args: 'none'
}
],
'no-use-before-define': 0, //this breaks in react-native apps because of styles
'generator-star-spacing': [ // spacing in async functions
'error',
'after'
],
'react/jsx-no-bind': [ // bind not allowed in render
'warn'
],
'react/jsx-closing-bracket-location': [
'error',
'tag-aligned'
],
'react/prop-types': 0, //no prop validations
'react/no-unused-prop-types': 0,
'react/no-children-prop': 0,
'react/jsx-handler-names': 0, // any prop name is OK
'react/forbid-component-props': 0, //no needed in react-native
'react-native-wix/never-device-emitter-remove-all': 2,
'react-native-wix/no_disable_yellow_box': 2
},
globals: {
document: false,
fetch: true,
__DEV__: true,
jest: true
}
};