forked from TryGhost/Ghost-CLI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
68 lines (68 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"env": {
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {},
"rules": {
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": ["error", {"properties": "never"}],
"comma-dangle": "error",
"comma-style": "error",
"curly": ["error", "all"],
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-names": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"max-len": ["error", {
"code": 120,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"new-cap": "error",
"new-parens": "error",
"no-caller": "error",
"no-console": "off",
"no-empty": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": "error",
"no-new": "error",
"no-plusplus": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unused-vars": "error",
"no-use-before-define": "error",
"no-var": "error",
"no-with": "error",
"object-curly-newline": ["error", {"consistent": true}],
"object-curly-spacing": "error",
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never"
}],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"words": false,
"nonwords": false
}],
"spaced-comment": "error",
"strict": ["error", "safe"],
"template-curly-spacing": "error",
"yoda": "error"
}
}