From b7928aae24c9f70bd681aa230a2cc1891aa58dfb Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Wed, 5 Jul 2023 00:08:59 +0200 Subject: [PATCH] build: rename lint command (#2909) This commit renames the eslint npm command so that it is consistent with the naming used for the other commands. --- .github/workflows/test.yml | 2 +- .husky/pre-commit | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 92f0bd1..ec679bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,7 @@ jobs: - name: Run ESLint run: | - npm run lints + npm run lint - name: Run Prettier run: | diff --git a/.husky/pre-commit b/.husky/pre-commit index 33964e9..804ea42 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,5 +2,5 @@ . "$(dirname -- "$0")/_/husky.sh" npm test -npm run lints +npm run lint npx lint-staged diff --git a/package.json b/package.json index a346b50..0582102 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "format": "prettier --write .", "format:check": "prettier --check .", "prepare": "husky install", - "lints": "npx eslint --max-warnings 0 \"./src/**.js\" \"./scripts/**.js\" \"./tests/**.js\" \"./api/**.js\" \"./themes/**.js\"" + "lint": "npx eslint --max-warnings 0 \"./src/**.js\" \"./scripts/**.js\" \"./tests/**.js\" \"./api/**.js\" \"./themes/**.js\"" }, "author": "Anurag Hazra", "license": "MIT",