From fafd8afe49bd92c7b1cedc06b93dc0c35abc9362 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Wed, 9 Jun 2021 15:26:45 +0300 Subject: [PATCH] chore(lint): added lint scripts --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 00b0d5a..87888e2 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "start": "nodemon ./src/index.ts", "build": "tsc --project ./", "semantic-release": "semantic-release -d", - "postinstall": "[ -d .git ] && git config core.hooksPath ./.git-hooks || true" + "postinstall": "[ -d .git ] && git config core.hooksPath ./.git-hooks || true", + "lint:fix": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"", + "lint": "npx prettier --check \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"" }, "author": "Analytium", "dependencies": {