supastarter for Nuxtsupastarter for NuxtWorking with the codebase
Formatting and linting
Learn how to format and lint your supastarter codebase.
supastarter uses Oxlint for linting and Oxfmt for formatting, as part of the Oxc toolchain. Together they deliver very fast linting and formatting, with features such as automatic Tailwind CSS class sorting built into Oxfmt.
Auto-format and fix code on save
By default, the Oxc VS Code extension is set up to format and lint the codebase while you are developing.
If you want to disable this behavior, open the .vscode/settings.json file and set the following options:
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "never"
}
}Manual formatting and linting
To manually format your codebase run:
pnpm formatTo manually lint your codebase run:
pnpm lintTo fix all the linting errors in your codebase run:
pnpm lint --fix