-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
38 lines (38 loc) · 1.37 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
{
"extends": "eslint:recommended",
"ignorePatterns": ["vendor*", "dist*", "node_modules*", "submodule*"],
"rules": {
"indent": ["error", 4, {"SwitchCase": 1, "ArrayExpression": "first", "ObjectExpression": "first"}],
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"no-multi-spaces": "error",
"curly": "error",
"brace-style": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"switch-colon-spacing": "error",
"no-var": "warn",
"prefer-const": "warn",
"key-spacing": "error",
"func-call-spacing": "error",
"keyword-spacing": "error",
"space-infix-ops": "error",
"no-use-before-define": "error",
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"space-in-parens": ["error", "never"],
"quotes": ["error", "single"],
"space-before-function-paren": ["error", {"anonymous": "always"}],
"camelcase": ["error", {"properties": "always", "ignoreImports": true, "ignoreGlobals": true, "ignoreDestructuring": true}],
"semi": ["error", "always"]
},
"env": {
"browser": true,
"jquery": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
}
}