-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.eslintrc
39 lines (39 loc) · 962 Bytes
/
.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
{
"env": {
"react-native/react-native": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-native/all"
],
"plugins": ["react", "react-native"],
"parser": "babel-eslint",
"rules": {
"no-dupe-else-if": "off",
"no-import-assign": "off",
"no-setter-return": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [".js", ".jsx"]
}
],
"react-native/no-unused-styles": 2,
"react/jsx-uses-vars": 2,
"react-native/no-color-literals": [0],
"react/forbid-prop-types": [0],
"react/require-default-props": [0],
"global-require": [0],
"no-underscore-dangle": [0],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"max-len": [
"error",
{ "code": 100, "ignorePattern": "^import\\s.+\\sfrom\\s.+;$" }
]
}
}