forked from boromisp/react-leaflet-heatmap-layer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
76 lines (63 loc) · 1.96 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
{
"extends": ["eslint-config-airbnb", "plugin:flowtype/recommended", "prettier"],
"parser": "babel-eslint",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"globals": {
"__data": true,
"expect": true,
"ga": true,
"Intercom": true,
"spy": true,
"sinon": true,
"Raven": true,
"Highcharts": true
},
"rules": {
"comma-dangle": 0,
"no-wrap-func": 0,
"spaced-comment": 0,
"eqeqeq": [2, "smart"],
// Portal uses some camelcase
"camelcase": 1,
// used for creating new Immutable Lists and Maps
"new-cap": [1, { "capIsNewExceptions": ["Immutable"] }],
// Sometimes short variable names are okay
"id-length": 0,
// Doesn't play nice with chai's assertions
"no-unused-expressions": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/jsx-no-duplicate-props": 2,
// Discourages microcomponentization
"react/no-multi-comp": 0,
//Temporarirly disabled due to a possible bug in babel-eslint (todomvc example)
"block-scoped-var": 0,
// Temporarily disabled for test/* until babel/babel-eslint#33 is resolved
"padded-blocks": 0,
"no-param-reassign": 0,
// Allow ++ and --
"no-plusplus": "off",
// Allow dangling underscores
"no-underscore-dangle": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
// Left as-is since this is overkill
"class-methods-use-this": "off",
// Any prettier issues are now considered eslint issues
"prettier/prettier": ["error"],
// This is because we use `array` and `object`.
// `array` is ok because we require latitude, longitude and intensity extractors
// `object` is used with the gradient object, and proptypes can't encode the shape of a gradient correctly
"react/forbid-prop-types": "off"
},
"plugins": ["react", "lean-imports", "flowtype", "prettier"]
}