I use webpack plugin:
new webpack.DefinePlugin({ PUBLIC_KEY:\'\\\'XXX\\\'\', CLIENT_ID: \'\\\'XXXX\\\'\' })
Add:
"globals": { "PUBLIC_KEY": true, "CLIENT_ID": true, }
to your eslint.rc -file.
eslint.rc
or you can do the same in your webpack config -file as an inline comment like:
/* global PUBLIC_KEY, CLIENT_ID */