# eslint-webpack **Repository Path**: s-FishLin/eslint-webpack ## Basic Information - **Project Name**: eslint-webpack - **Description**: vue项目,webpack配置eslint - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-08-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # eslint-webpack #### 项目介绍 vue项目,webpack配置eslint #### 需要的依赖 + "babel-eslint": "^8.2.6", + "eslint": "^5.4.0", + "eslint-config-standard": "^12.0.0-alpha.0", + "eslint-friendly-formatter": "^4.0.1", -- 控制台输出样式 + "eslint-loader": "^2.1.0", + "eslint-plugin-html": "^4.0.5", + "eslint-plugin-import": "^2.14.0", + "eslint-plugin-node": "^7.0.1", + "eslint-plugin-promise": "^4.0.0", + "eslint-plugin-standard": "^3.1.0", #### webpack相关配置 ``` { test: /.js|.vue$/, loader: 'eslint-loader', include: [path.resolve(__dirname, 'src')], // 指定检查的目录 options: { // 这里的配置项参数将会被传递到 eslint 的 CLIEngine formatter: require('eslint-friendly-formatter') // 指定错误报告的格式规范 }, enforce: 'pre' } ```