mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
a37b2cd24e
- up until this commit, git hooks were only used by a handful of people because they were a pain: - they'd only be set up when you did `yarn setup` - the existing hooks ran `yarn lint` on all projects, which was incredibly slow - as a result, not many of us actually had them enabled, but this would cause issues in CI because people were pushing un-linted commits - other JS projects tend to use husky to automate the git hook setup and lint-staged to speed up linting on changed files - this commit switches to using them both - `lint-staged` only runs `eslint` on staged JS files that are about to be committed - if there's a linting error, it will stop the commit - I've configured the pre-commit hook to successfully exit in CI because we don't want to run pre-commit hooks right now - this means we can remove Grunt - yay! |
||
---|---|---|
.. | ||
content | ||
core | ||
test | ||
.c8rc.json | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
config.development.json | ||
ghost.js | ||
index.js | ||
jsconfig.json | ||
loggingrc.js | ||
MigratorConfig.js | ||
package.json |