Skip to content

Commit

Permalink
fix: resolve eslint plugins internally first
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Apr 29, 2020
1 parent c6a4110 commit 75cbad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/eslint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { bin } = require('../utils/run.js')
const { resolveIgnoreFile } = require('../utils/files.js')
const { PACKAGE_ROOT } = require('../utils/paths.js')

exports.eslint = ({ files = [], apply = false, config }) => {
const ignoreFile = resolveIgnoreFile(['.eslintignore'])
Expand All @@ -10,6 +11,7 @@ exports.eslint = ({ files = [], apply = false, config }) => {
'--ignore',
'--quiet',
'--format=unix',
`--resolve-plugins-relative-to=${PACKAGE_ROOT}`,
...(ignoreFile ? ['--ignore-path', ignoreFile] : []),
...(config ? ['--config', config] : []),
...(apply ? ['--fix'] : []),
Expand Down

0 comments on commit 75cbad0

Please sign in to comment.