mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
fix(linter/node/no-exports-assign): change category from style to suspicious (#26555)
Closes #26282. `exports = {}` is most likely a bug (reassigns the local `exports` binding, not `module.exports`), so it fits the `suspicious` category better than `style`. Test still passes. AI disclosure: assisted by AI (Hermes/Sera); human-reviewed. Agent-Owner:sera Signed-off-by: Bartok9 <259807879+Bartok9@users.noreply.github.com> Co-authored-by: Cameron <cameron.clark@hey.com>
This commit is contained in:
1 parent
cce28a0f72
commit
ebb22f15fa
1 file changed
+1
-1
@@ -54,7 +54,7 @@ declare_oxc_lint!(
|
||||
/// ```
|
||||
NoExportsAssign,
|
||||
node,
|
||||
style,
|
||||
suspicious,
|
||||
fix,
|
||||
version = "0.9.3",
|
||||
short_description = "Disallows assignment to `exports`.",
|
||||
|
||||
Reference in new issue
Block a user