Vue-cli-plugin-electron-builder: 【lint】'__static' is not defined

Created on 11 Sep 2019  ·  5Comments  ·  Source: nklayman/vue-cli-plugin-electron-builder

npm run lint

image

I don't know how to solve it, ask for help, thank you.

https://github.com/webees/electron-base/blob/master/src/__electron__/init.js

Most helpful comment

above the code line where you have the static place this to know where the variable is
/ * global __static * /

All 5 comments

above the code line where you have the static place this to know where the variable is
/ * global __static * /

@ahernand53 answer is correct. You can also put the comment at the top of the file, which I recommend.

There must be a better way.

Thanks @ahernand53 it worked very well here :smiley:

Ok it solve the issue but this is a dirty way for that.

Why ESLint say that __static is not defined ?

Perhaps we can import module for solving this ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Timibadass picture Timibadass  ·  6Comments

getflourish picture getflourish  ·  5Comments

iamazik picture iamazik  ·  5Comments

fridzema picture fridzema  ·  4Comments

wakamin picture wakamin  ·  3Comments