n this exercise, Kent installs the eslint Node module. He then walks through the configuration and writing of the library’s first lint script. The solution to this exercise is on the FEM/04.0-linting branch.
(exciting music)…- So let's go ahead and let's add linting.…We're going to install these dependencies,…you don't have to run this command.…These are actually already installed for you,…but then we're going to configure eslint…and add the linting script.…The linting script is actually the easiest part of this.…We'll just go ahead and do that first.…In your script's object, we're going to use…npm scripts for pretty much everything in this project.…
We're not using grunt or gulp,…we don't really need those things here.…We'll say lint and we'll say eslint dot,…so a dot is like, hey eslint, lint everything…inside this directory.…By default it will skip node modules,…so you don't need to worry about that.…Yeah.…- [Student 1] My questions is, so does that mean es6…is discouraged to use with node?…- So, es6 is totally encouraged to use with node,…you just have to know where your code…is going to be consumed.…
If you're shipping your code to node version 0.12,…for example, then you don't want to be shipping es6 code.…But that's why we're going to add transplation.…
Note: This course was created by Frontend Masters. It was originally released on 08/09/2016. We're pleased to host this training in our library.
- Creating an open-source library
- Linting and testing
- Code coverage
- Installing and configuring Babel
- Peer dependencies
- Forking and renaming
- Continuous integration and automating releases
Skill Level Intermediate
1. Creating an Open-Source Library
2. Linting and Testing
3. Git Hooks, Babel, and Webpack
4. Continuous Integration and Automating Releases
- 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.