Skip to content

Instantly share code, notes, and snippets.

@wyozi
Last active October 10, 2023 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyozi/2992ee8133efd5e0ac62deabd6c51d65 to your computer and use it in GitHub Desktop.
Save wyozi/2992ee8133efd5e0ac62deabd6c51d65 to your computer and use it in GitHub Desktop.
Next.js ESLint rule to enforce prefetch={false} for links
const rulesDirPlugin = require("eslint-plugin-rulesdir");
rulesDirPlugin.RULES_DIR = "eslint-rules";
module.exports = {
rules: {
"rulesdir/no-link-prefetch": "error",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment