mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Replace wrap-warning-with-env-check with an eslint plugin (#17540)
* Replace Babel plugin with an ESLint plugin * Fix ESLint rule violations * Move shared conditions higher * Test formatting nits * Tweak ESLint rule * Bugfix: inside else branch, 'if' tests are not satisfactory * Use a stricter check for exactly if (__DEV__) This makes it easier to see what's going on and matches dominant style in the codebase. * Fix remaining files after stricter check
This commit is contained in:
@@ -17,7 +17,7 @@ const pathToBabelPluginDevWithCode = require.resolve(
|
||||
'../error-codes/transform-error-messages'
|
||||
);
|
||||
const pathToBabelPluginWrapWarning = require.resolve(
|
||||
'../babel/wrap-warning-with-env-check'
|
||||
'../babel/lift-warning-conditional-argument'
|
||||
);
|
||||
const pathToBabelPluginAsyncToGenerator = require.resolve(
|
||||
'@babel/plugin-transform-async-to-generator'
|
||||
|
||||
Reference in New Issue
Block a user