-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Configure ESLint: enable curly rule, fix on save #5666
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -1,8 +1,7 @@ | |||
{ | |||
"editor.defaultFormatter": "esbenp.prettier-vscode", | |||
"eslint.alwaysShowStatus": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VS Code says "Unknown Configuration Setting".
@@ -272,7 +272,9 @@ export class CodeNode extends ElementNode { | |||
let spaces = 0; | |||
const text = node.getTextContent(); | |||
const textSize = node.getTextContentSize(); | |||
for (; spaces < textSize && text[spaces] === ' '; spaces++); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint adds empty braces here and then complains about an empty block, so I changed this to while
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.