dotcom-rendering
dotcom-rendering copied to clipboard
ESLint rules for stuff
We make decisions about how to write code that’s consistent and follows the principle of least suprise, as per our recommendations of coding with empathy.
We use linting and formatting rules to ensure this consistency in our codebase. Examples include:
-
A11y
- #5997
-
De facto rules
- #5880
-
TypeScript
- https://typescript-eslint.io/rules/no-type-alias/#allowtupletypes
-
Code style consistency
- https://eslint.org/docs/latest/rules/arrow-body-style (currently 1000+ of both styles)