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
"description": "The exponentiation operator (**) returns the result of raising the first operand to the power of the second operand. It is equivalent to Math.pow, except it also accepts BigInts as operands."
If this is `true`, the rule warns every reference to a variable before the variable declaration.
137
148
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.
138
149
Default is `true`.
150
+
*`allowNamedExports` (`boolean`) -
151
+
If this flag is set to `true`, the rule always allows references in `export {};` declarations.
152
+
These references are safe even if the variables are declared later in the code.
153
+
Default is `false`.
139
154
140
155
This rule accepts `"nofunc"` string as an option.
141
-
`"nofunc"` is the same as `{ "functions": false, "classes": true, "variables": true }`.
156
+
`"nofunc"` is the same as `{ "functions": false, "classes": true, "variables": true, "allowNamedExports": false }`.
142
157
143
158
### functions
144
159
@@ -267,3 +282,38 @@ const g = function() {}
267
282
constfoo=1;
268
283
}
269
284
```
285
+
286
+
### allowNamedExports
287
+
288
+
Examples of **correct** code for the `{ "allowNamedExports": true }` option:
* TODO(mdjermanovic): Add the following test cases once https://github.com/eslint/eslint-scope/issues/59 gets fixed:
0 commit comments