You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/rules/no-use-before-define.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -136,20 +136,20 @@ export { foo };
136
136
```
137
137
138
138
*`functions` (`boolean`) -
139
-
The flag which shows whether or not this rule checks function declarations.
140
-
If this is `true`, this rule warns every reference to a function before the function declaration.
141
-
Otherwise, ignores those references.
142
-
Function declarations are hoisted, so it's safe.
139
+
This flag determines whether or not the rule checks function declarations.
140
+
If this is `true`, the rule warns on every reference to a function before the function declaration.
141
+
Otherwise, the rule ignores those references.
142
+
Function declarations are hoisted, so it's safe to disable this option (note that some idiomatic patterns, such as [mutual recursion](https://en.wikipedia.org/wiki/Mutual_recursion), are incompatible with enabling this option).
143
143
Default is `true`.
144
144
*`classes` (`boolean`) -
145
-
The flag which shows whether or not this rule checks class declarations of upper scopes.
146
-
If this is `true`, this rule warns every reference to a class before the class declaration.
147
-
Otherwise, ignores those references if the declaration is in upper function scopes.
148
-
Class declarations are not hoisted, so it might be danger.
145
+
This flag determines whether or not the rule checks class declarations of upper scopes.
146
+
If this is `true`, the rule warns on every reference to a class before the class declaration.
147
+
Otherwise, the rule ignores such references, provided the declaration is in an upper function scope.
148
+
Class declarations are not hoisted, so it might be dangerous to disable this option.
149
149
Default is `true`.
150
150
*`variables` (`boolean`) -
151
151
This flag determines whether or not the rule checks variable declarations in upper scopes.
152
-
If this is `true`, the rule warns every reference to a variable before the variable declaration.
152
+
If this is `true`, the rule warns on every reference to a variable before the variable declaration.
153
153
Otherwise, the rule ignores a reference if the declaration is in an upper scope, while still reporting the reference if it's in the same scope as the declaration.
0 commit comments