forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
33 lines (33 loc) · 849 Bytes
/
.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
{
"root": true,
"env": {
"browser": true,
"jquery": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6
},
"globals": {},
"rules": {
"prefer-template": "error",
"quotes": ["error", "single"],
"eol-last": ["error", "always"],
"indent": 2,
"no-console": "error",
"no-extra-semi": "error",
"no-mixed-spaces-and-tabs": "error",
"no-redeclare": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unused-vars": "error",
"no-useless-escape": "error",
"space-in-parens": "error",
"vars-on-top": "error",
"template-curly-spacing": "error",
"quote-props": ["error", "as-needed"],
"keyword-spacing": ["error", { "before": true, "after": true } ],
"key-spacing": ["error", { "mode": "strict" }]
}
}