From 81415c8fcf61c8500fc5321dd26d4d23d5a2e191 Mon Sep 17 00:00:00 2001 From: Greg Nazario Date: Wed, 11 Oct 2023 21:47:00 -0700 Subject: [PATCH] [eslint] Check for possible ESM compatibility issues (#27) --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index ceab88857..bacc0808f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,6 +18,12 @@ module.exports = { quotes: ["error", "double"], "max-len": ["error", 130], "import/extensions": ["error", "never"], + "import/no-commonjs": ["error", { allowRequire: false, allowPrimitiveModules: false }], + "import/no-extraneous-dependencies": [ + "error", + { devDependencies: true, optionalDependencies: true, peerDependencies: true }, + ], + "import/no-useless-path-segments": ["error", { noUselessIndex: true }], "max-classes-per-file": ["error", 10], "import/prefer-default-export": "off", "object-curly-newline": "off",