Skip to content

Commit

Permalink
[Tests] configure ESLint overrides to parse arbitrary module namespac…
Browse files Browse the repository at this point in the history
…e names
  • Loading branch information
sosukesuzuki committed Jan 22, 2022
1 parent 9a9a287 commit 68ca7f0
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion tests/files/.eslintrc
Expand Up @@ -281,5 +281,22 @@
"import/no-duplicates": 0,
"import/no-extraneous-dependencies": 0,
"import/unambiguous": 0
}
},
"overrides": [
// For parsing arbitrary module namespace names
{
"files": [
"default-export-namespace-string.js",
"default-export-string.js",
"export-default-string-and-named.js",
"no-unused-modules/arbitrary-module-namespace-identifier-name-a.js",
"no-unused-modules/arbitrary-module-namespace-identifier-name-b.js",
"no-unused-modules/arbitrary-module-namespace-identifier-name-c.js"
],
"parser": "espree",
"parserOptions": {
"ecmaVersion": 2022
}
}
]
}

0 comments on commit 68ca7f0

Please sign in to comment.