import-js/eslint-plugin-import

`no-commonjs` does not appear to work for TypeScript

Open

#1,709 opened on Mar 30, 2020

 (3 comments) (0 reactions) (0 assignees)JavaScript (1,549 forks)batch import
help wantedtypescript

Repository metrics

Stars
 (5,940 stars)
PR merge metrics
 (Avg merge 138d 22h) (3 merged PRs in 30d)

Description

I have the following rule enabled:

    // disallow require()
    // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
    'import/no-commonjs': 'error',

However, in my TypeScript source file, the following line that I expected to error does not:

import Boom = require('boom')

Should it?

Contributor guide