Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/ECMAScript/
JavaScript
JavaScript
/JS Module/JS Meta Module/JS Linter/ESLint/ESLint Config/ESLint Rule/
ESLint Curly Rule
Search

ESLint Curly Rule

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2021 Dec 7 6:18
Editor
Editor
Seonglae ChoSeonglae Cho
Edited
Edited
2021 Dec 7 6:18
Refs
Refs

multi consistent is good

curly - Rules
The --fix option on the command line can automatically fix some of the problems reported by this rule. 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.
curly - Rules
https://eslint.org/docs/rules/curly
curly - Rules
 
 
 
 
 
 
 
 
 

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/ECMAScript/
JavaScript
JavaScript
/JS Module/JS Meta Module/JS Linter/ESLint/ESLint Config/ESLint Rule/
ESLint Curly Rule
Copyright Seonglae Cho