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.
This commit is contained in:
Rick Staa
2023-07-05 00:08:59 +02:00
committed by GitHub
parent 6c92fe9d2a
commit b7928aae24
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
- name: Run ESLint
run: |
npm run lints
npm run lint
- name: Run Prettier
run: |
+1 -1
View File
@@ -2,5 +2,5 @@
. "$(dirname -- "$0")/_/husky.sh"
npm test
npm run lints
npm run lint
npx lint-staged
+1 -1
View File
@@ -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",