Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

ordered-imports: missing ImportEqualsDeclaration #3043

Closed
ikatyang opened this issue Jul 14, 2017 · 1 comment · Fixed by #3102
Closed

ordered-imports: missing ImportEqualsDeclaration #3043

ikatyang opened this issue Jul 14, 2017 · 1 comment · Fixed by #3102

Comments

@ikatyang
Copy link
Contributor

Bug Report

  • TSLint version: 5.5.0
  • TypeScript version: 2.4.1
  • Running TSLint via: CLI / VSCode

TypeScript code being linted

import c = require('./c'); // should error
import * as a from './a';
import b from './b';

with tslint.json configuration:

{"rules": {"ordered-imports": [true]}}

Actual behavior

no error

Expected behavior

error on c

@adidahiya
Copy link
Contributor

this was probably not implemented because import-equals statements are banned by default in the built-in configuration and they're usually treated specially (put in a separate import group). but it's a worthy enhancement we could implement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants