Skip to content

Commit bb600b3

Browse files
committed
[lint] move use lint to non-experimental (#27768)
`use` is being stabilized, so let's make sure the lint is updated for the next release. DiffTrain build for [b8be034](b8be034)
1 parent 2f391b0 commit bb600b3

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c17a27ef492d9812351aecdfb017488e8e8404ce
1+
b8be034f07e1abc59863742063f5baeff20e33fe

compiled/facebook-www/eslint-plugin-react-hooks.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
9191
/* global BigInt */
9292

9393
function isHookName(s) {
94-
{
95-
return s === 'use' || /^use[A-Z0-9]/.test(s);
96-
}
94+
return s === 'use' || /^use[A-Z0-9]/.test(s);
9795
}
9896
/**
9997
* We consider hooks to be a hook name identifier or a member expression
@@ -171,9 +169,7 @@ function isUseEffectEventIdentifier$1(node) {
171169
}
172170

173171
function isUseIdentifier(node) {
174-
{
175-
return node.type === 'Identifier' && node.name === 'use';
176-
}
172+
return node.type === 'Identifier' && node.name === 'use';
177173
}
178174

179175
var RulesOfHooks = {

0 commit comments

Comments
 (0)