mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Update APM linting dev doc with instructions about how to install the pre-commit hook and a link to the Kibana guide (#115924)
This commit is contained in:
parent
262d0cdafd
commit
6b5b06fc03
1 changed files with 9 additions and 0 deletions
|
@ -19,3 +19,12 @@ yarn prettier "./x-pack/plugins/apm/**/*.{tsx,ts,js}" --write
|
|||
```
|
||||
node scripts/eslint.js x-pack/plugins/apm
|
||||
```
|
||||
|
||||
## Install pre-commit hook (optional)
|
||||
In case you want to run a couple of checks like linting or check the file casing of the files to commit, we provide a way to install a pre-commit hook. To configure it you just need to run the following:
|
||||
|
||||
`node scripts/register_git_hook`
|
||||
|
||||
After the script completes the pre-commit hook will be created within the file .git/hooks/pre-commit. If you choose to not install it, don’t worry, we still run a quick CI check to provide feedback earliest as we can about the same checks.
|
||||
|
||||
More information about linting can be found in the [Kibana Guide](https://www.elastic.co/guide/en/kibana/current/kibana-linting.html).
|
Loading…
Add table
Add a link
Reference in a new issue