From 1ff939b2f5e30782680bd3367ba9273b1a7c9c02 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:29:14 -0700 Subject: [PATCH] Reorder ESLint args Follow-up to "Fail on ESLint warnings" (52e4e289). Keep all options before the required directory argument. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 77cd35e5d..93e519d54 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "build": "./build.sh", "build:feeds": "node scripts/generate-blog-feeds.js", "lint": "npm run lint:server", - "lint:server": "DEBUG=eslint:cli-engine npx eslint --ext .js,.jsx . --max-warnings=0", - "lint:static-site": "cd static-site && DEBUG=eslint:cli-engine npx eslint --ext .js,.jsx,.ts,.tsx . --max-warnings=0", + "lint:server": "DEBUG=eslint:cli-engine npx eslint --max-warnings=0 --ext .js,.jsx .", + "lint:static-site": "cd static-site && DEBUG=eslint:cli-engine npx eslint --max-warnings=0 --ext .js,.jsx,.ts,.tsx .", "server": "node server.js", "groups": "node server.js --app ./src/groupsApp.js", "start": "npm run server",