-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[keyword-spacing] Require space before / after as
#1729
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
Comments
shouldn't be overly difficult - happy to accept a PR! |
Here you go #1739 |
A related use case for a TypeScript In our TypeScript codebase, we want to ban Do you think your rule will be able do enforce this? |
@rhuitl I had a look at it. |
it is not possible, unless there's something in the base rule's code. This is a separate case, and I would not worry about it with this issue @OoDeLally. |
Repro
Expected Result
Warning about a missing space before
as
.Actual Result
No warning.
Additional Info
It would be nice to have a
@typescript-eslint/keyword-spacing
rule to cover the typescript keywords.Versions
@typescript-eslint/eslint-plugin
2.23.0
@typescript-eslint/parser
2.23.0
TypeScript
3.8.3
ESLint
6.8.0
node
12.16.1
npm
6.13.4
The text was updated successfully, but these errors were encountered: