Commit Graph

4 Commits

Author SHA1 Message Date
Dominik Csapak
7579a6928f adapt webkpack patch for 8.23.1
we have to remove the (unnecessary) polyfill plugin, because some
transitive dependency (nodelib/fs.scandir) tries to access node specific
information that is stripped with these (browser targeting) polyfills

it's not necessary as we're targeting node anyway

also update the patch message to reflect the actual changes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-09-15 11:33:56 +02:00
Dominik Csapak
7a730cb601 change from CLIEngine to ESLint
8.0 officialy removed CLIEngine (though it's still in git) so use
the current and supported API.

Necessary changes:
* use 'ESLint' instead of 'CLIEngine'
* use 'lintFiles' instead of 'executeOnFiles' (thats async now)
* adapt to the change of return value of 'lintFiles'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-06 13:58:25 +01:00
Dominik Csapak
4b0098f62a ship proper nodejs module 'pve-eslint'
instead of concatenating the eslint module into our app.js, ship
a 'pve-eslint' module that exports the built eslint module

to do this, we have to leave the module type on 'umd' instead of
changing to 'var' so that nodejs can properly import it.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-07-19 12:12:46 +02:00
Dominik Csapak
eb39fafa4f first commit
includes a (minimal) working wrapper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-06 15:06:03 +02:00