Home >Web Front-end >JS Tutorial >Summary of methods to remove code specification detection in Vue
This time I will bring you a summary of the detection methods to remove the code specification in vue, and what are the notes for removing the code specification detection in vue. The following is a practical case, let’s take a look. one time.
When we use vue scaffolding, in order to standardize the team's code format, there will be a code specification check. If it does not meet the specification, an error will be reported. Sometimes we don't want to write according to his specification. At this point we need to close. There are two methods here.
1. When building vue scaffolding, you are prompted whether to enable eslint detection. Use ESLint to lint your code? Write no;
2. If the project has been generated, we can do this.
Open the webpack.base.config.js
file in the bulid folder in the project. Delete or log out the following code:
{ test: /\.(js|vue)$/, loader: 'eslint-loader', enforce: 'pre', include: [resolve('src'), resolve('test')], options: { formatter: require('eslint-friendly-formatter') } },
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Recommended reading:
Use case description of the filter() method in jquery
Detailed explanation of the use of event delegation in JS
The above is the detailed content of Summary of methods to remove code specification detection in Vue. For more information, please follow other related articles on the PHP Chinese website!