Get the App
SLTechnology News&Howtos  ›  Development  › 

How to delete eslint in vuejs

Shulou Source: shulou.com Published: 2022-06-02 22:44:48 09月20日 Update

This article introduces you how to delete eslint in vuejs, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Vuejs delete eslint methods: 1, find webpack.base.conf.js;2, delete "{test: /\. (js | vue) $/.}" and other codes; 3, open the webpack.base.config.js file and log out of the corresponding code; 4, restart the service.

This article operating environment: windows7 system, vue2.9.6 version, DELL G3 computer.

Remove the eslint from the vue:

Eslint is a syntax checking tool, but the restrictions are too strict for most developers to adapt, so this requirement arises.

If it does not conform to the specification, it will report an error, and sometimes we do not want to write according to his specification. At this point, we need to shut down. There are two ways.

1. Prompt whether to enable eslint detection when building vue scaffolding. Use ESLint to lint your code? Write no

two。 If the project has already been built, we can do this.

Find the file webpack.base.conf.js, as shown in the figure:

Delete the contents of the red box

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')}}

3. Finally: restart the service npm run dev

On how to delete eslint in vuejs to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Files code content methods more projects help services good people interests most guys buddies tools folders articles sometimes environment computer Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker macOS vpn Shulou Information