Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit b51c97f

Browse files
Add eslint rule for disallowing implicit dependencies
1 parent db9987b commit b51c97f

File tree

5 files changed

+6135
-7492
lines changed

5 files changed

+6135
-7492
lines changed

.eslintrc.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
'eslint-config-prettier'
88
],
99
parser: '@typescript-eslint/parser',
10-
plugins: ['@typescript-eslint', 'eslint-plugin-jest'],
10+
plugins: ['@typescript-eslint', 'eslint-plugin-node', 'eslint-plugin-jest'],
1111
rules: {
1212
'@typescript-eslint/no-require-imports': 'error',
1313
'@typescript-eslint/no-non-null-assertion': 'off',
@@ -28,7 +28,8 @@ module.exports = {
2828
}
2929
],
3030
'no-control-regex': 'off',
31-
'no-constant-condition': ['error', {checkLoops: false}]
31+
'no-constant-condition': ['error', {checkLoops: false}],
32+
'node/no-extraneous-import': 'error',
3233
},
3334
overrides: [
3435
{

0 commit comments

Comments
 (0)