forked from dimagi/commcare-hq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (32 loc) · 971 Bytes
/
.eslintrc.js
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
// http://eslint.org/
module.exports = {
"extends": "eslint:recommended",
// http://eslint.org/docs/user-guide/configuring#specifying-environments
"env": {
"browser": true,
},
// http://eslint.org/docs/user-guide/configuring#specifying-globals
"globals": {
// false means it shouldn't be overwritten
"hqDefine": false,
"hqImport": false,
"gettext": false,
"assert": false,
"sinon": false,
"$": false,
"ko": false,
"_": false,
"ga_track_event": false,
"L": true
},
// http://eslint.org/docs/rules/
// http://eslint.org/docs/user-guide/configuring#configuring-rules
"rules": {
// First option can be off, warn, or error
"comma-dangle": ["warn", "always-multiline"],
"eqeqeq": ["error"],
"indent": ["warn", 4],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
}
};