From the course: Node.js: Testing and Code Quality
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Comparing JavaScript linters
From the course: Node.js: Testing and Code Quality
Comparing JavaScript linters
- [Narrator] There are a number of different JavaScript Linters available that can be used to find suspicious code. Believe it or not, you already have a linter installed. Node.js has a built-in checker through the command line, just type node dash dash check and then the path to the file. This checks for syntax errors in a single target file. While this does have some utility, like a quick one-off sanity check, it doesn't scale to an entire project. The three most common JavaScript Linters are, JSLint, JSHint and ESLint. There all JavaScript syntax checkers and validators, each of them supports ES6 standards at a minimum and they're all free and open source software. Let's take a closer look at each. JSLint from jslint.com is by Douglas Crockford author of the fantastic book ''JavaScript: The Good Parts''. JSLint works well out of the box, but that's both its power and its limitation. There are very few configuration…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Standardizing with EditorConfig8m 23s
-
(Locked)
Adding EditorConfig to a project and IDE4m 3s
-
(Locked)
Comparing JavaScript linters4m 56s
-
(Locked)
Installing ESLint3m 47s
-
(Locked)
Configuring ESLint6m 23s
-
(Locked)
Extending an ESLint shareable config5m 5s
-
(Locked)
Linting your codebase6m 14s
-
(Locked)
Fixing code in VSC with ESLint7m 3s
-
(Locked)
Challenge: Create a shareable ESLint config51s
-
(Locked)
Solution: Create a shareable ESLint config5m 25s
-
(Locked)
-
-
-
-