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.
https://eslint.org/docs/rules/curly