ESLint + Prettier Shared Config for React (Next.js)

ESLint + Prettier Shared Config for React (Next.js)

Mykhaylo Ryechkin

3 года назад

8,118 Просмотров

Learn how to create and publish a custom ESLint and Prettier shared config, for use in Next.js projects!

The config built in this video is also available on NPM: https://www.npmjs.com/package/eslint-config-acme

ESLint: https://eslint.org
Prettier: https://prettier.io

Timestamps:

00:00 - Intro
00:30 - Overview
01:35 - Initial project setup
03:17 - Main configuration setup
04:36 - Specifying environments
05:54 - Parser options
07:05 - Shared settings
08:15 - Rule overrides
11:41 - Publishing to NPM
15:16 - Adding config to Next.js project
19:42 - Outro

GitHub: https://github.com/mryechkin
Twitter: https://twitter.com/mryechkin
Ссылки и html тэги не поддерживаются


Комментарии: