This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
[indent] import require are not reported as error #577
Closed
Description
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.