stable

Clone or download

Read-only

Fix git hooks

Part of epic #12142 Baseline v1 `make install` is required to make git hooks working. Tuleap git hooks cannot be used in baseline plugin for multiple reasons: - it depends on local installation of phpcs, stylelint and prettier - it depends on .eslintrc.js - it uses a fixed git sha1 to filter files added before this commit So we have to duplicate these scripts in baseline code base. Change-Id: Iecad94f5e7aa56055869270a4e52d0301b4b005d

Modified Files

Name
M .gitignore +3 −0 Go to diff View file
M Makefile +11 −6 Go to diff View file
A package-lock.json +3841 −0 Go to diff View file
A package.json +19 −0 Go to diff View file
M tools/utils/githooks/hook-chain +9 −2 Go to diff View file
A tools/utils/githooks/pre-commit-01-no-trailing-whitespace +14 −0 Go to diff View file
A tools/utils/githooks/pre-commit-02-phpcs +62 −0 Go to diff View file
A tools/utils/githooks/pre-commit-03-stylelint +66 −0 Go to diff View file
A tools/utils/githooks/pre-commit-04-eslint +79 −0 Go to diff View file
A tools/utils/githooks/pre-commit-05-prettier +32 −0 Go to diff View file