mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Switch to 'npx' for lint-staged in pre-commit hook (#3658)
This way we get rid of the script entry in the `package.json` and the whole thing becomes a little less complex.
This commit is contained in:
parent
c485ff670d
commit
0b3a04c520
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if command -v npm &> /dev/null; then
|
if command -v npx &> /dev/null; then
|
||||||
npm run lint:staged
|
npx lint-staged
|
||||||
fi
|
fi
|
||||||
|
@ -23,14 +23,15 @@ _This release is scheduled to be released on 2025-01-01._
|
|||||||
- [linter] Re-activate `eslint-plugin-package-json` to lint `package.json` (#3643)
|
- [linter] Re-activate `eslint-plugin-package-json` to lint `package.json` (#3643)
|
||||||
- [linter] Add linting for markdown files (#3646)
|
- [linter] Add linting for markdown files (#3646)
|
||||||
- [calendar] Add ability to display end date for full date events, where end is not same day (showEnd=true) (#3650)
|
- [calendar] Add ability to display end date for full date events, where end is not same day (showEnd=true) (#3650)
|
||||||
- [core] Add text to the config.js.sample file about the locale variable (#3654)
|
- [core] Add text to the config.js.sample file about the locale variable (#3654, #3655)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- [core] Run code style checks in workflow only once (#3648)
|
- [core] Run code style checks in workflow only once (#3648)
|
||||||
- [core] Fix animations export #3644 only on server side (#3649)
|
- [core] Fix animations export #3644 only on server side (#3649)
|
||||||
- [core] Use project URL in fallback config.
|
- [core] Use project URL in fallback config (#3656)
|
||||||
- [core] fix Access Denied crash writing js/positions.js (on synology nas) #3651. new message, MM starts, but no modules showing
|
- [core] Fix Access Denied crash writing js/positions.js (on synology nas) #3651. new message, MM starts, but no modules showing (#3652)
|
||||||
|
- [linter] Switch to 'npx' for lint-staged in pre-commit hook
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
@ -40,7 +41,7 @@ _This release is scheduled to be released on 2025-01-01._
|
|||||||
### Updated
|
### Updated
|
||||||
|
|
||||||
- [repo] Reactivate `stale.yaml` as GitHub action to mark issues as stale after 60 days and close them 7 days later (if no activity) (#3577, #3580, #3581)
|
- [repo] Reactivate `stale.yaml` as GitHub action to mark issues as stale after 60 days and close them 7 days later (if no activity) (#3577, #3580, #3581)
|
||||||
- [core] Update electron dependency to v32 (test electron rebuild) and other dependencies
|
- [core] Update electron dependency to v32 (test electron rebuild) and other dependencies (#3657)
|
||||||
- [tests] All test configs have been updated to allow full external access, allowing for easier debugging (especially when running as a container)
|
- [tests] All test configs have been updated to allow full external access, allowing for easier debugging (especially when running as a container)
|
||||||
- [core] Run and test with node 23 (#3588)
|
- [core] Run and test with node 23 (#3588)
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@
|
|||||||
"lint:js": "eslint . --fix",
|
"lint:js": "eslint . --fix",
|
||||||
"lint:markdown": "markdownlint-cli2 . --fix",
|
"lint:markdown": "markdownlint-cli2 . --fix",
|
||||||
"lint:prettier": "prettier . --write",
|
"lint:prettier": "prettier . --write",
|
||||||
"lint:staged": "lint-staged",
|
|
||||||
"postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"",
|
"postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"",
|
||||||
"prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed.",
|
"prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed.",
|
||||||
"server": "node ./serveronly",
|
"server": "node ./serveronly",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user