Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 862 Bytes

File metadata and controls

29 lines (17 loc) · 862 Bytes

Linting

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 lint

If you get errors, you can run the ESLint and Prettier auto-fix using:

pnpm lint -- --fix

Not all rules can be auto-fixed, so some manual changes might be required.

ESLint

We recommend installing the ESLint plugin for VS Code.

You can find the enabled rules in the ESLint config.

Prettier

We recommend installing the Prettier plugin for VS Code.

You can find the format configuration in the Prettier config.