Skip to content

Commit 68ca7f0

Browse files
committed
[Tests] configure ESLint overrides to parse arbitrary module namespace names
1 parent 9a9a287 commit 68ca7f0

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tests/files/.eslintrc

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,5 +281,22 @@
281281
"import/no-duplicates": 0,
282282
"import/no-extraneous-dependencies": 0,
283283
"import/unambiguous": 0
284-
}
284+
},
285+
"overrides": [
286+
// For parsing arbitrary module namespace names
287+
{
288+
"files": [
289+
"default-export-namespace-string.js",
290+
"default-export-string.js",
291+
"export-default-string-and-named.js",
292+
"no-unused-modules/arbitrary-module-namespace-identifier-name-a.js",
293+
"no-unused-modules/arbitrary-module-namespace-identifier-name-b.js",
294+
"no-unused-modules/arbitrary-module-namespace-identifier-name-c.js"
295+
],
296+
"parser": "espree",
297+
"parserOptions": {
298+
"ecmaVersion": 2022
299+
}
300+
}
301+
]
285302
}

0 commit comments

Comments
 (0)