forked from Liberluna/page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
57 lines (57 loc) · 1.38 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
49
50
51
52
53
54
55
56
57
module.exports = {
root: true,
env: {
browser: true,
"jest/globals": true,
node: true
},
extends: [
'@nuxtjs/eslint-config-typescript',
'plugin:nuxt/recommended',
'standard',
],
plugins: [
"jest"
],
// add your custom rules here
rules: {
quotes: ["off","single","double"],
"comma-dangle": ["off","never"],
"comma-spacing": ["off"],
"eol-last": ["off"],
"space-before-function-paren": ["error", {
anonymous: "always",
named: "never",
asyncArrow: "always",
}],
"no-multi-spaces": ["error", { ignoreEOLComments: true }],
"vue/html-indent": ["error", 2, {
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}],
"vue/multiline-html-element-content-newline": ["off"],
"vue/html-self-closing": ["error", {
html: {
void: "always",
normal: "always",
component: "always"
},
svg: "always",
math: "always",
}],
"vue/html-closing-bracket-spacing": ["error", {
startTag: "never",
endTag: "never",
selfClosingTag: "never",
}],
"vue/html-quotes": ["error", "double", { avoidEscape: true }],
"vue/attributes-order": ["off"],
"vue/component-tags-order": ["error", {
order: ["template", "script", "style"]
}],
"vue/order-in-components": ["error"],
}
}