vite-plugin-eslint
vite-plugin-eslint copied to clipboard
Repeat output
Repeat output, below are details:
16:01:16 [vite] warning:
/xxxxx/src/pages/index/index.vue
1:1 warning Component name "index" should always be multi-word vue/multi-word-component-names
53:27 warning 'watch' is defined but never used @typescript-eslint/no-unused-vars
58:10 warning 'network' is defined but never used @typescript-eslint/no-unused-vars
59:41 warning Insert `;` prettier/prettier
113:7 warning 'handleClear' is assigned a value but never used @typescript-eslint/no-unused-vars
✖ 5 problems (0 errors, 5 warnings)
0 errors and 1 warning potentially fixable with the `--fix` option.
Plugin: vite-plugin-eslint
File:/xxxxx/src/pages/index/index.vue
16:01:16 [vite] warning:
/xxxxx/src/pages/index/index.vue
1:1 warning Component name "index" should always be multi-word vue/multi-word-component-names
53:27 warning 'watch' is defined but never used @typescript-eslint/no-unused-vars
58:10 warning 'network' is defined but never used @typescript-eslint/no-unused-vars
59:41 warning Insert `;` prettier/prettier
113:7 warning 'handleClear' is assigned a value but never used @typescript-eslint/no-unused-vars
✖ 5 problems (0 errors, 5 warnings)
0 errors and 1 warning potentially fixable with the `--fix` option.
Plugin: vite-plugin-eslint
File: /xxxxx/src/pages/index/index.vue?vue&type=style&index=0&scoped=true&lang.css
The same error message is output twice.
+1 , pretty annoying
Looks like it validates everytime bundler hits the file
@liucan233 This is not exactly repeated output. It may be caused by updating a vue <style> block and this plugin doesn't consider the case.
I personally recommend to give vite-plugin-checker or my eslint plugin @modyqyw/vite-plugin-eslint a try.
please thankyou why twice ? me too
@liucan233 This is not exactly repeated output. It may be caused by updating a vue
<style>block and this plugin doesn't consider the case.![]()
I personally recommend to give vite-plugin-checker or my eslint plugin @modyqyw/vite-plugin-eslint a try.