From a2ada305a72a23b930d3a79863fc7bdb55bdc538 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 20 Mar 2022 01:25:23 +0600 Subject: [PATCH] Add scripts for lint and prettier --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8243552..0c854dd 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,11 @@ "build": "vite build", "preview": "vite preview", "predeploy": "npm run build", - "deploy": "gh-pages -d build" + "deploy": "gh-pages -d build", + "lint": "eslint --ext .js,.jsx .", + "lint:fix": "eslint --ext .js,.jsx --fix .", + "prettier": "prettier --check './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc", + "prettier:fix": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc" }, "dependencies": { "react": "^17.0.2",