From 7000c141c5e5df9d7e4da55593238e415d1b55c6 Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Mon, 13 Nov 2023 10:09:03 +0100 Subject: [PATCH] Update scripts for eslint - Rename script names to `lint:js` and `lint:js:fix`. To be consistent with the "core" package. - Add scripts that handle all formatting with one command --- dapp/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dapp/package.json b/dapp/package.json index 4461d8f68..1e2be3b7b 100644 --- a/dapp/package.json +++ b/dapp/package.json @@ -9,8 +9,10 @@ "build": "tsc && vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "lint:eslint": "eslint .", - "lint:fix:eslint": "eslint . --fix", + "format": "npm run lint:js && npm run lint:config", + "format:fix": "npm run lint:js:fix && npm run lint:config:fix", + "lint:js": "eslint .", + "lint:js:fix": "eslint . --fix", "lint:config": "prettier -c '**/*.@(json|yaml|toml)'", "lint:config:fix": "prettier -w '**/*.@(json|yaml|toml)'" },