Skip to content

Conversation

ota-meshi
Copy link
Member

This PR adds the parserOptions.vueFeatures.interpolationAsNonHTML option. When the option is enabled, the interpolation is parsed as non-HTML.

This option is disabled by default (it works the same as before).
Enabling this option by default is breaking change and requires a major version upgrade. Also, major version upgrades may need to add options for Vue 3, such as disabling filter parsing.

refs vuejs/eslint-plugin-vue#370

@teckel12
Copy link

@ota-meshi setting parserOptions.vueFeatures.interpolationAsNonHTML to true doesn't disable the error when using greater than or less than in conditional statements.

  parser: 'vue-eslint-parser',
  parserOptions: {
    vueFeatures: {
      interpolationAsNonHTML: true,
    },
  },
            <VIcon
              v-if="activities?.length > 1"
              icon="mdi-menu-down"
            />

Closing tag highlights in red.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants