Lint tool for FaasJS, based on Biome.
- Install
@faasjs/lint
:
npm install @faasjs/lint
- Create
biome.json
with content:
{
"extends": ["@faasjs/lint/biome"]
}
- Add the following script to
package.json
:
"scripts": {
"lint": "biome lint"
}
- Install Biome extension.
- Update your
.vscode/settings.json
with the following content:
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"quickfix.biome": "explicit"
},
"editor.formatOnSave": true
}
- If you encounter any issues, please refer to the FaasJS documentation or open an issue on GitHub.