Skip to content

nextjs/no-assign-module-variable Correctness ​

✅ This rule is turned on by default.

What it does ​

Why is this bad? ​

Example ​

javascript

How to use ​

To enable this rule in the CLI or using the config file, you can use:

bash
oxlint --deny nextjs/no-assign-module-variable --nextjs-plugin
json
{
  "plugins": ["nextjs"],
  "rules": {
    "nextjs/no-assign-module-variable": "error"
  }
}

References ​

Released under the MIT License.