Answers for "disable eslint in html"

20

disable eslint for line

alert('foo'); // eslint-disable-line

// eslint-disable-next-line
alert('foo');
Posted by: Guest on May-26-2020
4

disable eslint

/* eslint-disable */
Posted by: Guest on June-28-2020
0

eslint ignore v-html

<!-- eslint-disable-next-line vue/no-v-html -->
    <p class="post-excerpt" v-html="post.excerpt || post.frontmatter.description || '' " />
Posted by: Guest on December-15-2020
0

eslint ignore v-html

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true
  },
  parserOptions: {
    parser: 'babel-eslint'
  },
  extends: [
    '@nuxtjs',
    'plugin:nuxt/recommended'
  ],
  // add your custom rules here
  rules: {
    'nuxt/no-cjs-in-config': 'off',
    'vue/no-v-html': 0,
    'no-console': 0
  }
}
Posted by: Guest on December-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language