The next-pwa repository runs ESLint, Prettier to lint and format the codebase.
To lint the codebase (except examples and docs) you can run:
pnpm lintIf you get errors, you can run the ESLint and Prettier auto-fix using:
pnpm lint -- --fixNot all rules can be auto-fixed, so some manual changes might be required.
We recommend installing the ESLint plugin for VS Code.
You can find the enabled rules in the ESLint config.
We recommend installing the Prettier plugin for VS Code.
You can find the format configuration in the Prettier config.