-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
76 lines (72 loc) · 1.65 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
{
"env": {
"es6": true,
"jest": true,
"react-native/react-native": true
},
"extends": [
"airbnb",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
"globals": {
"__DEV__": false
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "react-native", "prettier"],
"overrides": [
{
"files": ["*.spec.js"],
"rules": {
"react-native/no-inline-styles": "off",
"react-native/no-unused-styles": "off"
}
}
],
"rules": {
"class-methods-use-this": "off",
"global-require": "off",
"no-console": ["error", {
"allow": ["warn", "error"]
}],
"no-underscore-dangle": ["error", {
"allowAfterThis": true
}],
"no-use-before-define": ["error", {
"variables": false
}],
"import/extensions": ["error", {
"js": "never",
"graphql": "always",
"json": "always",
"png": "always"
}],
"import/no-named-as-default": "off",
"import/no-unresolved": ["error", {
"ignore": ["^[~]"]
}],
"react/jsx-filename-extension": ["error", {
"extensions": [".js", ".jsx"]
}],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-one-expression-per-line": "off",
"react/prefer-stateless-function": ["warn", {
"ignorePureComponents": true
}],
"react-native/no-inline-styles": "error",
"react-native/no-unused-styles": "error",
"prettier/prettier": "error"
},
"settings": {
"import/resolver": {
"babel-plugin-root-import": { "rootPathSuffix": "src" }
}
}
}