(upbeat music0 … - [Instructor] This challenge was to enforce … best practices around punctuation and line length … in this java script code. … So the way I like to approach these … is to start with my eslintrc file. … Get the rules in place that will highlight … issues with my existing code … and then I can work on it from there. … So I have several eslint rules that will help me … identify issues with this code … and enforce those best practices. … First off is just requiring semi-colons, … and that's the semi rule. … Don't even need quotes on that. … And that is an error, … and I want it always. … And then I also want to make sure … that I don't have a space before my semi-colons … So that's semi-spacing … and that value is simply error. … And I want to disallow extra unneeded semi-colons, … so that's no-extra-semi … and error. … Then in terms of my lines, … I want to make sure that I don't have … unexpected multilines, … so that's the no unexpected multiline key. … And it's value is simply error. …
- 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.