In using vuex, the prettier – code formatter is downloaded and Automatic formatting requires the following configuration
Need to create .prettierrc in the root directory of the file for configuration
{
"semi": false,
"singleQuote": true,
"trailingComma": "none"
}
Using eslint according to the error report
.eslintrc.js
Add commands in rules
You can ignore the space before the function
rules: {
'no-console': process.env.NODE_ENV === 'production' ?'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ?'error' : 'off',
'space-before-function-paren': 0
},
Read More:
- [Solved] Errors encountered when using VS to write opengl code
- TypeError: unsupported format string passed to numpy.ndarray.__format__
- django Internal server error 500 Modify source code to view print errors
- Net use Errors Explanation
- Eclipse start project error: Errors occurred during the build. Errors running builder ‘Integrated External Tool Builder’ on…
- [Solved] logback log format adjustment error: Failed to create converter for [%M] keyword
- How to Solve ceph-deploy Error (Three Errors)
- Axios request failed, get the status code and error information, how to encapsulate the function dealing with the public error code
- How to Solve elasticsearch-7.15.1 operation errors
- How to Fix the common Warning Errors after Vue Project Startup
- [Solved] Use the truss console to connect to the public blockchain network error: mnemonic invalid or undefined
- How to Solve Excel Error Log 1: Data format error
- How to Solve Docker Run Error: standard_init_linux.go:219: exec user process caused: exec format error
- How to Configure OpenFPGA Environment (Probable Errors & Their Solutions)
- [Solved] Failed to compile with 1 errors
- How to Solve jmeter Install Error (Three Common Errors)
- [Solved] Android x relies on AAR errors: Failed to transform…
- [Solved] rqt_graph Skipped loading plugin with error & Format: “dot“ not recognized
- The problem of using GB2312 encoding in .NET Core to report errors
- Oracle prompt text does not match format string