-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
54 lines (54 loc) · 1.3 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
{
"parser": "babel-eslint",
"plugins": ["react", "react-native", "flowtype", "prettier", "standard"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"extends": [
"eslint:recommended",
"airbnb-base",
"airbnb",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard"
],
"rules": {
"max-len": ["error", { "code": 100, "ignoreUrls": true }],
"arrow-body-style": "warn",
"no-return-assign": "off",
"class-methods-use-this": "off",
"global-require": "off",
"jsx-a11y/href-no-hash": "off",
"react/display-name": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".js", ".jsx"]
}
],
"react/forbid-prop-types": "off",
"no-multiple-empty-lines": [
"warn",
{
"max": 1
}
],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"no-use-before-define": 0,
"prettier/prettier": "error",
"no-plusplus": [2, {
"allowForLoopAfterthoughts": true
}]
}
}