From 20eb64a9940b04808fcbeff3b78ceaf67c5085d7 Mon Sep 17 00:00:00 2001 From: sabhas Date: Fri, 22 Oct 2021 18:41:35 +0000 Subject: [PATCH] chore: add lint script to run linter for both web and api --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8fd654d..ffc3f13 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "lint-api:fix": "npx prettier --write \"api/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", "lint-api": "npx prettier --check \"api/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", "lint-web:fix": "npx prettier --write \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", - "lint-web": "npx prettier --check \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"" + "lint-web": "npx prettier --check \"web/src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", + "lint": "npm run lint-api && npm run lint-web", + "lint:fix": "npm run lint-api-fix && npm run lint-web-fix" }, "devDependencies": { "prettier": "^2.3.1"