ITADN

Prettier ignores html-element-content-newline

#36ClosedErythros 创建于 2023-09-27
E
Erythroscommented
There's [a rule ](https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html)that can be activated for VUE for `singleline-html-element-content-newline`. I love the rule, works great with the config, but I could not make it work at all with prettier ![phpstorm64_22xOpzHzlk](https://github.com/sxzz/eslint-config/assets/2624183/1f234a1f-3aee-469a-ba36-858b89425e38) While this is not a bug report per se, I was just wondering if you have any suggestions on how to solve this. It also adds a space before and after the content, but I guess this is less relevant right now. Config example: ```ts // eslint.config.js import {sxzz} from "@sxzz/eslint-config"; export default sxzz( [ { rules: { "vue/singleline-html-element-content-newline": [ "error", { ignoreWhenNoAttributes: true, ignoreWhenEmpty: true, ignores: ["pre", "textarea"] } ] } } ], {vue: true, prettier: true, markdown: true, unocss: false} ); ```
关闭于 2023-09-28 1 条评论