4
Home
Sylvain LE GAL edited this page 5 years ago
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.