Vue/Javascript code formatting in MainUI

Is there a way to automatically format the MainUI javascript code?

I tried according to https://github.com/openhab/openhab-webui/blob/main/README.md#command-line-build to run mvn spotless:apply, but didn’t expect it to format javascript files.

Then i tried in the web folder to run npx eslint --fix, but this just made everything worse.

Cheers

In the web folder, run npm run lint:fix

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.