Vueプロジェクトがモジュールビルドのスローを開始します/エラー/ ESLint構成が見つかりません。



Vue Project Starts Throwing Module Build Failed Error No Eslint Configuration Found



プロジェクトの開始時にコンソールがスローされますModule build failed: Error: No ESLint configuration found.間違い

もっと面白い

エラーの原因

  1. プロジェクトのルートパスにESLint構成ファイルがないため

問題を解決する方法

  1. ESLint関連の構成ファイルをプロジェクトのルートパスに追加します
// https://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true, }, // https://github.com/standard/standard/blob/master/docs/RULES-en.md extends: 'standard', // required to lint *.vue files plugins: [ 'html' ], // add your custom rules here 'rules': { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, / / Ignore function space detection 'space-before-function-paren': 0, // Do not have spaces around the infix operator 'space-infix-ops': 0, 'no-trailing-spaces': 0, 'new-parens': 0 } } /build/ /config/ /dist/ /*.js