Most companies have code quality and code writing standards. But similar to the CSS code standards mentioned in a different post, what good are code standards if they aren’t automatically enforced?
A peer review may catch some but not all. This is where ESLint comes in to help automatically find and suggest fixes for all of the rules we have enabled for this package.
We sat down and defined a specific set of code standards we were going to enforce and enabled them on ESLint. ESLint can scan on demand during development to catch issues as well as automatically on build. Some rules are just suggestions for improving code, others are considered errors and code cannot be released to production without corrections.
const means this is a constant value. ESLint is smart enough to determine if you’re trying to modify a constant value. It’s also smart enough to notice you declared a variable as
let but never changed it so you should use
There are performance and other optimizations that go along with ESLint. As an example if you declare a bunch of variables but never use them that just adds unnecessary memory utilization to your application and reduces readability to a developer. ESLint is a strategic package we use to help release quality code every release.
Package Name: ESLint