Flo Edelmann
Flo Edelmann
I've opened an upstream issue: https://github.com/DmitrySoshnikov/regexp-tree/issues/217
@CamilleDrapier See #1870 and in particular https://github.com/vuejs/eslint-plugin-vue/issues/1870#issuecomment-1109670173. That issue should probably be implemented together with this one.
Instead of `allowPrefixes` and `allowSuffixes`, maybe an `ignore` option with regexes might be easier? And I'd refrain from allowing options per folder, as that get complex soon. There is already...
Makes sense. I'd suggest `vue/prefer-emits-arrow-function` as a rule name. Arrow functions work in both TypeScript and JavaScript, and the [preview docs section](https://staging.vuejs.org/guide/typescript/options-api.html#typing-component-props) linked [here](https://github.com/vuejs/core/issues/5343#issuecomment-1024899322) recommend using them. So I wouldn't...
Makes sense. I think the rule should indeed be called `vue/prefer-emits-arrow-function` and work like this: Don't report arrow functions or functions (shorthand or longhand) with an explicit `this` parameter typed...
Thanks for checking. > But note that the pattern bellow works well (i.e. no need to report it): Sure. That means that shorthand and longhand functions can be handled exactly...
PRs welcome!
That would collide with the [Style Guide](https://vuejs.org/style-guide/rules-recommended.html#element-attribute-order) and the existing [`vue/attributes-order`](https://eslint.vuejs.org/rules/attributes-order.html) rule. (See also the [`vue/prefer-true-attribute-shorthand`](https://eslint.vuejs.org/rules/prefer-true-attribute-shorthand.html) rule). Maybe it would be possible to add a new option `SHORTHAND_BOOL_ATTR` to the...
See also #1728. That issue should probably be implemented together with this one.
Good idea! But I'd make it more flexible by allowing to specify a regex. As a name, I'd suggest `vue/template-attribute-value-pattern`. The options could look similar to the [`vue/no-bare-strings-in-template`](https://eslint.vuejs.org/rules/no-bare-strings-in-template.html) rule: ```jsonc...