mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
dd228c9ed022bf9c32d672dcda3ce2c5f9657891
Configures typescript-eslint for the project with an initial configuration that starts with their recommended rules, and adds/disables a few (generally either disabling warnings or promoting them to errors). The new `yarn lint` command is not hooked up to CI yet, so for now this is something we can opt-in to running locally. If you have some free time, help get us down to zero errors! My general philosophy for linting, which I propose we follow, is that lints should be very high-signal: * Error, don't warn. If it's worth mentioning it's worth fixing. * Enable rules that consistently identify real problems. If we frequently would have to disable the rule due to false positives, it isn't high-signal. * Enable rules that help improve consistent style (to avoid code review about style rather than substance).
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%