Vscode opens two front-end projects at the same time, how to use different eslint configuration files?

as the title
I now use two vscode processes to open different front-end projects, the current vscode can only parse an eslint file, it is really tiring to switch configuration files back and forth in the project, is there any effective way to solve this problem?


different projects? Then why not put an eslint configuration file for each project, and it makes sense to let the rules follow the project?
initialize eslint rules in eslint-- init in their respective projects, and generate a rule file .eslintrc.js under their respective projects, where you can edit the rules of the current project and achieve the desired results.

if the eslint command cannot be found because it has not been installed, use npm install eslint-g to install the eslint command. The above premise is that you have installed nodejs.

Menu