forked from inthepocket/ghent-parking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
66 lines (61 loc) · 1.84 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
{
"extends": "airbnb",
"plugins": [
"babel",
"react",
"react-native",
],
"env": {
"es6": true,
"jest": true,
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"modules": true,
"jsx": true,
"spread": true,
}
},
"rules": {
"no-console": ["warn", { "allow": ["warn", "error", "info"] }],
"generator-star-spacing": "warn",
"object-shorthand": "warn",
"no-await-in-loop": "warn",
"max-len": ["warn", { "ignoreComments": true, "ignoreStrings": true, "tabWidth": 2, "code": 160 }],
"class-methods-use-this": "off",
"no-unused-vars": ["error", { "args": "none" }],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-underscore-dangle": ["error", { "allow": ["_items"] }],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"import/prefer-default-export": "off",
"import/no-unresolved": ["error", { "ignore": ["react", "react-native", "prop-types"] }],
"import/no-extraneous-dependencies": ["error", { "peerDependencies": true }],
"import/extensions": "off",
"babel/object-curly-spacing": "off",
"babel/arrow-parens": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/jsx-first-prop-new-line": "warn",
"react/prop-types": "off",
"react/prefer-stateless-function": "off",
"react-native/no-unused-styles": "warn",
"react-native/split-platform-components": "error",
"react-native/no-color-literals": "warn",
"react-native/no-inline-styles": "warn",
},
"globals": {
"fetch": false,
"alert": false,
"Expo": false
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".android.js", ".ios.js"],
}
}
}
}