From 16a916130dd0a3402ad7447d60cedefecdf2f81c Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 19 Sep 2019 13:37:20 -0800 Subject: [PATCH] add ` => { return ` as bad text and fix usages, https://github.com/phetsims/chipper/issues/790 --- js/grunt/lint.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/grunt/lint.js b/js/grunt/lint.js index bb09220b..a134a339 100644 --- a/js/grunt/lint.js +++ b/js/grunt/lint.js @@ -44,9 +44,7 @@ module.exports = function( repos, cache, say = false ) { // filter out all unlintable repo. An unlintable repo is one that has no `js` in it, so it will fail when trying to // lint it. Also, if the user doesn't have some repos checked out, those should be skipped - const filteredRepos = repos.filter( repo => { - return NO_LINT_REPOS.indexOf( repo ) < 0 && fs.existsSync( '../' + repo ); - } ); + const filteredRepos = repos.filter( repo => NO_LINT_REPOS.indexOf( repo ) < 0 && fs.existsSync( '../' + repo ) ); const cli = new eslint.CLIEngine( {