-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
70 lines (65 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
parser: babel-eslint
parserOptions:
sourceType: "module"
ecmaVersion: 6
ecmaFeatures:
jsx: true
env:
react-native/react-native: true
globals:
__DEV__: true
__PROD__: true
React: false
extends:
- eslint:recommended
- plugin:react/recommended
rules:
indent:
- error
- tab
comma-dangle:
- error
- always-multiline
semi: 2
no-use-before-define: 2
no-useless-constructor: 2
react/no-array-index-key: 2
react/no-deprecated: 2
react/no-did-mount-set-state: 2
react/no-did-update-set-state: 2
react/no-direct-mutation-state: 2
react/no-find-dom-node: 2
react/no-is-mounted: 2
react/no-multi-comp: 2
react/no-redundant-should-component-update: 2
react/no-string-refs: 2
react/no-unused-prop-types: 2
react/jsx-closing-bracket-location: 2
react/jsx-closing-tag-location: 2
react/jsx-indent:
- error
- tab
react/jsx-indent-props:
- error
- tab
react/jsx-key: 2
react/jsx-no-bind: 2
react/jsx-no-comment-textnodes: 2
react/jsx-no-duplicate-props: 2
react/jsx-no-undef: 2
react/jsx-one-expression-per-line: 2
react/jsx-tag-spacing: 2
react/prefer-es6-class: 2
react/prefer-stateless-function: 1
react/prop-types: 2
react/require-render-return: 2
react/self-closing-comp:
- error
- component: true
react/style-prop-object: 2
react-native/no-unused-styles: 2
react-native/no-inline-styles: 2
react-native/no-color-literals: 1
plugins:
- react
- react-native