Style: Enable import/no-extraneous-dependencies rule (#12374)
This commit is contained in:
1 parent
af103ae766
commit
23c173b9e4
2 files changed
+7
-7
No files matched your search
+6
-7
@@ -104,13 +104,12 @@ module.exports = {
|
||||
],
|
||||
|
||||
"import/extensions": ["error", "ignorePackages"],
|
||||
// TODO[@fisker]: Fix this
|
||||
// "import/no-extraneous-dependencies": [
|
||||
// "error",
|
||||
// {
|
||||
// devDependencies: ["jest.config.mjs", "tests/**", "scripts/**"],
|
||||
// },
|
||||
// ],
|
||||
"import/no-extraneous-dependencies": [
|
||||
"error",
|
||||
{
|
||||
devDependencies: ["jest.config.mjs", "tests/**", "scripts/**"],
|
||||
},
|
||||
],
|
||||
"import/order": "error",
|
||||
"import/no-anonymous-default-export": "error",
|
||||
|
||||
|
||||
@@ -169,6 +169,7 @@ async function format(context, input, opt) {
|
||||
if (context.argv.debugBenchmark) {
|
||||
let benchmark;
|
||||
try {
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
({ default: benchmark } = await import("benchmark"));
|
||||
} catch {
|
||||
context.logger.debug(
|
||||
|
||||
Reference in new issue
Block a user