Skip to content
Permalink
Browse files
Replace CLIEngine with ESLint (#25801)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
matamatanot and kodiakhq committed Jun 9, 2021
1 parent 3815222 commit 3821662eb7df7ad16f2c727310d90797090f408f
Showing with 3 additions and 3 deletions.
  1. +3 −3 lint-staged.config.js
@@ -1,7 +1,7 @@
const escape = require('shell-quote').quote
const { CLIEngine } = require('eslint')
const { ESLint } = require('eslint')

const cli = new CLIEngine({})
const eslint = new ESLint()
const isWin = process.platform === 'win32'

module.exports = {
@@ -12,7 +12,7 @@ module.exports = {
return [
`prettier --with-node-modules --ignore-path .prettierignore_staged --write ${escapedFileNames}`,
`eslint --no-ignore --max-warnings=0 --fix ${filenames
.filter((file) => !cli.isPathIgnored(file))
.filter((file) => !eslint.isPathIgnored(file))
.map((f) => `"${f}"`)
.join(' ')}`,
]

0 comments on commit 3821662

Please sign in to comment.