-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.54 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
40
41
42
43
44
45
46
47
48
module.exports = {
"extends": "plugin:vue/recommended",
"rules": {
"arrow-parens": ["error", "always"],
"block-spacing": ["error", "always"],
"brace-style": 0, /* some unimportant lines are better in a single line as a small unit. */
"curly": 0,
"indent": ["error", 2],
"linebreak-style": 0,
"max-len": [0, 400, 4, {"ignoreUrls": true}], /* svgs are large and that's ok */
"new-cap": 0,
"no-invalid-this": 0,
"no-multi-spaces": 0,
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"no-useless-escape": "error",
"no-var": 0,
"object-curly-spacing": ["error", "always"],
"spaced-comment": ["error", "always", { "markers": ["="] }],
"vue/html-self-closing": 0, /* self closing tags might cause problems with some libraries */
"vue/no-multi-spaces": 0, /* doesn't work well indenting with spaces */
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true,
}
}],
"valid-jsdoc": [2, {
"matchDescription": "^([A-Z]|[`\\d_])[\\s\\S]*[.?!`]$",
"prefer": {
"return": "return"
},
"requireReturn": false,
"requireParamDescription": true,
"requireReturnDescription": false,
"requireReturnType": true,
}],
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"env": {
"es6": true
}
};