mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix Prettier
This commit is contained in:
@@ -715,9 +715,7 @@ export default {
|
||||
if (suggestUseCallback && fn.type === 'Variable') {
|
||||
suggest = [
|
||||
{
|
||||
desc: `Wrap the '${
|
||||
fn.name.name
|
||||
}' definition into its own useCallback() Hook.`,
|
||||
desc: `Wrap the '${fn.name.name}' definition into its own useCallback() Hook.`,
|
||||
fix(fixer) {
|
||||
return [
|
||||
// TODO: also add an import?
|
||||
|
||||
Reference in New Issue
Block a user