Skip to content

Commit

Permalink
[IMP] add support for new odoo js modules for *.esm.js files
Browse files Browse the repository at this point in the history
Contributors must place /** @odoo-module **/ formatted js code in files with extension *.esm.js
All other *.js files will be treated as legacy js files
It will allow to support both formats
  • Loading branch information
SplashS authored and yajo committed Oct 29, 2021
1 parent e9641e4 commit 00bdf21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ env:
parserOptions:
ecmaVersion: 2017

overrides:
- files:
- "**/*.esm.js"
parserOptions:
sourceType: module

# Globals available in Odoo that shouldn't produce errorings
globals:
_: readonly
Expand Down

0 comments on commit 00bdf21

Please sign in to comment.