meteorlxy / eslint-plugin-prettier-vue

:ok_hand: ESLint plugin for Prettier formatting, which is better for Vue SFC
MIT License
115 stars 9 forks source link

How can I change all error to warning? #19

Closed ttpjb closed 3 years ago

ttpjb commented 3 years ago

image from red underlie to yellow underlie

meteorlxy commented 3 years ago

Set the rule 'prettier-vue/prettier' to 'warning'

https://github.com/meteorlxy/eslint-plugin-prettier-vue/blob/fff3b152eb653f137cfda001fd934e463481e083/src/configs.ts#L18-L20

ttpjb commented 3 years ago

Thank you for your answer. after I put your code, It works. but need to change from warning to warn rules: { 'prettier-vue/prettier': 'warn', },