Vue item error arrow function should not return assignment
Problem source
Recently, there was an error arrow function should not return assignment
when creating a startup Vue project. In fact, there is more than one error, but the final reason is that the eslint check code is referenced.
Solution:
1. Modify the code to comply with the rules of eslint (this method does not take effect here)
add {} to the code after the arrow; however, it reports this error again (I don’t know how to solve this error up to now)
2. Remove eslint
and comment ‘standard’
in the. Eslintrc.js file under the project root directory
Read More:
- [Solved] ✖ 2 problem (1 error, 0 warnings) 2 error and 0 warnings potentially fixable with the`–fix`
- Vue Error: component has been registered but not used [Two Methods to Solve]
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- How to Solve VUE Error: Mixed spaces and tabs
- [Solved] Vue eslint Error: Component name “*****“ should always be multi-word
- [Solved] Errors: 1 http://eslint.org/docs/rules/quotes…elementUI Import Error
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Failed to load config “react-app“ to extend from.
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- [Solved] vue Project Error: react lazy eslint error Parsing error: Unexpected token import
- [Solved] error Component name “xxx“ should always be multi-word vue/multi-word-comp
- [Solved] Vue Error: error ‘xxx‘ is defined but never used no-unused-vars
- [Solved] Vue3 Error: error Delete `··` prettier/prettier
- [Solved] error ‘test‘ is assigned a value but never used no-unused-vars
- [Solved] error: Unexpected console statement (no-console)
- Vscode save Vue format eslint check error [How to Solve]
- VUE Error: Mixed spaces and tabs [How to Solve]
- [Solved] component import error is declared in the statement of components
- [Solved] Vue Project startup error: no eslint configuration found