diff --git a/src/__snapshots__/factory.spec.ts.snap b/src/__snapshots__/factory.spec.ts.snap index 6cc9ce0..50e8797 100644 --- a/src/__snapshots__/factory.spec.ts.snap +++ b/src/__snapshots__/factory.spec.ts.snap @@ -10,7 +10,11 @@ exports[`jimmyDotCodes > should create default configuration 1`] = ` "always", ], "constructor-super": "error", - "curly": "error", + "curly": [ + "error", + "multi-or-nest", + "consistent", + ], "for-direction": "error", "getter-return": "error", "no-async-promise-executor": "error", diff --git a/src/__snapshots__/index.spec.ts.snap b/src/__snapshots__/index.spec.ts.snap index 1c604f2..f0e7906 100644 --- a/src/__snapshots__/index.spec.ts.snap +++ b/src/__snapshots__/index.spec.ts.snap @@ -10,7 +10,11 @@ exports[`should create default configuration 1`] = ` "always", ], "constructor-super": "error", - "curly": "error", + "curly": [ + "error", + "multi-or-nest", + "consistent", + ], "for-direction": "error", "getter-return": "error", "no-async-promise-executor": "error", diff --git a/src/rules/__snapshots__/base.spec.ts.snap b/src/rules/__snapshots__/base.spec.ts.snap index 67a3762..0073af2 100644 --- a/src/rules/__snapshots__/base.spec.ts.snap +++ b/src/rules/__snapshots__/base.spec.ts.snap @@ -7,7 +7,11 @@ exports[`should create base rules 1`] = ` "always", ], "constructor-super": "error", - "curly": "error", + "curly": [ + "error", + "multi-or-nest", + "consistent", + ], "for-direction": "error", "getter-return": "error", "no-async-promise-executor": "error", diff --git a/src/rules/base.ts b/src/rules/base.ts index a37d8fa..3401bdc 100644 --- a/src/rules/base.ts +++ b/src/rules/base.ts @@ -4,7 +4,7 @@ import { type Rules } from "../types"; export const baseRules = { ...eslint.configs.recommended.rules, - "curly": "error", + "curly": ["error", "multi-or-nest", "consistent"], "arrow-body-style": ["error", "always"], "object-shorthand": "error", "prefer-arrow-callback": "error",