(upbeat music) … - [Instructor] The challenge consists … of enforcing appropriate single line … and multiline syntax for comments, … enforcing leading spaces and also Strict Mode. … So the first thing I want to do … is start by building out some rules, … because building out the rules first … will help me then see in my editor what needs to be changed. … So, my ESLintrc File has no rules right now. … I know I want to enforce Strict Mode, … so I'm going to start by adding Strict, … and that value is an array … which starts with Error and then Global. … Then I want to specify … what my multiline comment style should look like. … So that's Multiline-Comment-Style … and an array which is Error … and we want to use Starred-Block … to make this multiline comments really easy to read. … And finally, I want to enforce leading spaces in my comments. … So that's the Spaced-Comment rule … with a value of an array which is Error and Always. … So save my ESLintrc, … immediately I can see all of the red …
- Using modern deployment tools
- Working with ESLint
- Creating easy-to-read comments
- Using commas consistently
- Standardizing line length in your code
- Using a consistent format for blocks
- Choosing and implementing a standard indent
Skill Level Intermediate
Workflow Tools for Web Developerswith Christina Truong1h 13m Intermediate
Set up your environment3m 22s
1. Why Best Practices?
2. Creating Comments
3. Using Punctuation
4. Using Spacing
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.