Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 6, 2020
1 parent 38a64ee commit d2b521f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/babel-cli/src/babel/dir.js
Expand Up @@ -161,6 +161,9 @@ export default async function({
makeDirSync(cliOptions.outDir);

for (const filename of cliOptions.filenames) {
// compiledFiles is just incremented without reading its value, so we
// don't risk race conditions.
// eslint-disable-next-line require-atomic-updates
compiledFiles += await handle(filename);
}

Expand Down Expand Up @@ -188,7 +191,7 @@ export default async function({
let processing = 0;

["add", "change"].forEach(function(type: string): void {
watcher.on(type, async function(filename: string): void {
watcher.on(type, async function(filename: string) {
processing++;

try {
Expand Down

0 comments on commit d2b521f

Please sign in to comment.