-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
35 lines (35 loc) · 962 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
module.exports = {
"root": true,
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true,
"jquery": true,
"webextensions": true,
},
"parserOptions": {
"ecmaVersion": 6,
},
"rules": {
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": ["error", "stroustrup"],
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error", "always"],
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"no-array-constructor": "error",
"no-console": "off",
"no-constant-condition": "error",
"no-duplicate-imports": "error",
"no-multiple-empty-lines": "error",
"no-new-object": "error",
"no-trailing-spaces": "error",
"no-use-before-define": ["error", { "functions": false, "classes": true, "variables": true }],
"no-var": "error",
"prefer-numeric-literals": "error",
"semi": ["error", "always"],
"strict": ["error", "global"],
"unicode-bom": ["error", "never"],
},
};