Skip to content

Commit c6147b5

Browse files
docs: update example
1 parent 6efd869 commit c6147b5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ module.exports = {
249249
"use strict";
250250

251251
module.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
},

0 commit comments

Comments
 (0)