eslint/typescript-eslint-parser

[indent] import require are not reported as error

ficristo opened this issue · 2 comments

What version of TypeScript are you using?
3.1.6

What version of typescript-eslint-parser are you using?
21.0.2

What code were you trying to parse?

// The code:
    import Dialogs              = require("widgets/Dialogs");

What did you expect to happen?
An error because the code is indented but shouldn't.

For now my rule indent is:

"indent": ["error", 4, {
    "SwitchCase": 1,
    "VariableDeclarator": 1,
    "FunctionDeclaration": { "parameters": "first", body: 1 },
    "FunctionExpression": { "parameters": "first", body: 1 },
    "CallExpression": { "arguments": 1 },
    "ArrayExpression": 1,
    "ObjectExpression": 1,
    "ImportDeclaration": 1,
    "flatTernaryExpressions": false
}],

What happened?
No error.

TSImportEqualsDeclaration is not supported by eslint rule, this should be added in https://github.com/bradzacher/eslint-plugin-typescript