mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-14 06:58:59 +00:00
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:
@@ -33,7 +33,7 @@ jobs:
|
||||
|
||||
- name: Run ESLint
|
||||
run: |
|
||||
npm run lints
|
||||
npm run lint
|
||||
|
||||
- name: Run Prettier
|
||||
run: |
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npm test
|
||||
npm run lints
|
||||
npm run lint
|
||||
npx lint-staged
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user