File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,9 @@ module.exports = {
249249" use strict" ;
250250
251251module .exports = {
252+ parserOptions: {
253+ sourceType: " script"
254+ },
252255 extends: [" plugin:itgalaxy/esnext" , " plugin:itgalaxy/node" ],
253256 overrides: [
254257 // Source
@@ -258,6 +261,10 @@ module.exports = {
258261 files: [" src/**/*" ],
259262 parserOptions: {
260263 sourceType: " module"
264+ },
265+ rules: {
266+ // Allow to use ECMAScript modules because we use `babel`
267+ " node/no-unsupported-features/es-syntax" : " off"
261268 }
262269 },
263270
@@ -272,7 +279,7 @@ module.exports = {
272279 rules: {
273280 // Allow to use `console` (example - `mocking`)
274281 " no-console" : " off" ,
275- // Allow all `es` features in tests, because we use `babel`
282+ // Allow to use ECMAScript modules because we use `babel`
276283 " node/no-unsupported-features/es-syntax" : " off"
277284 }
278285 },
You can’t perform that action at this time.
0 commit comments