You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to migrate from tslintno-duplicate-imports rule, but import/no-duplicates is missing one important option: allow-namespace-imports. This option is required, especially with React because we often need to do such things:
import * as React from 'react';
import { FunctionComponent } from 'react;
In this case, it is a syntax error to put both imports on the same line, but according to the doc, the rule will prevent us from doing that. The allow-namespace-imports allow the import to be done twice on the same module if one of the two imports is a namespace import.
I would like to migrate from
tslint
no-duplicate-imports
rule, butimport/no-duplicates
is missing one important option:allow-namespace-imports
. This option is required, especially withReact
because we often need to do such things:In this case, it is a syntax error to put both imports on the same line, but according to the doc, the rule will prevent us from doing that. The
allow-namespace-imports
allow the import to be done twice on the same module if one of the two imports is a namespace import.See https://palantir.github.io/tslint/rules/no-duplicate-imports/
The text was updated successfully, but these errors were encountered: