Skip to content

Commit

Permalink
Add eslint rule for disallowing implicit dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-laevskii committed May 22, 2023
1 parent db9987b commit b51c97f
Show file tree
Hide file tree
Showing 5 changed files with 6,135 additions and 7,492 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
'eslint-config-prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-jest'],
plugins: ['@typescript-eslint', 'eslint-plugin-node', 'eslint-plugin-jest'],
rules: {
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
Expand All @@ -28,7 +28,8 @@ module.exports = {
}
],
'no-control-regex': 'off',
'no-constant-condition': ['error', {checkLoops: false}]
'no-constant-condition': ['error', {checkLoops: false}],
'node/no-extraneous-import': 'error',
},
overrides: [
{
Expand Down
Loading

0 comments on commit b51c97f

Please # to comment.