-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
81 lines (72 loc) · 1.53 KB
/
.eslintrc.yml
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
root: true
extends:
- '@react-native-community'
plugins:
- react
- import
globals:
fetch: false
__DEV__: readonly
env:
jest: true
rules:
# React Rules
react/prop-types: 0
react/no-unused-prop-types: 0
react/no-unused-state: 0
react/prefer-stateless-function: 2
react/forbid-prop-types: [0, { forbid: [] }]
react/require-default-props: off
react/jsx-sort-props:
- error
- callbacksLast: true
shorthandFirst: true
shorthandLast: false
ignoreCase: false
noSortAlphabetically: false
reservedFirst: true
# React-Native Rules
react-native/no-unused-styles: 2
react-native/split-platform-components: 2
react-native/no-inline-styles: 2
react-native/no-raw-text: 0
# Import Rules
import/extensions:
- 1
- never
- svg: always
json: always
import/no-extraneous-dependencies:
- error
- devDependencies: true
optionalDependencies: false
peerDependencies: false
import/prefer-default-export: off
implicit-arrow-linebreak: off
# General Rules
semi:
- error
- never
comma-dangle: off
no-unused-vars:
- error
- argsIgnorePattern: '^_'
varsIgnorePattern: '^_'
operator-linebreak:
- error
- before
- overrides:
'=': ignore
no-console: 2
no-plusplus: off
no-nested-ternary: off
arrow-body-style: off
consistent-return: off
curly:
- error
- all
# for post defining style object in react-native
no-use-before-define:
- error
- variables: false
functions: false