-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.25 KB
/
.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
36
37
38
39
40
41
42
43
module.exports = {
env: {
browser: true,
es6: true, // https://caniuse.com/#feat=es6
jquery: true,
},
plugins: ["backbone"],
parserOptions: {
ecmaVersion: 6,
sourceType: "script",
ecmaFeatures: {
impliedStrict: true,
jsx: false,
globalReturn: false,
},
},
extends: ["eslint:recommended", "plugin:backbone/recommended"],
rules: {
indent: ["error", 4],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double", {avoidEscape: true, allowTemplateLiterals: true}],
"quote-props": ["error", "consistent"],
semi: ["error", "always"],
"backbone/no-view-qualified-jquery": "error",
"backbone/defaults-on-top": ["error", ["dateFields"]],
"backbone/initialize-on-top": [
"error",
{
View: ["tagName", "className", "events", "id", "template"],
Model: ["defaults", "url", "urlRoot"],
Collection: ["model", "url"],
},
],
},
globals: {
L: "readonly",
SIRHA: "readonly",
bootbox: "readonly",
iAuth: "readonly",
wf: "readonly",
wfr: "readonly",
},
};