1.安装依赖:eslint
2.配置webpack.config.js:
exclude忽略node_modules文件夹
enforce:将该检测放到其他loader之前,检测通过才会进入其他loader处理
3.根目录创建.eslintrc.js文件,配置:
4.启动npm run server(配置server在前面已整理过)
5.错误测试报错参考上节
1.安装依赖:eslint
2.配置webpack.config.js:
exclude忽略node_modules文件夹
enforce:将该检测放到其他loader之前,检测通过才会进入其他loader处理
3.根目录创建.eslintrc.js文件,配置:
4.启动npm run server(配置server在前面已整理过)
5.错误测试报错参考上节