ESLint
Catch errors and enforce code styles.
ESLint
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript.
Prettier
An opinionated code formatter that enforces a consistent style by parsing your code and re-printing it with its own rules.
Installation
Use Anthony Fu's configuration
Anthony Fu's ESLint Configuration
Downversion to ESLint 8.57.0
ESLint 9 is installed by default, which as of writing is still buggy and incompatible with many plugins.
Install eslint-plugin-format
if it's missing in package.json
.
The commands need to be run in order for the rest of the packages to be installed.
Your entire project will be linted and fixable errors will be fixed.
You should also see a browser tap open up with the address localhost:7777
. This is the ESLint Config Inspector, which is only available for flat ESLint configs, like the one we just configured.
Last updated on