summaryrefslogtreecommitdiffstats
path: root/dom/base/test/jsmodules/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/test/jsmodules/.eslintrc.js')
-rw-r--r--dom/base/test/jsmodules/.eslintrc.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/base/test/jsmodules/.eslintrc.js b/dom/base/test/jsmodules/.eslintrc.js
new file mode 100644
index 0000000000..25a38d20af
--- /dev/null
+++ b/dom/base/test/jsmodules/.eslintrc.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = {
+ overrides: [
+ {
+ // eslint-plugin-html doesn't automatically detect module sections in
+ // html files. Enable these as a module here. JavaScript files can use
+ // the mjs extension.
+ files: ["*.html"],
+ parserOptions: {
+ sourceType: "module",
+ },
+ },
+ ],
+};