Skip to content

Commit bec27ff

Browse files
committed
Add rule to redirect imports to extra typings for commander
1 parent 53a621f commit bec27ff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ export default tseslint.config(
249249
'jsdoc/require-asterisk-prefix': 'warn',
250250

251251
'no-empty': ['error', { allowEmptyCatch: true }],
252+
'no-restricted-imports': [
253+
'error',
254+
{
255+
paths: [{
256+
name: 'commander',
257+
message: 'Import from @commander-js/extra-typings instead'
258+
}]
259+
}
260+
],
252261
'prefer-const': ['warn', { destructuring: 'all' }],
253262

254263
'@sourceacademy/default-import-name': ['warn', { path: 'pathlib' }],

0 commit comments

Comments
 (0)