disable eslint in html code example
Example 1: disable eslint for line
alert('foo');
alert('foo');
Example 2: disable eslint
Example 3: eslint ignore v-html
<!-- eslint-disable-next-line vue/no-v-html -->
<p class="post-excerpt" v-html="post.excerpt || post.frontmatter.description || '' " />
Example 4: eslint ignore v-html
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended'
],
rules: {
'nuxt/no-cjs-in-config': 'off',
'vue/no-v-html': 0,
'no-console': 0
}
}