-
Notifications
You must be signed in to change notification settings - Fork 184
/
.eslintrc.js
39 lines (32 loc) · 1.08 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
module.exports = {
"extends": "google",
"root": true,
"rules": {
"linebreak-style": "off",
"indent": ["warn", 4],
"quote-props": "warn",
"valid-jsdoc": "warn",
"brace-style": "warn",
"key-spacing": "warn",
"spaced-comment": "warn",
"space-infix-ops": "warn",
"comma-spacing": "warn",
"semi-spacing": "warn",
"object-curly-spacing": "warn",
"padded-blocks": "warn",
"no-multi-spaces": "warn",
"space-before-blocks": "warn",
"space-unary-ops": "warn",
"keyword-spacing": "warn",
// HAR Viewer uses double quotes.
"quotes": ["error", 'double', { allowTemplateLiterals: false }],
// HAR Viewer doesn't have complete JSDoc, so add docs as edits are made.
"require-jsdoc": "warn",
// Enforce curly braces around blocks
"curly": "error",
"space-before-function-paren": ["error", "never"],
"max-len": ["error", 100],
"object-curly-spacing": ["error", "always"],
"yoda": "warn"
},
};