From 6e4d6110538839e92694e201d1b1c8bdac5e3340 Mon Sep 17 00:00:00 2001 From: Christopher Loverich <1010084+cloverich@users.noreply.github.com> Date: Sat, 20 Jan 2024 08:32:12 -0800 Subject: [PATCH] add single lint script, re-name scripts --- .github/workflows/ci.yml | 4 ++-- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee3afe2..54cdd38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,5 +16,5 @@ jobs: with: node-version: 20.x - run: yarn install - - run: yarn run lint:check:prettier - - run: yarn run lint:check:types + - run: yarn run lint:prettier:check + - run: yarn run lint:types:check diff --git a/package.json b/package.json index a6c0c0b..5ec909f 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,10 @@ "main": "main.bundle.js", "license": "UNLICENSED", "scripts": { - "lint:check:prettier": "prettier . --check", - "lint:check:types": "tsc --noEmit --skipLibCheck", + "lint": "yarn run lint:prettier:check && yarn run lint:types:check", + "lint:prettier:check": "prettier . --check", + "lint:prettier:write": "prettier . --write", + "lint:types:check": "tsc --noEmit --skipLibCheck", "start": "node ./scripts/dev.js", "test": "mocha -r esm -r ts-node/register src/**/*.test.ts", "test:one": "mocha -r ts-node/register -r esm"