-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
131 lines (131 loc) · 2.92 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
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
{
"plugins": [
"import",
"jest",
"jsx-a11y",
"prettier",
"react",
"react-native",
"sort-imports-es6-autofix"
],
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-native/all",
"plugin:react/recommended",
"prettier/react"
],
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"settings": {
"react": {
"pragma": "React",
"version": "16.6.0"
},
"import/resolver": {
"node": {
"extensions": [".js", ".android.js", ".ios.js"]
}
}
},
"rules": {
"import/first": ["error", "always"],
"import/no-duplicates": ["error", "always"],
"import/no-unresolved": ["error", { "caseSensitive": true, "ignore": ["^src"] }],
"indent": "off",
"jest/consistent-test-it": ["error", { "fn": "test", "withinDescribe": "test" }],
"linebreak-style": ["error", "unix"],
"no-debugger": "off",
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true }],
"react/no-unused-prop-types": "error",
"react/prefer-stateless-function": "off",
"react/prop-types": "error",
"semi": ["warn", "never"],
"import/order": [
"error",
{
"newlines-between": "always-and-inside-groups",
"groups": ["builtin", "external", "internal", "parent", "index", "sibling"]
}
],
"sort-imports-es6-autofix/sort-imports-es6": [
"error",
{
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "single", "multiple"]
}
],
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"react/jsx-sort-props": [
"error",
{
"callbacksLast": false,
"shorthandFirst": false,
"ignoreCase": true
}
],
"react/sort-comp": [
2,
{
"order": [
"static-methods",
"constructor",
"state",
"instance-variables",
"lifecycle",
"everything-else",
"render"
]
}
],
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"jsxBracketSameLine": false,
"parser": "flow",
"printWidth": 100,
"singleQuote": true,
"semi": false,
"trailingComma": "all"
}
],
"no-console": [
"error",
{
"allow": ["info", "warn"]
}
]
},
"globals": {
"__DEV__": true
}
}