Josh shows how you can use ESLint to set rules for your JavaScript/TypeScript code and how you can easily format it. He uses VS Code here, but you can do the same things in Visual Studio.
Chapters:
00:00 - Introduction
02:10 - Configuring VS Code to run ESLint and Prettier
03:15 - Running ESLint manually
04:15 - Examples of finding issues with your code
05:20 - Installing and configuring the ESLint extension
06:35 - More examples of finding issues with your code
10:00 - Linting vs formatting
10:45 - Formatting with Prettier
12:00 - Formatting on save or manually
13:30 - Linting and formatting when code is checked in to source control
17:30 - Discussion of using linting and formatting when working in teams
20:45 - Wrap-up
Resources:
Learn more about using ESLint at eslint.org/docs/latest/use/ge...
Learn how to use ESLint in Visual Studio at learn.microsoft.com/en-us/vis...
21 июл 2024