This project uses Nuxt's relatively new (as of 2024/03/22) eslint-config.
To lint the entire project, run:
npm run lint
npm run lint:fix # to fix
Note: This doesn't always fix everything which may be due to a mistake in how I've set it up.
If you are using Visual Studio Code and want editor integration,
- Install the following extensions:
-
Use the following config to enable autoformatting:
{ "eslint.experimental.useFlatConfig": true, "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" } }