%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/@next/eslint-plugin-next/lib/rules/
Upload File :
Create Path :
Current File : /var/www/html/node_modules/@next/eslint-plugin-next/lib/rules/no-head-element.js

module.exports = {
  meta: {
    docs: {
      description: 'Prohibit usage of HTML <head> element',
      category: 'HTML',
      recommended: true,
      url: 'https://nextjs.org/docs/messages/no-head-element',
    },
    fixable: 'code',
  },

  create: function (context) {
    return {
      JSXOpeningElement(node) {
        if (node.name.name !== 'head') {
          return
        }

        context.report({
          node,
          message: `Do not use <head>. Use Head from 'next/head' instead. See: https://nextjs.org/docs/messages/no-head-element`,
        })
      },
    }
  },
}

Zerion Mini Shell 1.0