mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fcfb66914ad98c6b1d09cfc232bb42729e85848f
To unblock internal experimentation, for now let's just skip over compiling any file that contains one or more disables of React's eslint rules, and log that. This is a little coarse in the sense that we could skip over just functions that contain the comments, but Babel doesn't provide an easy way to traverse comments afaict so this is the simplest solution. I did check our internal repo and noted that there was only one disable of exhaustive-hooks in that entire directory in one file, so this should be fine. Notably we are not throwing any errors if we detect these violations as we don't want to fail the build, we just want to skip them for now.
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%