mirror of
https://github.com/Kugelschieber/migo.git
synced 2026-01-18 06:40:29 +00:00
49 lines
1.3 KiB
JavaScript
49 lines
1.3 KiB
JavaScript
/* eslint-env node */
|
|
require('@rushstack/eslint-patch/modern-module-resolution')
|
|
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true
|
|
},
|
|
'extends': [
|
|
'plugin:vue/vue3-essential',
|
|
'eslint:recommended',
|
|
'@vue/eslint-config-typescript'
|
|
],
|
|
parserOptions: {
|
|
ecmaVersion: 2021
|
|
},
|
|
rules: {
|
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
"vue/multi-word-component-names": "off",
|
|
"indent": "off",
|
|
"vue/html-indent": ["warn", 4, {
|
|
"alignAttributesVertically": false
|
|
}],
|
|
"vue/script-indent": ["warn", 4, {
|
|
"baseIndent": 1,
|
|
"switchCase": 1
|
|
}],
|
|
"vue/mustache-interpolation-spacing": ["error", "never"],
|
|
"vue/v-on-style": ["error", "longform"],
|
|
"vue/max-attributes-per-line": ["warn", {
|
|
singleline: {
|
|
max: 99
|
|
}
|
|
}],
|
|
"vue/singleline-html-element-content-newline": "off",
|
|
"vue/attributes-order": "off",
|
|
"vue/first-attribute-linebreak": "off",
|
|
"vue/attribute-hyphenation": "off",
|
|
"vue/html-closing-bracket-newline": "off",
|
|
"vue/v-slot-style": "off",
|
|
"vue/no-v-html": "off",
|
|
"vue/html-self-closing": "off",
|
|
"vue/require-default-prop": "off"
|
|
}
|
|
}
|