parse-community / parse-community/parse-server

Add curly eslint rule

Open
#7,920 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type:ci
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
Current Limitation

There is no agreed style for single lint returns / throws, which in my opinion can make code hard to follow.

JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity

Feature / Enhancement Description

Add ESLint rule "Curly"

Example Use Case

n/a

Alternatives / Workarounds

n/a

3rd Party References

https://eslint.org/docs/rules/curly

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the repository's ESLint configuration and inspect how existing rules are enabled. Read the linked ESLint curly rule documentation, then confirm the chosen rule configuration enforces braces for single-statement returns and throws without breaking the existing lint checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.