6

Been trying to figure out this for quite some while now. Also wondering how to disable rules individually? I've tried various ways but it never really works.

1
  • if you installed vue with cli, you should have dedicated eslint file where you can edit rules. Commented Jan 7, 2019 at 17:30

1 Answer 1

5

You can use:

/* eslint-disable-next-line */ to disable the linter for next line of your code

/* eslint-disable-name-of-rule */ to disable only a specific rule

/* eslint-disable */ at the top of a file to disable the linter for the current file

You can also create a .eslintrc.js file to configure the linter globally as specified here https://eslint.org/docs/user-guide/configuring

Sign up to request clarification or add additional context in comments.

2 Comments

Not in a Vue template.
yes not in the template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.