forked from tidepool-org/uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
67 lines (67 loc) · 1.51 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
{
// I want to use babel-eslint for parsing!
"parser": "babel-eslint",
"env": {
// I write for browser
"browser": true,
// in CommonJS
"node": true,
"es6": true
},
"globals": {
"chai": false,
"console": false,
"define": false,
"expect": false,
"process": false,
"require": false,
"sinon": false,
"__MOCK__": false,
"__MOCK_PARAMS__": false,
"__UPLOAD_API__": false,
"__DATA_HOST__": false,
"__API_HOST__": false,
"__SHOW_ACCEPT_TERMS__": false,
"__PASSWORD_MIN_LENGTH__": false,
"__INVITE_KEY__": false
},
// To give you an idea how to override rule options:
"rules": {
"quotes": [2, "single"],
"strict": [2, "never"],
"eol-last": 0,
"no-mixed-requires": 0,
"no-underscore-dangle": 0,
"wrap-iife": [2, "inside"],
"no-caller": 2,
"no-undef": 2,
"new-cap": 2,
"semi": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
// uploader specific
"camelcase": 0,
"eqeqeq": 0,
"no-bitwise": 0,
// TODO: either try to fix this globally or use an embedded .eslintrc for drivers
"no-use-before-define": 0,
"lodash/prefer-lodash-method": "warn",
"max-len": "warn",
"prefer-destructuring": "warn",
"no-buffer-constructor": "warn"
},
"plugins": [
"react",
"promise",
"import",
"lodash"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.eslint.js"
}
}
}
}