There’s another type of automated tool providing a safety blanket — linters. They allow you to verify properties of code that are beyond the domain of type checkers. For example, when using promises in JS, there’s a rule
either return or promise, or call .done()
on it
This rule is not enforceable by the type system, but it is enforceable by a linter.
Reading through available config options will likely reveal lots of nice safety features. Spending a day fixing the initial barrage of warnings/errors, and then automating linting, is likely worth your while, as it will catch some errors, normalize your code base, and thus help keep cognitive overhead down.
Comments
Post a Comment