Skip to content

Commit

Permalink
chore: enable import/no-unresolved rule for commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
donotlb committed Oct 22, 2024
1 parent 9c4aa08 commit 5716786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config-base/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {
rules: {
'class-methods-use-this': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/no-unresolved': ['error', { caseSensitive: true }],
'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }],
'require-await': 'error',
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-param-reassign': ['error', { props: false }],
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
'require-await': 'error',
'class-methods-use-this': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/no-unresolved': ['error', { caseSensitive: true }],
'import/no-unresolved': ['error', { commonjs: true, caseSensitive: true }],
'import/extensions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
Expand Down

0 comments on commit 5716786

Please sign in to comment.