eslint-plugin-vue-i18n icon indicating copy to clipboard operation
eslint-plugin-vue-i18n copied to clipboard

Pug SFCs

Open chris-allison-achiive opened this issue 4 years ago • 6 comments

Hi

All is working fine so long as I'm using HTML SFCs. As soon as I start using Pug (aka Jade) then the linter fails to detect, eg, @intlify/vue-i18n/no-missing-keys.

Is there anything I can do to enable linting with Pug?

chris-allison-achiive avatar Oct 30 '21 16:10 chris-allison-achiive

Currently this plugin does not support Pug. I'm not familiar with Pug because I don't use Pug, I think it would be good if someone could work on it.

ota-meshi avatar Oct 31 '21 06:10 ota-meshi

👀 another pug ecosystem problem... @chris-allison-achiive Not sure right now if and when I have time for that... but it seems that everytime when something is related to pug+vue then I'm the person to rescue 😔 Would love to have some additional contributors in my pug+vue ecosystem around me

Shinigami92 avatar Nov 23 '21 09:11 Shinigami92

I would love if I had enough time as I wish I had to assist on Pug+Vue ecosystem as well @Shinigami92

😢

SkyaTura avatar Aug 17 '22 15:08 SkyaTura

I'm not familiar with pug but eslint-plugin-vue-pug might be worth a try too.

https://github.com/rashfael/eslint-plugin-vue-pug

ota-meshi avatar Aug 17 '22 15:08 ota-meshi

Ping @rashfael

Shinigami92 avatar Aug 17 '22 15:08 Shinigami92

https://github.com/rashfael/vue-eslint-parser-template-tokenizer-pug might just make the rules of eslint-plugin-vue-i18n work with pug like it does for eslint-plugin-vue. Either install https://github.com/rashfael/eslint-plugin-vue-pug and enable the plugin or just install vue-eslint-parser-template-tokenizer-pug and add this to your eslint config. https://github.com/rashfael/eslint-plugin-vue-pug is mostly just tests for the original https://github.com/vuejs/eslint-plugin-vue rules and a few fixes. Somebody might do the same for eslint-plugin-vue-i18n, using vue-eslint-parser-template-tokenizer-pug, which could have a chance at being relatively little effort (I currently don't have time or interest to do it myself). Let me know if vue-eslint-parser-template-tokenizer-pug works for this and feel free to ask me any questions.

rashfael avatar Aug 29 '22 07:08 rashfael