Skip to content

nextjs/no-head-element Correctness

This rule is turned on by default.

What it does

Prevent usage of <head> element.

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-head-element --nextjs-plugin
json
{
  "plugins": ["nextjs"],
  "rules": {
    "nextjs/no-head-element": "error"
  }
}

References

Released under the MIT License.