Skip to content
Sylvain LE GAL edited this page Jul 11, 2019 · 4 revisions

Using esLint in OCA/pos repository

To avoid to have warnings and errors in Travis log, regarding Javascript lint, you can use the OCA Tools pylint-odoo.

First Time : Install eslint

Run eslint to adapt your code to OCA convention

git clone https://github.com/OCA/pylint-odoo
cd pylint-odoo

eslint --fix --config pylint_odoo/examples/.jslintrc $MY_MODULE_PATH

This command will fix most of the lint error syntax, and list the errors the tools can not fix automatically. You can then fix them manually.

Clone this wiki locally