vite-plugin-eslint icon indicating copy to clipboard operation
vite-plugin-eslint copied to clipboard

Repeat output

Open liucan233 opened this issue 3 years ago • 3 comments

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.

liucan233 avatar Sep 30 '22 08:09 liucan233

+1 , pretty annoying

Looks like it validates everytime bundler hits the file

Снимок экрана 2022-10-03 в 16 23 54

dpmango avatar Oct 03 '22 13:10 dpmango

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

ModyQyW avatar Jan 09 '23 09:01 ModyQyW

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.

guda-art avatar Dec 24 '23 08:12 guda-art