FaasJS
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文

Documents / @faasjs/lint

@faasjs/lint

Lint tool for FaasJS, based on Biome.

License: MITNPM Version

Install

  1. Install @faasjs/lint:
npm install @faasjs/lint
  1. Create biome.json with content:
{
  "extends": ["@faasjs/lint/biome"]
}
  1. Add the following script to package.json:
  "scripts": {
    "lint": "biome lint"
  }

Tips for VSCode

  1. Install Biome extension.
  2. Update your .vscode/settings.json with the following content:
{
  "editor.codeActionsOnSave": {
    "source.fixAll": "explicit",
    "quickfix.biome": "explicit"
  },
  "editor.formatOnSave": true
}

References

  • Biome CLI.

Troubleshooting

  • If you encounter any issues, please refer to the FaasJS documentation or open an issue on GitHub.