Skip to content

Integrations

Yuki edited this page Jul 10, 2026 · 1 revision

Integrations

The CLI remains the source of truth for full reports, baselines, SARIF, HTML, and CI behavior. The integration templates are intentionally small starting points.

Prettier

The repository includes .prettierrc.json and .prettierignore.

npm run format:check

Use Prettier for repository formatting. Use the detector for localization quality.

Pre-commit Hook

Use this template in .git/hooks/pre-commit:

#!/usr/bin/env bash
set -euo pipefail

npm run typecheck
npm test
npm run check:package

Make it executable:

chmod +x .git/hooks/pre-commit

Teams that use Husky or lefthook can run the same commands from those tools.

ESLint

integrations/eslint-plugin-i18n-smell-detector contains an experimental ESLint plugin with a JSX static text rule.

It is meant for fast editor feedback. The CLI should still be used for full project checks because it understands locale files, baselines, reports, and CI severity thresholds.

VS Code

integrations/vscode-extension contains a minimal extension template that contributes a command for running the CLI in a terminal.

Future work can turn JSON output into diagnostics.

Clone this wiki locally