forked from tomchentw/react-google-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
39 lines (39 loc) · 821 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true,
},
"ecmaFeatures": {
"arrowFunctions": true,
"classes": true,
"modules": true,
"jsx": true
},
"plugins": [
"react"
],
"rules": {
// Possible Errors
"comma-dangle": [2, "always-multiline"],
// Best Practices
"consistent-return": [0],
"no-else-return": [0],
"yoda": [2, "never", {"exceptRange": true}],
// Variables
"no-use-before-define": [2, "nofunc"],
"no-unused-vars": [2, {"args": "none"}],
// Stylistic Issues
"camelcase": [0],
"no-underscore-dangle": [0],
"quotes": [2, "backtick"],
// React extensions
"react/sort-comp": [1],
"react/prop-types": [1],
},
"globals": {
"google": true,
}
}