Skip to content

Error: The template root requires exactly one element. (vue/no-multiple-template-root) #329

@ronrix

Description

@ronrix

I'm currently working on a Nuxt.js project and I’ve stumbled upon a problem where a page, which has already had its page transition set to false using definePageMeta, is not being recognized by ESLint.

here's my eslint config:

	root: true,
	env: {
		browser: true,
		node: true,
	},
	extends: ['@nuxt/eslint-config', 'plugin:prettier/recommended'],
	rules: {
		'no-console': 'off',
		'@typescript-eslint/no-unused-vars': [
			'error',
			{ args: 'after-used', argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
		],
		'vue/multi-word-component-names': 0,
		'vue/require-default-prop': 'off',
		'vue/html-self-closing': ['error', { html: { void: 'always' } }],
		'vue/no-setup-props-destructure': 'off',
		'prefer-const': ['error', { destructuring: 'all' }],
	},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions