@svengroup/openapi-to-pdf
Version:
Create PDF API reference documentation from OpenAPI 3.0.x specification files.
36 lines (21 loc) • 1 kB
Markdown
# Contribution Guide
> **If you found a security vulnerability, do not open a Github Issue.** Instead, send an email to [infosec@svengroup.com](mailto:infosec@svengroup.com).
## Requirements
- Node 20.18.x
## Linting
To lint JS/TS files run the following command:
```shell
npm run lint
```
The `npm run lint` command is part of a git pre-commit hook. Make sure you set git hooks as executable with:
```shell
chmod ug+x .githooks/pre-commit # for UNIX systems
```
## Formatting
This repository comes with a [.editorconfig](./.editorconfig) file to aid in formatting. This works with multiple IDEs but if you're using VSCode, make sure to install the [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) plugin to make it work.
*Prettier was not installed since it currently has issues with keeping line breaks that developers often add for readability.*
## Testing
Execute the following command to run tests:
``` shell
npm run test
```