npm install eslint --save-dev
"scripts":{ ... "lint":"eslint src", "lint:create":"eslint --init" }
npm run lint:create
创建完成后根目录会出现.eslintrc.js
控制台执行npm run lint
遇到的问题
1.