Here we will show you how to solve the two common error:
- Syntax Error: Error: No ESLint configuration found.
- Syntax Error: TypeError: eslint.CLIEngine is not a constructor
Solution:
Error 1: Syntax Error: Error: No ESLint configuration found.
Method 1:
1 Global install eslint: npm i eslint -g
2 Generate configuration file: eslint –init
3 Set according to your own project requirements:
√ How would you like to use ESLint?· problems
√ What type of modules does your project use?· esm
√ Which framework does your project use?· vue
√ Does your project use TypeScript?· No/Yes
√ Where does your code run?· browser
√ What format do you want your config file to be in?· JavaScript
The config that you've selected requires the following dependencies:
[email protected]
?Would you like to install them now with npm?» Yes
Method 2:
1 Install eslint in the project: npm install eslint –save-dev
2 Build profile: ./node_modules/.bin/eslint –init
3. After successful initialization, a will be generated a .eslintrc.js file in the project root directory, file content:
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:vue/essential"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
}
};
Error 2: Syntax Error: TypeError: eslint. CLIEngine is not a constructor
Solution: open package JSON delete and re run the following code (stop the project and re NPM run serve)
after deletion, the eslint syntax verification of the project will become invalid and can run successfully (NPM run serve needs to be re run)

Read More:
- [Solved] ESLint:TypeError: this.CliEngine is not a constructor
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- How to Solve VUE Error: Mixed spaces and tabs
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] npm Error: Class extends value undefined is not a constructor or null
- Vscode save Vue format eslint check error [How to Solve]
- [Solved] error ‘test‘ is assigned a value but never used no-unused-vars
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- How to Solve Vscode save Vue file eslint error
- Vue Install less Error: While resolving: [email protected]
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- [Solved] ESLint error: Newline required at end of file but not found (eol-last)
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- VUE Error: Mixed spaces and tabs [How to Solve]
- [Solved] Vue Project Error: Arrow function should not return assignment