Skip to content

Commit

Permalink
build: rename lint command (anuraghazra#2909)
Browse files Browse the repository at this point in the history
This commit renames the eslint npm command so that it is consistent with
the naming used for the other commands.
  • Loading branch information
rickstaa authored and jacobbexten committed Nov 6, 2024
1 parent b50bc51 commit bc9b95a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Run ESLint
run: |
npm run lints
npm run lint
- name: Run Prettier
run: |
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
. "$(dirname -- "$0")/_/husky.sh"

npm test
npm run lints
npm run lint
npx lint-staged
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bc9b95a

Please sign in to comment.