Processing method of eslint verification error
When encountering the eslint verification rule, the following errors or warnings are reported:
1. When encountering no unused vars, no unused expressions, no undef, no restricted globals and other errors, you can verify that the function is turned off by configuring the rules in eslint
2. If there are too many errors and warnings when encountering a file (such as the imported plug-in min.js), you can create it in the root file = & gt Eslintcore (don’t forget the previous point) and configure it, as shown in the following figure:
/SRC/view = & gt; The view file under SRC file ignores the verification
[ Insert picture description here]( https://img-blog.csdnimg.cn/49aecec84d054cc5a2e4eae7fe6fbbda.png#pic_ center
1. If eslint is configured in a separate file H6>
Configure the required verification rules in the created. Eslintrc.js, as shown in the following figure:
2. Referenced scaffolds, such as create react app H6>
Configure verification rules in package.json:
Read More:
- Solution of “do not use ‘new’ for side effects” for eslint verification of Vue project
- PHP in Windows combined with bat batch processing to achieve multi process verification proxy server function
- Solution to prompt “cannot find module ‘eslint config defaults / configurations / eslint’” when submitting with Git
- Processing method of HTTP 411 error code
- Flash back after vs compiler running, processing method
- The processing method after deleting idea’s. IML file by mistake
- What about ibtool failed with exit code 255? processing method
- Processing method of PIP exception no module named ‘pip’
- Processing method of SVN error “failed to run the WC DB work queue associated with…”
- Error reporting of eslint in webstorm
- Problems with vue project installation No ESLint configuration found
- Vue: validation syntax error of eslint
- Eslint error handling: ‘QQ’ is not defined
- DHCP principle and experimental verification
- Difference between isempty method and isblank method in stringutils
- “Method does not override method from its superclass”
- [How to Fix] Cannot find module ‘babel-eslint‘
- Uniapp ESLint error: ‘uni‘ is not defined no-undef [How to Solve]
- Hash verification failed for CDH5.8.2 installation
- Vscode development Vue project eslint check error