eslint-plugin-vue
eslint-plugin-vue copied to clipboard
Official ESLint plugin for Vue.js
**Please describe what the rule should do:** This rule should enforce including the `required` property, whether true or false, when defining a Vue Component prop as an object. **What category...
**Please describe what the rule should do:** At the moment this rule applies the casing rule globally for the entire component. But the usual way of writing components in a...
**Please describe what the rule should do:** The rule would disallow the use of fat arrow functions `data: () => {}` inside components. Any component's options that are functions (e.g....
**Tell us about your environment** * **ESLint version:** 5.14.1 * **eslint-plugin-vue version:** 5.2.2 * **Node version:** 10.11.0 **Please show your full configuration:** ```json { "root": true, "env": { "node": true...
**Tell us about your environment** * **ESLint version:** 5.15.1 * **eslint-plugin-vue version:** 5.2.2 * **Node version:** 10.12.29 **What did you do?** I imported the vue component from the right path....
**Please describe what the rule should do:** The rule should act identical to "vue/no-shared-component-data" except on the provide object. According to the Vue official docs (found [here](https://vuejs.org/v2/api/#provide-inject)) "The provide option...
### The Problem A lot of users [get upset](https://github.com/vuejs/vetur/issues/261) when the linter yells at them for not providing a `key` when it doesn't create a real problem and Vue itself...
**Please describe what the rule should do:** Enforce newline between same level HTML elements. **What category should the rule belong to?** - [x] Enforces code style - [ ] Warns...
**Tell us about your environment** Windows 10 * **ESLint version:** v5.10.0 * **eslint-plugin-vue version:** >= v5.0.0-beta.0 * **Node version:** v.10.13.0 **Please show your full configuration:** ```js module.exports = { extends:...
**Tell us about your environment** * **ESLint version:** 5.9.0 * **eslint-plugin-vue version:** 5.0.0 * **Node version:** 10.12.0 **What did you do?** I used latest vue-cli to create a demo. https://github.com/MarvinXu/standard-fix/blob/master/src/App.vue#L7...