forked from ezra-bible-app/ezra-bible-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
49 lines (49 loc) · 2 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jquery": true,
"jest": true
},
"globals": {
"app": "readonly",
"isDev": "readonly",
"Sentry": "readonly",
"loadScript": "readonly", // FIXME: should not be global, move to helper module
"verseListTemplate": "readonly",
"ipcNsi": "readonly",
"ipcSettings": "readonly",
"ipcDb": "readonly",
"ipcGeneral": "readonly",
"app_controller": "readonly", // FIXME: should not be global, include module directly
"tags_controller": "readonly", // FIXME: should not be global, include module directly
"theme_controller": "readonly", // FIXME: should not be global, include module directly
"uiHelper": "readonly", // FIXME: should not be global, include module directly
"i18n": "readonly",
"platformHelper": "readonly",
"device": "readonly",
"cordova": "readonly"
},
"extends": "eslint:recommended", // defaults to: https://eslint.org/docs/rules/
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"indent": ["warn", 2, {
"SwitchCase": 1,
"FunctionDeclaration": {"parameters": "first"}, // indicates that all parameters of the declaration must be aligned with the first parameter
"FunctionExpression": {"parameters": "first"},
"CallExpression": {"arguments": "first"},
"ArrayExpression": "first",
"ObjectExpression": "first",
"ignoreComments": true
}],
// "quotes": ["warn", "single"], // commented because of to many errors
"semi": ["warn", "always"], // can be error (default) to enforce the rule
"no-unused-vars": "warn", // can be error (default) to enforce the rule
"no-redeclare": "warn", // can be error (default) to enforce the rule
"block-scoped-var": "warn" // can be error (default) to enforce the rule
}
}