import-js/eslint-plugin-import

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

Open

#1 709 ouverte le 30 mars 2020

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (1 540 forks)batch import
help wantedtypescript

Métriques du dépôt

Stars
 (4 946 stars)
Métriques de merge PR
 (Merge moyen 138j 22h) (3 PRs mergées en 30 j)

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?

Guide contributeur