From 10d202439bbe19b693208c2618bc2c42d1600c04 Mon Sep 17 00:00:00 2001 From: Robert Pintilii Date: Thu, 20 Oct 2022 11:17:57 +0300 Subject: [PATCH] ref: Update npm scripts (#12422) --- .github/workflows/ci.yml | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7909aa1909..642ea4d956 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: run: npm run lang-sort - name: Check if the git repository is clean run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1) - - run: npm run lint + - run: npm run lint:ci - run: for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done linux-build: name: Build Frontend (Linux) diff --git a/package.json b/package.json index 4260886cb4..67fbb2d997 100644 --- a/package.json +++ b/package.json @@ -195,11 +195,11 @@ }, "license": "Apache-2.0", "scripts": { - "lint": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && npm run tsc:web", + "lint": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && tsc --noEmit", "tsc:web": "tsc --noEmit --project tsconfig.web.json", "tsc:native": "tsc --noEmit --project tsconfig.native.json", "tsc:ci": "npm run tsc:web && npm run tsc:native", - "lint:ci": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && npm run tsc:ci", + "lint:ci": "eslint --ext .js,.ts,.tsx --max-warnings 0 . && npm run tsc:web", "lang-sort": "./resources/lang-sort.sh", "lint-fix": "eslint --ext .js,.ts,.tsx --max-warnings 0 --fix .", "postinstall": "patch-package --error-on-fail && jetify",