(lint) mirror stylistic lints in eslint-plugin-vue

different rules are used inside <template>
and to my knowledge no easy configuration exists to automatically mirror them
This commit is contained in:
Valentyne Stigloher 2024-01-01 13:33:38 +01:00
parent c87db9b7ca
commit 999dce46ff

View File

@ -103,7 +103,39 @@
"vue/no-use-v-if-with-v-for": ["warn"],
"vue/require-v-for-key": "warn",
"vue/valid-template-root": "warn",
"vue/valid-v-for": "warn"
"vue/valid-v-for": "warn",
"vue/array-bracket-newline": ["warn", "consistent"],
"vue/array-bracket-spacing": "warn",
"vue/array-element-newline": ["warn", "consistent"],
"vue/arrow-spacing": "warn",
"vue/block-spacing": "warn",
"vue/brace-style": "warn",
"vue/camelcase": ["warn", { "properties": "never" }],
"vue/comma-dangle": ["warn", "always-multiline"],
"vue/comma-spacing": "warn",
"vue/comma-style": "warn",
"vue/dot-location": ["warn", "property"],
"vue/dot-notation": "warn",
"vue/eqeqeq": "warn",
"vue/key-spacing": "warn",
"vue/keyword-spacing": "warn",
"vue/multiline-ternary": ["warn", "always-multiline"],
"vue/no-constant-condition": "warn",
"vue/no-empty-pattern": "warn",
"vue/no-extra-parens": "warn",
"vue/no-loss-of-precision": "warn",
"vue/no-sparse-arrays": "warn",
"vue/object-curly-newline": "warn",
"vue/object-curly-spacing": ["warn", "always"],
"vue/object-property-newline": ["warn", { "allowAllPropertiesOnSameLine": true }],
"vue/object-shorthand": "warn",
"vue/operator-linebreak": "warn",
"vue/prefer-template": "warn",
"vue/quote-props": ["warn", "as-needed"],
"vue/space-in-parens": "warn",
"vue/space-infix-ops": "warn",
"vue/space-unary-ops": "warn",
"vue/template-curly-spacing": "warn"
},
"overrides": [
{