Skip to content

eslint-plugin-vue compatibility ​

Generated against eslint-plugin-vue 10.12.1. Each rule runs alone on the Pug fixtures in tests/fixtures/compat and on their HTML twins (rendered by the pug compiler), with the option sets in tools/compat/option-sets.ts.

  • ok: same reports as on HTML; fixes keep the template intact and add no layout problems.
  • untested: reported nothing on any fixture; runs normally.
  • crash: throws on Pug; configs.base turns it off.
  • mismatch, fix-unsafe, fix-ugly, forced-suppress: its messages are suppressed inside Pug templates (still active on HTML templates and scripts). Keep one with vuePug.configure({ keepVueRules }).
  • forced-keep: always runs.

ok: 178 · untested: 37 · crash: 4 · mismatch: 3 · fix-unsafe: 11 · fix-ugly: 0 · forced-suppress: 7 · forced-keep: 12

RuleStatusReasonReplacement
vue/array-bracket-newlinefix-unsafeAttrOrder.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/array-bracket-spacingoksame reports as the HTML twin; fixes clean
vue/array-element-newlinefix-unsafeAttrOrder.vue: the guard dropped 1 fix(es) or suggestion(s)
vue/arrow-spacingoksame reports as the HTML twin; fixes clean
vue/attribute-hyphenationoksame reports as the HTML twin; fixes clean
vue/attributes-orderoksame reports as the HTML twin; fixes clean
vue/block-langforced-keepreports the lang attribute of the <template> block itself, outside the Pug template; the twin has no lang (measured: mismatch: AttrOrder.vue: more on Pug (unexpected ×1))
vue/block-orderuntestedno report on any fixture or option set
vue/block-spacingoksame reports as the HTML twin; fixes clean
vue/block-tag-newlineuntestedno report on any fixture or option set
vue/brace-stylefix-unsafeTemplateMisc.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/camelcaseuntestedno report on any fixture or option set
vue/comma-dangleoksame reports as the HTML twin; fixes clean
vue/comma-spacingoksame reports as the HTML twin; fixes clean
vue/comma-styleuntestedno report on any fixture or option set
vue/comment-directiveforced-keepimplements eslint-disable directives written as Pug comments; its messages are directive bookkeeping (measured: untested)
vue/component-api-styleoksame reports as the HTML twin; fixes clean
vue/component-definition-name-casingoksame reports as the HTML twin; fixes clean
vue/component-name-in-template-casingcrashthrows on AttrOrder.vue
vue/component-options-name-casinguntestedno report on any fixture or option set
vue/custom-event-name-casinguntestedno report on any fixture or option set
vue/define-emits-declarationuntestedno report on any fixture or option set
vue/define-macros-orderoksame reports as the HTML twin; fixes clean
vue/define-props-declarationuntestedno report on any fixture or option set
vue/define-props-destructuringoksame reports as the HTML twin; fixes clean
vue/dot-locationuntestedno report on any fixture or option set
vue/dot-notationoksame reports as the HTML twin; fixes clean
vue/enforce-style-attributeoksame reports as the HTML twin; fixes clean
vue/eqeqeqoksame reports as the HTML twin; fixes clean
vue/first-attribute-linebreakforced-suppressreplaced by vue-pug/attribute-parens-newline inside Pug templates (measured: fix-unsafe: Layout.vue: the guard dropped 1 fix(es) or suggestion(s))vue-pug/attribute-parens-newline
vue/func-call-spacingoksame reports as the HTML twin; fixes clean
vue/html-button-has-typeoksame reports as the HTML twin; fixes clean
vue/html-closing-bracket-newlinecrashthrows on AttrOrder.vuevue-pug/attribute-parens-newline
vue/html-closing-bracket-spacingcrashthrows on AttrOrder.vuevue-pug/attribute-parens-spacing
vue/html-comment-content-newlinemismatchTemplateMisc.vue: fewer on Pug (expectedAfterHTMLCommentOpen ×1, expectedBeforeHTMLCommentOpen ×1)
vue/html-comment-content-spacingmismatchConditionals.vue: fewer on Pug (expectedAfterHTMLCommentOpen ×1, expectedBeforeHTMLCommentOpen ×1)
vue/html-comment-indentuntestedno report on any fixture or option set
vue/html-end-tagsforced-suppressreplaced by vue-pug/self-closing inside Pug templates (measured: untested)vue-pug/self-closing
vue/html-indentcrashthrows on AttrOrder.vuevue-pug/indent
vue/html-quotesforced-suppressits fixer escapes inner quotes as ", which is wrong inside a Pug attribute (a JS string that Pug then HTML-escapes), and it does not know that a backtick is a legitimate Pug quote (measured: fix-unsafe: fix-safety/UnquotedValues.vue: the guard dropped 7 fix(es) or suggestion(s))vue-pug/attribute-quotes
vue/html-self-closingforced-suppressreplaced by vue-pug/self-closing inside Pug templates (measured: mismatch: AttrOrder.vue: more on Pug (disallowSelfClosing ×2))vue-pug/self-closing
vue/jsx-uses-varsuntestedno report on any fixture or option set
vue/key-spacingoksame reports as the HTML twin; fixes clean
vue/keyword-spacinguntestedno report on any fixture or option set
vue/match-component-file-nameoksame reports as the HTML twin; fixes clean
vue/match-component-import-nameuntestedno report on any fixture or option set
vue/max-attributes-per-lineforced-suppressreplaced by vue-pug/max-attributes-per-line inside Pug templates (measured: fix-ugly: AttrOrder.vue: fixed output has new layout reports (vue-pug/attribute-parens-newline:expectedAfterOpen ×7, vue-pug/attribute-parens-newline:expectedBeforeClose ×7, vue-pug/indent:unexpected ×15))vue-pug/max-attributes-per-line
vue/max-lenforced-keepmeasures source lines, which in Pug are real lines; pug.render puts the whole twin template on one line (measured: mismatch: AttrOrder.vue: fewer on Pug (max ×1))
vue/max-lines-per-blockforced-keepcounts source lines of the block; pug.render puts the whole twin template on one line (measured: mismatch: AttrOrder.vue: more on Pug (tooManyLines ×1))
vue/max-propsoksame reports as the HTML twin; fixes clean
vue/max-template-depthoksame reports as the HTML twin; fixes clean
vue/multi-word-component-namesoksame reports as the HTML twin; fixes clean
vue/multiline-html-element-content-newlinefix-unsafeComponents.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/multiline-ternaryfix-unsafeExpressions.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/mustache-interpolation-spacingoksame reports as the HTML twin; fixes clean
vue/new-line-between-multi-line-propertyoksame reports as the HTML twin; fixes clean
vue/next-tick-styleoksame reports as the HTML twin; fixes clean
vue/no-arrow-functions-in-watchoksame reports as the HTML twin; fixes clean
vue/no-async-in-computed-propertiesoksame reports as the HTML twin; fixes clean
vue/no-bare-strings-in-templateforced-keepeach piped Pug text line is its own text node, while the twin joins them into one; every bare string is still reported once per line (measured: mismatch: Layout.vue: more on Pug (unexpected ×1))
vue/no-boolean-defaultoksame reports as the HTML twin; fixes clean
vue/no-child-contentforced-keepits suggestion removes the element's children, a structure change the guard drops; the report stays (measured: fix-unsafe: TemplateMisc.vue: the guard dropped 2 fix(es) or suggestion(s))
vue/no-computed-properties-in-dataoksame reports as the HTML twin; fixes clean
vue/no-consoleoksame reports as the HTML twin; fixes clean
vue/no-constant-conditionoksame reports as the HTML twin; fixes clean
vue/no-content-outside-blockuntestedno report on any fixture or option set
vue/no-custom-modifiers-on-v-modeluntestedno report on any fixture or option set
vue/no-define-model-defaultoksame reports as the HTML twin; fixes clean
vue/no-deprecated-data-object-declarationoksame reports as the HTML twin; fixes clean
vue/no-deprecated-delete-setoksame reports as the HTML twin; fixes clean
vue/no-deprecated-destroyed-lifecycleoksame reports as the HTML twin; fixes clean
vue/no-deprecated-dollar-listeners-apioksame reports as the HTML twin; fixes clean
vue/no-deprecated-dollar-scopedslots-apioksame reports as the HTML twin; fixes clean
vue/no-deprecated-events-apioksame reports as the HTML twin; fixes clean
vue/no-deprecated-filteroksame reports as the HTML twin; fixes clean
vue/no-deprecated-functional-templateoksame reports as the HTML twin; fixes clean
vue/no-deprecated-html-element-isoksame reports as the HTML twin; fixes clean
vue/no-deprecated-inline-templateoksame reports as the HTML twin; fixes clean
vue/no-deprecated-model-definitionoksame reports as the HTML twin; fixes clean
vue/no-deprecated-props-default-thisoksame reports as the HTML twin; fixes clean
vue/no-deprecated-router-link-tag-propoksame reports as the HTML twin; fixes clean
vue/no-deprecated-scope-attributeoksame reports as the HTML twin; fixes clean
vue/no-deprecated-slot-attributeoksame reports as the HTML twin; fixes clean
vue/no-deprecated-slot-scope-attributeoksame reports as the HTML twin; fixes clean
vue/no-deprecated-v-bind-syncoksame reports as the HTML twin; fixes clean
vue/no-deprecated-v-isoksame reports as the HTML twin; fixes clean
vue/no-deprecated-v-on-native-modifieroksame reports as the HTML twin; fixes clean
vue/no-deprecated-v-on-number-modifiersoksame reports as the HTML twin; fixes clean
vue/no-deprecated-vue-config-keycodesoksame reports as the HTML twin; fixes clean
vue/no-dupe-keysoksame reports as the HTML twin; fixes clean
vue/no-dupe-v-else-ifoksame reports as the HTML twin; fixes clean
vue/no-duplicate-attr-inheritanceoksame reports as the HTML twin; fixes clean
vue/no-duplicate-attributesoksame reports as the HTML twin; fixes clean
vue/no-duplicate-class-namesoksame reports as the HTML twin; fixes clean
vue/no-empty-component-blockforced-keepreports an empty <template> block at its tag, outside the Pug template; removing the block changes the template count, so the guard drops that fix (measured: fix-unsafe: EmptyRoot.vue: the guard dropped 1 fix(es) or suggestion(s))
vue/no-empty-patternoksame reports as the HTML twin; fixes clean
vue/no-export-in-script-setupoksame reports as the HTML twin; fixes clean
vue/no-expose-after-awaituntestedno report on any fixture or option set
vue/no-extra-parensoksame reports as the HTML twin; fixes clean
vue/no-implicit-coercionoksame reports as the HTML twin; fixes clean
vue/no-import-compiler-macrosoksame reports as the HTML twin; fixes clean
vue/no-irregular-whitespaceuntestedno report on any fixture or option set
vue/no-lifecycle-after-awaituntestedno report on any fixture or option set
vue/no-literals-in-templateoksame reports as the HTML twin; fixes clean
vue/no-lone-templateoksame reports as the HTML twin; fixes clean
vue/no-loss-of-precisionoksame reports as the HTML twin; fixes clean
vue/no-multi-spacesforced-suppressreplaced by vue-pug/no-multi-spaces inside Pug templates (measured: fix-unsafe: AttrOrder.vue: the guard dropped 4 fix(es) or suggestion(s))vue-pug/no-multi-spaces
vue/no-multiple-objects-in-classoksame reports as the HTML twin; fixes clean
vue/no-multiple-slot-argsoksame reports as the HTML twin; fixes clean
vue/no-multiple-template-rootoksame reports as the HTML twin; fixes clean
vue/no-mutating-propsoksame reports as the HTML twin; fixes clean
vue/no-negated-conditionoksame reports as the HTML twin; fixes clean
vue/no-negated-v-if-conditionoksame reports as the HTML twin; fixes clean
vue/no-parsing-errorforced-keepreports Pug syntax errors from the tokenizer; no vue-pug rule does (measured: untested)
vue/no-potential-component-option-typountestedno report on any fixture or option set
vue/no-props-shadowoksame reports as the HTML twin; fixes clean
vue/no-ref-as-operandoksame reports as the HTML twin; fixes clean
vue/no-ref-object-reactivity-lossuntestedno report on any fixture or option set
vue/no-required-prop-with-defaultoksame reports as the HTML twin; fixes clean
vue/no-reserved-component-namesoksame reports as the HTML twin; fixes clean
vue/no-reserved-keysuntestedno report on any fixture or option set
vue/no-reserved-propsoksame reports as the HTML twin; fixes clean
vue/no-restricted-blockoksame reports as the HTML twin; fixes clean
vue/no-restricted-call-after-awaituntestedno report on any fixture or option set
vue/no-restricted-classoksame reports as the HTML twin; fixes clean
vue/no-restricted-component-namesoksame reports as the HTML twin; fixes clean
vue/no-restricted-component-optionsoksame reports as the HTML twin; fixes clean
vue/no-restricted-custom-eventoksame reports as the HTML twin; fixes clean
vue/no-restricted-html-elementsoksame reports as the HTML twin; fixes clean
vue/no-restricted-propsoksame reports as the HTML twin; fixes clean
vue/no-restricted-static-attributeoksame reports as the HTML twin; fixes clean
vue/no-restricted-syntaxoksame reports as the HTML twin; fixes clean
vue/no-restricted-v-bindoksame reports as the HTML twin; fixes clean
vue/no-restricted-v-onoksame reports as the HTML twin; fixes clean
vue/no-root-v-ifuntestedno report on any fixture or option set
vue/no-setup-props-reactivity-lossoksame reports as the HTML twin; fixes clean
vue/no-shadow-native-eventsoksame reports as the HTML twin; fixes clean
vue/no-shared-component-dataoksame reports as the HTML twin; fixes clean
vue/no-side-effects-in-computed-propertiesoksame reports as the HTML twin; fixes clean
vue/no-spaces-around-equal-signs-in-attributeforced-suppressreplaced by vue-pug/attribute-equals-spacing inside Pug templates (measured: mismatch: AttrOrder.vue: more on Pug (unexpectedSpaces ×2))vue-pug/attribute-equals-spacing
vue/no-sparse-arraysoksame reports as the HTML twin; fixes clean
vue/no-static-inline-stylesoksame reports as the HTML twin; fixes clean
vue/no-template-keyoksame reports as the HTML twin; fixes clean
vue/no-template-shadowoksame reports as the HTML twin; fixes clean
vue/no-template-target-blankforced-keepits suggestion adds a rel attribute, an attribute-count change the guard drops; the report stays (measured: fix-unsafe: TemplateMisc.vue: the guard dropped 1 fix(es) or suggestion(s))
vue/no-textarea-mustacheoksame reports as the HTML twin; fixes clean
vue/no-this-in-before-route-enteroksame reports as the HTML twin; fixes clean
vue/no-undef-componentsoksame reports as the HTML twin; fixes clean
vue/no-undef-directivesoksame reports as the HTML twin; fixes clean
vue/no-undef-propertiesoksame reports as the HTML twin; fixes clean
vue/no-unsupported-featuresfix-unsafeSlots.vue: the guard dropped 3 fix(es) or suggestion(s)
vue/no-unused-componentsoksame reports as the HTML twin; fixes clean
vue/no-unused-emit-declarationsoksame reports as the HTML twin; fixes clean
vue/no-unused-propertiesoksame reports as the HTML twin; fixes clean
vue/no-unused-refsoksame reports as the HTML twin; fixes clean
vue/no-unused-varsoksame reports as the HTML twin; fixes clean
vue/no-use-computed-property-like-methodoksame reports as the HTML twin; fixes clean
vue/no-use-v-else-with-v-foroksame reports as the HTML twin; fixes clean
vue/no-use-v-if-with-v-foroksame reports as the HTML twin; fixes clean
vue/no-useless-concatoksame reports as the HTML twin; fixes clean
vue/no-useless-mustachesoksame reports as the HTML twin; fixes clean
vue/no-useless-template-attributesoksame reports as the HTML twin; fixes clean
vue/no-useless-v-bindforced-keepits only dropped fix turns :class="'x'" into a static class, which the structural fingerprint counts as a new class; the guard keeps that report and drops only that fix (measured: fix-unsafe: VModel.vue: the guard dropped 1 fix(es) or suggestion(s))
vue/no-v-for-template-key-on-childoksame reports as the HTML twin; fixes clean
vue/no-v-htmloksame reports as the HTML twin; fixes clean
vue/no-v-textoksame reports as the HTML twin; fixes clean
vue/no-v-text-v-html-on-componentoksame reports as the HTML twin; fixes clean
vue/no-watch-after-awaituntestedno report on any fixture or option set
vue/object-curly-newlinefix-unsafeAttrOrder.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/object-curly-spacingoksame reports as the HTML twin; fixes clean
vue/object-property-newlinefix-unsafeTemplateMisc.vue: the guard dropped 1 fix(es) or suggestion(s)
vue/object-shorthandoksame reports as the HTML twin; fixes clean
vue/one-component-per-fileuntestedno report on any fixture or option set
vue/operator-linebreakuntestedno report on any fixture or option set
vue/order-in-componentsoksame reports as the HTML twin; fixes clean
vue/padding-line-between-blocksoksame reports as the HTML twin; fixes clean
vue/padding-line-between-tagsmismatchConditionals.vue: fewer on Pug (always ×1)
vue/padding-lines-in-component-definitionoksame reports as the HTML twin; fixes clean
vue/prefer-define-optionsuntestedno report on any fixture or option set
vue/prefer-import-from-vueoksame reports as the HTML twin; fixes clean
vue/prefer-prop-type-boolean-firstoksame reports as the HTML twin; fixes clean
vue/prefer-separate-static-classforced-keepits fix turns :class="'x'" into a static class, which the structural fingerprint counts as a new class; the guard drops that fix and keeps the report (measured: fix-unsafe: VModel.vue: the guard dropped 1 fix(es) or suggestion(s))
vue/prefer-single-event-payloadoksame reports as the HTML twin; fixes clean
vue/prefer-templateoksame reports as the HTML twin; fixes clean
vue/prefer-true-attribute-shorthandoksame reports as the HTML twin; fixes clean
vue/prefer-use-template-refoksame reports as the HTML twin; fixes clean
vue/prefer-v-modelforced-keepits fix merges two attributes into v-model, an attribute-count change the guard drops; the report stays (measured: fix-unsafe: TemplateMisc.vue: the guard dropped 1 fix(es) or suggestion(s))
vue/prop-name-casingoksame reports as the HTML twin; fixes clean
vue/quote-propsoksame reports as the HTML twin; fixes clean
vue/require-component-isoksame reports as the HTML twin; fixes clean
vue/require-default-exportuntestedno report on any fixture or option set
vue/require-default-propoksame reports as the HTML twin; fixes clean
vue/require-direct-exportuntestedno report on any fixture or option set
vue/require-emit-validatoroksame reports as the HTML twin; fixes clean
vue/require-explicit-emitsoksame reports as the HTML twin; fixes clean
vue/require-explicit-slotsuntestedno report on any fixture or option set
vue/require-exposeoksame reports as the HTML twin; fixes clean
vue/require-macro-variable-nameoksame reports as the HTML twin; fixes clean
vue/require-name-propertyoksame reports as the HTML twin; fixes clean
vue/require-prop-commentoksame reports as the HTML twin; fixes clean
vue/require-prop-type-constructoroksame reports as the HTML twin; fixes clean
vue/require-prop-typesoksame reports as the HTML twin; fixes clean
vue/require-render-returnoksame reports as the HTML twin; fixes clean
vue/require-slots-as-functionsuntestedno report on any fixture or option set
vue/require-toggle-inside-transitionoksame reports as the HTML twin; fixes clean
vue/require-typed-object-propuntestedno report on any fixture or option set
vue/require-typed-refuntestedno report on any fixture or option set
vue/require-v-for-keyoksame reports as the HTML twin; fixes clean
vue/require-valid-default-propoksame reports as the HTML twin; fixes clean
vue/restricted-component-namesoksame reports as the HTML twin; fixes clean
vue/return-in-computed-propertyoksame reports as the HTML twin; fixes clean
vue/return-in-emits-validatoroksame reports as the HTML twin; fixes clean
vue/script-indentoksame reports as the HTML twin; fixes clean
vue/singleline-html-element-content-newlinefix-unsafeAttrOrder.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/slot-name-casingoksame reports as the HTML twin; fixes clean
vue/sort-keysoksame reports as the HTML twin; fixes clean
vue/space-in-parensoksame reports as the HTML twin; fixes clean
vue/space-infix-opsoksame reports as the HTML twin; fixes clean
vue/space-unary-opsoksame reports as the HTML twin; fixes clean
vue/static-class-names-orderfix-unsafefix-safety/UnquotedValues.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/template-curly-spacinguntestedno report on any fixture or option set
vue/this-in-templateoksame reports as the HTML twin; fixes clean
vue/use-v-on-exactoksame reports as the HTML twin; fixes clean
vue/v-bind-styleoksame reports as the HTML twin; fixes clean
vue/v-for-delimiter-styleoksame reports as the HTML twin; fixes clean
vue/v-if-else-keyfix-unsafeTemplateMisc.vue: the guard dropped 2 fix(es) or suggestion(s)
vue/v-on-event-hyphenationoksame reports as the HTML twin; fixes clean
vue/v-on-handler-styleoksame reports as the HTML twin; fixes clean
vue/v-on-styleoksame reports as the HTML twin; fixes clean
vue/v-slot-styleoksame reports as the HTML twin; fixes clean
vue/valid-attribute-nameoksame reports as the HTML twin; fixes clean
vue/valid-define-emitsuntestedno report on any fixture or option set
vue/valid-define-optionsuntestedno report on any fixture or option set
vue/valid-define-propsuntestedno report on any fixture or option set
vue/valid-next-tickoksame reports as the HTML twin; fixes clean
vue/valid-template-rootoksame reports as the HTML twin; fixes clean
vue/valid-v-bindoksame reports as the HTML twin; fixes clean
vue/valid-v-cloakoksame reports as the HTML twin; fixes clean
vue/valid-v-elseoksame reports as the HTML twin; fixes clean
vue/valid-v-else-ifoksame reports as the HTML twin; fixes clean
vue/valid-v-foroksame reports as the HTML twin; fixes clean
vue/valid-v-htmloksame reports as the HTML twin; fixes clean
vue/valid-v-ifoksame reports as the HTML twin; fixes clean
vue/valid-v-isoksame reports as the HTML twin; fixes clean
vue/valid-v-memooksame reports as the HTML twin; fixes clean
vue/valid-v-modeloksame reports as the HTML twin; fixes clean
vue/valid-v-onoksame reports as the HTML twin; fixes clean
vue/valid-v-onceoksame reports as the HTML twin; fixes clean
vue/valid-v-preoksame reports as the HTML twin; fixes clean
vue/valid-v-showoksame reports as the HTML twin; fixes clean
vue/valid-v-slotoksame reports as the HTML twin; fixes clean
vue/valid-v-textoksame reports as the HTML twin; fixes clean

Released under the MIT License.