dillon1000/react
Commit
Browse files Support customizable eslint suppressions
The compiler bails out of compiling code that contains suppressions of the official React ESLint rules. However, some apps may use additional rules that they want to trigger bailouts for, or use the official rules under a different name (we do this at Meta). This PR adds a compiler flag to specify a custom set of line rule names, suppression of which should trigger a bailout.
Changed paths6 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/Entrypoint/EslintSuppression.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Entrypoint/Options.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.bailout-on-suppression-of-custom-rule.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.bailout-on-suppression-of-custom-rule.js AddedM compiler/packages/fixture-test-utils/src/compiler-utils.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…