New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[type-annotation-spacing] Number of spaces aren't enforced #1001
Comments
You can use |
I thought this rule should enforce multi spaces as well... But thank you |
Could you elaborate on what you mean by multiline enforcement? |
Sorry, typo :). Meant multi spaces enforcement... |
this rule actually works as described in documentation and similarity to other spacing rules from eslint https://eslint.org/docs/rules/template-curly-spacing |
hm... should this rule also error when there is more than 1 space? If that's the case, I could make a PR |
I don't think this should even be accepting PRs @JoshuaKGoldberg? ESLint's spacing rules do not enforce the number of spaces anyways, since there's the |
hm... so for this situation, extending |
That would be my thought, yeah |
Oof, yes, sorry for marking this as |
Repro
Expected Result
Error for member filed
bar
, that have more than one space after colon.Actual Result
No error
Additional Info
The current rule enforces the spaces as described, but it doesn't enforce how much spaces there is.
Versions
@typescript-eslint/eslint-plugin
2.1.0
@typescript-eslint/parser
2.1.0
TypeScript
3.5.3
ESLint
6.3.0
node
8.11.3
npm
6.11.2
The text was updated successfully, but these errors were encountered: