Skip to content

Commit

Permalink
Make linter compatible with Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed May 13, 2019
1 parent 756c5b8 commit 4048b49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/lib/lint-java-script-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ module.exports = async function () {
eslintArgs.push('--fix')
}

const eslintBinary = process.platform === 'win32' ? 'eslint.cmd' : 'eslint'
const eslint = spawn(
path.join('script', 'node_modules', '.bin', 'eslint'),
path.join('script', 'node_modules', '.bin', eslintBinary),
[...eslintArgs, '.'],
{ cwd: CONFIG.repositoryRootPath }
)
Expand Down

0 comments on commit 4048b49

Please sign in to comment.