gxmari007 / vite-plugin-eslint

🚨 ESLint plugin for vite
MIT License
268 stars 48 forks source link

Repeat output #44

Open liucan233 opened 2 years ago

liucan233 commented 2 years ago

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.

dpmango commented 2 years ago

+1 , pretty annoying

Looks like it validates everytime bundler hits the file

Снимок экрана 2022-10-03 в 16 23 54
ModyQyW commented 1 year ago

@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.

image

I personally recommend to give vite-plugin-checker or my eslint plugin @modyqyw/vite-plugin-eslint a try.

guda-art commented 9 months ago

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.

image

I personally recommend to give vite-plugin-checker or my eslint plugin @modyqyw/vite-plugin-eslint a try.