Skip to content

Commit 00bdf21

Browse files
SplashSyajo
authored andcommitted
[IMP] add support for new odoo js modules for *.esm.js files
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
1 parent e9641e4 commit 00bdf21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/.eslintrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ env:
66
parserOptions:
77
ecmaVersion: 2017
88

9+
overrides:
10+
- files:
11+
- "**/*.esm.js"
12+
parserOptions:
13+
sourceType: module
14+
915
# Globals available in Odoo that shouldn't produce errorings
1016
globals:
1117
_: readonly

0 commit comments

Comments
 (0)