Skip to content

Add parserOptions.vueFeatures.interpolationAsNonHTML option #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 3, 2020

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