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
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
What version of TypeScript are you using?
Version 2.8.3
What version of typescript-eslint-parser are you using?
Version 15.0.0
What version of eslint are you using?
Version 4.19.1
What code were you trying to parse?
/** * @param {string} name * @param {number} age * @returns {string} */functionfoo(name: string,age: number): string{}
What did you expect to happen?
No indent error. This only occurs with the typescript-eslint-parser in combination with the eslint rule
'"indent": ["error", 4]'
What happened? 2:1 error Expected indentation of 0 spaces but found 3 indent 3:1 error Expected indentation of 0 spaces but found 3 indent 4:1 error Expected indentation of 0 spaces but found 3 indent
The error is shown by eslint, but after some research and checking existing issues #422.
The problem only occurs with "parser": "typescript-eslint-parser", in .eslint and in combination with "indent": ["error", 4].
Disabling the indent rule 'solves' the issue
What version of TypeScript are you using?
Version 2.8.3
What version of
typescript-eslint-parser
are you using?Version 15.0.0
What version of
eslint
are you using?Version 4.19.1
What code were you trying to parse?
What did you expect to happen?
No indent error. This only occurs with the typescript-eslint-parser in combination with the eslint rule
'"indent": ["error", 4]'
What happened?
2:1 error Expected indentation of 0 spaces but found 3 indent
3:1 error Expected indentation of 0 spaces but found 3 indent
4:1 error Expected indentation of 0 spaces but found 3 indent
The error is shown by eslint, but after some research and checking existing issues #422.
The problem only occurs with
"parser": "typescript-eslint-parser",
in.eslint
and in combination with"indent": ["error", 4]
.Disabling the indent rule 'solves' the issue
Configuration with errors
.eslint
tslint.json
packages
The text was updated successfully, but these errors were encountered: