Skip to content

Commit

Permalink
feat(eslint/esm): enable more ESM rules (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta authored Oct 5, 2023
1 parent 1276289 commit 4a2c68e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-config/esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
};
Expand Down

0 comments on commit 4a2c68e

Please sign in to comment.