This repository was archived by the owner on Sep 28, 2020. It is now read-only.
This repository was archived by the owner on Sep 28, 2020. It is now read-only.
Incorrect eslintPkgPath: .../api.js/package.json
#282
Closed
Description
- Operating System: Mac OS
- Node Version: 10.15.1
- NPM Version: 6.4.1
- webpack Version: 4.28.4
- eslint-loader Version: 2.2.0
Expected Behavior
Expecting regular Vue builds to succeed.
Actual Behavior
Vue builds are failing due to an eslint-loader error.
Code
This addition seems to result in eslintPkgPath
sometimes adding /package.json
to the path in situations where it should not:
var eslintPkgPath = "eslint/package.json";
if (userEslintPath) {
eslintPkgPath = userEslintPath + "/package.json";
}
var eslintVersion = require(eslintPkgPath).version;