vue/one-component-per-file
enforce that each component should be in its own file
- ⚙️ This rule is included in the following preset configs:
*.configs["flat/strongly-recommended"]*.configs["flat/vue2-strongly-recommended"]*.configs["flat/recommended"]*.configs["flat/vue2-recommended"]"plugin:vue/strongly-recommended""plugin:vue/vue2-strongly-recommended""plugin:vue/recommended""plugin:vue/vue2-recommended"
📖 Rule Details
This rule checks if there is only one component per file.
🔧 Options
Nothing.
👫 Related Rules
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v7.0.0