vuejs / eslint-plugin-vue

Official ESLint plugin for Vue.js
https://eslint.vuejs.org/
MIT License
4.47k stars 667 forks source link

Add way to ignore files in certain paths for multi-word-component-names #2579

Closed jewpaltz closed 1 month ago

jewpaltz commented 1 month ago

BH

The rule in [https://github.com/vuejs/eslint-plugin-vue/blob/aa476d619434fba88984604c5fa2d3a530775926/lib/rules/multi-wordcomponentnames.Js] is important. It is part of vue's style guide. However there are exceptions.

The rule even has an ignore clause. Where you can add certain component names to be ignored.

However sometimes an entire folder should be ignored.

For instance, when you are using file based routing. You wouldn't want all of your routes to have multi-word paths.

So I'm asking for the ignore parameter to also accept paths. Or some other solution that would accomplish the most goal.

FloEdelmann commented 1 month ago

Duplicate of #2434.

You can use overrides in .eslintrc.js, or files in eslint.config.js.