forked from ptomasroos/react-native-scrollable-tab-view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
82 lines (82 loc) · 1.78 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
{
"plugins": ["import", "react", "prettier", "react-native", "jsx-a11y"],
"parser": "babel-eslint",
"extends": [
"eslint: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
},
"rules": {
"linebreak-style": ["error", "unix"],
"object-curly-spacing": ["error", "always"],
"react/no-unused-prop-types": "error",
"react/prefer-stateless-function": "off",
"react/prop-types": "error",
"indent": "off",
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["warn", "never"],
"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
}
],
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"jsxBracketSameLine": false,
"parser": "flow",
"printWidth": 100,
"singleQuote": true,
"semi": false,
"trailingComma": "all"
}
],
"no-console": [
"error",
{
"allow": ["info", "error"]
}
],
"no-debugger": "off"
},
"globals": {
"jasmine": true,
"device": true,
"element": true,
"by": true,
"__DEV__": true
}
}