Skip to content

"eslint-plugin-vue": "~10.3.0" raises error: component name "default" should always be multi-word.eslintvue/multi-word-component-names #2937

@MahmonirB

Description

@MahmonirB

What rule do you want to change?
"eslint-plugin-vue": "~10.3.0"

Does this change cause the rule to produce more or fewer warnings?
Fewer warnings. It would allow special framework-convention filenames like default.vue, index.vue, error.vue, and 404.vue without triggering the rule.

How will the change be implemented? (New option, new default behavior, etc.)?
Modify a new behavior to ignore files like default, index and error without putting them in ignore section of .eslintrc

Please provide some example code that this change will affect:

<!-- default.vue -->
<template>
  <div>Default layout</div>
</template>

What does the rule currently do for this code?
Component name "default" should always be multi-word.eslintvue/multi-word-component-names

What will the rule do after it's changed?
Without warning or errror we will create default.vue in version 10

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