Skip to content

Commit

Permalink
Merge pull request umijs#561 from umijs/fix-use-user-eslint
Browse files Browse the repository at this point in the history
fix: eslint resolve problem
  • Loading branch information
sorrycc authored Jun 26, 2018
2 parents 189080a + 6cc5173 commit 06927fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/af-webpack/src/getConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export default function getConfig(opts = {}) {
// 用用户的 eslint
try {
const { dependencies, devDependencies } = require(resolve('package.json')); // eslint-disable-line
if (dependencies.eslint || devDependencies) {
if (dependencies.eslint || devDependencies.eslint) {
const eslintPath = resolveSync('eslint', {
basedir: opts.cwd,
});
Expand Down

0 comments on commit 06927fc

Please sign in to comment.