From 97ad11a4a146a9d34daf207837a47ffa4727fb5f Mon Sep 17 00:00:00 2001 From: what1s1ove Date: Tue, 5 Dec 2023 18:40:33 +0200 Subject: [PATCH] ci: improve lint script fp-52 --- .lintstagedrc.yml | 4 ++-- package.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.lintstagedrc.yml b/.lintstagedrc.yml index 9fecc96..e3f2cea 100644 --- a/.lintstagedrc.yml +++ b/.lintstagedrc.yml @@ -1,3 +1,3 @@ '*': npm run lint:fs && npm run lint:editorconfig -'*.{json,md,yml,js,ts,d.ts}': prettier --write, -'*.ts': npm run lint:ts +'*.{json,md,yml,js}': prettier --write, +'*.js': npm run lint:js && npm run lint:type diff --git a/package.json b/package.json index 61d663a..fe71762 100644 --- a/package.json +++ b/package.json @@ -23,13 +23,13 @@ }, "scripts": { "postinstall": "npx simple-git-hooks", - "format": "prettier --write \"**/*.{json,md,yml,js,ts,d.ts}\"", + "format": "prettier --write \"**/*.{json,md,yml,js}\"", "lint:fs": "ls-lint", - "lint:editorconfig": "editorconfig-checker", - "lint:format": "prettier --check \"**/*.{json,md,yml,js,ts,d.ts}\"", + "lint:editor": "editorconfig-checker", + "lint:format": "prettier --check \"**/*.{json,md,yml,js}\"", "lint:js": "eslint \"**/*.js\"", "lint:type": "tsc --noEmit", - "lint": "npm run lint:fs && npm run lint:editorconfig && npm run lint:format && npm run lint:ts", + "lint": "npm run lint:fs && npm run lint:editor && npm run lint:format && npm run lint:js && npm run lint:type", "test": "NODE_OPTIONS=--experimental-vm-modules npx jest", "test:watch": "jest --watch", "build:ts": "tsc && tscpaths -p tsconfig.json -s ./src -o ./build",