From 4a2c68ebfa49d552b1572cb6869f61f7e9c2e944 Mon Sep 17 00:00:00 2001 From: Kanad Gupta <8854718+kanadgupta@users.noreply.github.com> Date: Thu, 5 Oct 2023 11:39:33 -0500 Subject: [PATCH] feat(eslint/esm): enable more ESM rules (#763) --- packages/eslint-config/esm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/eslint-config/esm.js b/packages/eslint-config/esm.js index efd388f3..359fea7f 100644 --- a/packages/eslint-config/esm.js +++ b/packages/eslint-config/esm.js @@ -3,7 +3,11 @@ const config = { extends: ['plugin:require-extensions/recommended'], plugins: ['require-extensions', 'unicorn'], rules: { + // see here for more rules to possibly enable in the future: + // https://gist.github.com/Jaid/164668c0151ae09d2bc81be78a203dd5 'import/no-commonjs': 'error', + 'node/no-extraneous-import': 'error', + 'unicorn/prefer-module': 'error', 'unicorn/prefer-node-protocol': 'error', }, };