JavaScript best practices documentation updated

Hi devs,

I’ve updated the JavaScript best practices documentation (see changes) because it was outdated. Let me know if something is not clear or if you don’t agree with the items I listed. Please suggest any items I may have missed.


Thanks Marius, this looks good, thanks for updating it!

Maybe we could extract the JS code style best practices from and put them under WDYT?

Note: I’ve linked to for the part about testing.


The JavaScript code should pass the following rules to ensure good quality and common code style

Could we automatically check this as part of the build?

I’ve made some small fixes:

It’s already the case for WebJar modules:

For modules that use frontend-maven-plugin and prefer ESLint you need to configure it as .