36 lines
967 B
JavaScript
36 lines
967 B
JavaScript
module.exports = {
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:vue/vue3-recommended",
|
|
],
|
|
rules: {
|
|
"array-callback-return": "warn",
|
|
"for-direction": "error",
|
|
"getter-return": "warn",
|
|
"no-async-promise-executor": "warn",
|
|
"no-class-assign": "warn",
|
|
"no-multiple-empty-lines": ["error", {max: 2, "maxBOF": 0}],
|
|
"indent": ["error", 2],
|
|
"no-mixed-spaces-and-tabs": "error",
|
|
"vue/multi-word-component-names": "off",
|
|
"vue/attribute-hyphenation": "off",
|
|
"vue/html-self-closing": ["error", {
|
|
"html": {
|
|
"void": "never",
|
|
"normal": "always",
|
|
"component": "always"
|
|
},
|
|
"svg": "always",
|
|
"math": "always"
|
|
}],
|
|
"vue/no-reserved-component-names": "off",
|
|
"vue/no-use-v-if-with-v-for": "off",
|
|
"vue/html-indent": ["error", 2, {
|
|
"attribute": 1,
|
|
"baseIndent": 1,
|
|
"closeBracket": 0,
|
|
"alignAttributesVertically": true,
|
|
"ignores": []
|
|
}]
|
|
}
|
|
} |