Open towertop opened 1 year ago
Hi, thanks for the report. Would you be able to provide a reproduction repo so I can investigate this further? Thanks
This plugin is implemented to work via processor, but vue plugin (same as svelte, astro, etc) have their own processor, and only 1 processor can be applied per file (not 100% sure, but most likely)
// src/preprocessors.ts
const getPreProcessor = (diffFileList, staged) => (text, filename) => {
// ...
console.log("getPreProcessor", shouldBeProcessed, filename);
return shouldBeProcessed ? [text] : [];
};
overrides: [
{
files: [ "*.vue" ],
processor: "diff/ci",
},
]
.vue files are handled by this plugin, but not handled by eslint-plugin-vue
@paleite do you have any ideas if it possible anyhow merge these 2 plugins together?
Same issue with angular preprocessor plugin:@angular-eslint/template/process-inline-templates
....
Same issue with angular preprocessor
plugin:@angular-eslint/template/process-inline-templates
....
We're also getting the same issue.
It was an error on our side. I was seeing eslint errors from the templates but its because we didn't add the plugin:diff/ci
to the *.html overrides section. duh.
有解决这个问题么
When I turn on eslint-plugin-diff with eslint-plugin-vue at the same time, a simple .vue file content keey reporting rule 'vue/comment-directive ' error.
From their document [https://eslint.vuejs.org/rules/comment-directive.html](), the problematic rule uses eslint processer API rather than other regular rules.
No expert on eslint and git, spend a whole hour to figure out this. Hope anyone could look into it.