1.VScode installs the ESLint plugin
2. Turn esLint on and off in the lower right corner (click turn on)
3. NPM I eslint — save-dev NPM I prettier — save-dev NPM I prettier — dev Add configuration information for esLint and prettier in “dependencies”
4. Then under the program created. Eslintrc. Js. Prettierrc. Js file (specific configuration can baidu)
5. Vscode set lintOnsave File->preference-> Settings
Restart vscode to implement code verification save ~