[indent] import require are not reported as error
ficristo opened this issue · 2 comments
ficristo commented
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.
armano2 commented
TSImportEqualsDeclaration is not supported by eslint rule, this should be added in https://github.com/bradzacher/eslint-plugin-typescript
ficristo commented
It should be fixed by bradzacher/eslint-plugin-typescript#219