From 1b772b644a41493d83f581cd875740df1727d38d Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 19 Nov 2024 19:14:12 +0530 Subject: [PATCH] Move to config --- web/package.json | 4 ++-- web/packages/build-config/eslintrc-base.mjs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/package.json b/web/package.json index b4dcf1116e..7a8ab23be3 100644 --- a/web/package.json +++ b/web/package.json @@ -20,8 +20,8 @@ "dev:cast": "yarn workspace cast next dev -p 3001", "dev:payments": "yarn workspace payments dev", "dev:photos": "yarn workspace photos next dev -p 3000", - "lint": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --check --log-level warn .\" \"yarn workspaces run eslint --report-unused-disable-directives .\" \"yarn workspaces run tsc\"", - "lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --report-unused-disable-directives --fix .\" \"yarn workspaces run tsc\"", + "lint": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --check --log-level warn .\" \"yarn workspaces run eslint .\" \"yarn workspaces run tsc\"", + "lint-fix": "concurrently --names 'prettier,eslint,tsc' \"yarn prettier --write --log-level warn .\" \"yarn workspaces run eslint --fix .\" \"yarn workspaces run tsc\"", "preview": "yarn preview:photos", "preview:accounts": "yarn build:accounts && python3 -m http.server -d apps/accounts/out 3001", "preview:auth": "yarn build:auth && python3 -m http.server -d apps/auth/out 3000", diff --git a/web/packages/build-config/eslintrc-base.mjs b/web/packages/build-config/eslintrc-base.mjs index e042c1d110..78f2d1363f 100644 --- a/web/packages/build-config/eslintrc-base.mjs +++ b/web/packages/build-config/eslintrc-base.mjs @@ -14,6 +14,9 @@ export default tseslint.config( tsconfigRootDir: import.meta.dirname, }, }, + linterOptions: { + reportUnusedDisableDirectives: "error", + }, }, { ignores: ["eslint.config.mjs"],