-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
50 lines (50 loc) · 1.14 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
module.exports = {
parser: "@babel/eslint-parser",
extends: [
// add more generic rulesets here, such as:
// 'eslint:recommended',
// "plugin:vue/vue3-essential",
// "eslint:recommended",
'plugin:vue/vue3-recommended',
// 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
],
rules: {
// override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
"vue/max-attributes-per-line": ["warn", {
"singleline": {
"max": 4
},
"multiline": {
"max": 5
}
}],
"vue/html-self-closing": ["warn", {
"html": {
"void": "always",
"normal": "always",
"component": "always"
},
"svg": "always",
"math": "always"
}],
"vue/no-unused-components": ["warn", {
"ignoreWhenBindingPresent": true
}],
"vue/first-attribute-linebreak": ["warn", {
"singleline": "ignore",
"multiline": "ignore"
}]
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
],
env: {
mocha: true,
},
},
],
}