dotcom-rendering icon indicating copy to clipboard operation
dotcom-rendering copied to clipboard

ESLint rules for stuff

Open mxdvl opened this issue 1 year ago • 0 comments

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)

mxdvl avatar Aug 26 '22 09:08 mxdvl