Skip to content

Commit

Permalink
Add @typescript-eslint/no-restricted-imports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 30, 2021
1 parent 9bbc87b commit b3afb51
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,20 @@ module.exports = {

'no-redeclare': 'off',
'@typescript-eslint/no-redeclare': 'error',
'no-restricted-imports': 'off',
'@typescript-eslint/no-restricted-imports': [
'error',
[
'error',
'domain',
'freelist',
'smalloc',
'punycode',
'sys',
'querystring',
'colors'
]
],
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-this-alias': [
'error',
Expand Down

0 comments on commit b3afb51

Please sign in to comment.