Skip to content
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

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

thorn0
Copy link
Contributor

@thorn0 thorn0 commented Feb 28, 2024

No description provided.

Copy link

vercel bot commented Feb 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 6:34pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 6:34pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 28, 2024
@@ -1,8 +1,7 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.alwaysShowStatus": true,
Copy link
Contributor

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?

Copy link
Contributor Author

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++);
Copy link
Contributor Author

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.

Copy link
Contributor

@acywatson acywatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@acywatson acywatson merged commit 6e4f072 into facebook:main Feb 29, 2024
36 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants