1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-next-js

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
linting.md 1.1 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Mayank Kamboj Отправлено 12.10.2023 19:14 a5d34d5

Linting

The Next.js repository runs ESLint, Prettier and alex to lint and format all code and documentation.

To lint all code 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, some require manual changes.

If you get a warning by alex, follow the instructions to correct the language.

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.

alex

We recommend installing the AlexJS Linter extension for VSCode

You can find the configuration in the alex config.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-next-js.git
git@api.gitlife.ru:oschina-mirror/mirrors-next-js.git
oschina-mirror
mirrors-next-js
mirrors-next-js
canary