Why can’t you stop buying 618?From the technical dimension to explore>>>
When using Vue, a global variable is used. The syntax of eslint will appear eslint: ‘common’ is not defined. (no undef), saying that the variable is undefined. At this time, we can add configuration and cancel the verification
1. Add a configuration in the. Eslintrc. JS file, as shown in the figure below. My global variable is common
"globals":{ "common": true }
Similar Posts:
- No undef check error in eslint
- [Solved] ESLint Error: Line 10 exceeds the maximum line length of 100
- [Solved] Vue Esline Error: Parsing error: Unexpected token import
- Expected indentation of 8 spaces but found [How to Solve]
- How to Solve Vue Space Line Wrap Error
- [Solved] Vue3+ts+eslint Error: warning Unexpected any. Specify a different type, warning Delete `·` , Missing return type on function, Require statement not part of import statement
- [Solved] Fatal error: Call to undefined function json_decode()
- Windows / Android / IOS / Linux platform h265 streaming media player easyplayer.js deployment error
- [Solved] Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- Unit delay methods: invoke and invokerepeating