mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-07 08:00:57 +00:00
The new version of husky makes it possible to simplify the pre-commit hook a little. And since prettier no longer takes care of the JavaScript files in our project, it can no longer come into conflict with ESLint while running lint-staged. Therefore we can activate the correction of ESLint issues here.
6 lines
73 B
Bash
Executable File
6 lines
73 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if command -v npm &> /dev/null; then
|
|
npm run lint:staged
|
|
fi
|