Wistia's ESLint configuration. This repo is "pseudo-public" - private on our org, and pushed to NPM for ease of distribution.
yarn add -D @wistia/eslint-config
- preference given for autofixable rules; for non-autofixable rules consider seeking consensus from co-workers (open a PR on this repo and ask for feedback in #engineering-general!)
- should not contradict existing rules
- person/team adding new rules handles upgrading consumers and fixing violations
- rules should always be set to
error
, neverwarn
(the latter are never fixed) - add short description of rule & link to rule definition in code comments
configs are additive, so start with a base config, either @wistia/eslint-config
or @wistia/eslint-config/typescript
and then apply further configs as desired.