Three methods of how to turn off eslint verification in vue3.0

Preface: ESLint  is a code inspection tool to check whether your code conforms to the specified specifications (for example: there must be a space before and after =). If you want to standardize your code quality, it is best to turn on ESLint, but we develop in most ESLint still affects our development progress during the project, so we choose to close ESLint.

1. Choose ESLint with error prevention only when creating a vue3 project!

1. Select the option Manually select feature.

2. Choose the necessary babel, router, vuex, and css functions and do not choose the (linter) option to avoid the appearance of ESLint from the root.

3. Select the vue3 version.

2. By finding and opening the .eslintrc.js file, annotate '@vue/standard', and then re-npm run dev/serve!

1. The location of the .eslintrc.js file in the directory.

2. Open the .eslintrc.js file, find extends and comment out '@vue/standard'.

 3. Add lintOnSave: false to the vue.config.js file!

1. Find the vue.config.js file and add lintOnsave: false.

module.exports = {
  lintOnSave: false
}

2. Write in this position. 

 

Guess you like

Origin blog.csdn.net/qq_66180056/article/details/129320108