diff --git a/.changeset/spicy-cooks-begin.md b/.changeset/spicy-cooks-begin.md new file mode 100644 index 0000000..8873cd0 --- /dev/null +++ b/.changeset/spicy-cooks-begin.md @@ -0,0 +1,5 @@ +--- +"@virtual-live-lab/eslint-config": patch +--- + +Ignore sort object rule with new line diff --git a/package.json b/package.json index 646e52d..d40378b 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "changeset": "changeset", "format": "prettier --write .", "lint": "eslint .", + "build": "pnpm run /^build:.*/", "build:eslint": "pnpm --filter @virtual-live-lab/eslint-config build", "build:prettier": "pnpm --filter @virtual-live-lab/prettier-config build", "build:stylelint": "pnpm --filter @virtual-live-lab/stylelint-config build", - "build": "pnpm run /^build:.*/", "release": "pnpm run build && changeset publish" }, "packageManager": "pnpm@8.15.7", diff --git a/packages/eslint-config/src/base/stylistic.ts b/packages/eslint-config/src/base/stylistic.ts index 54e3a03..6770b42 100644 --- a/packages/eslint-config/src/base/stylistic.ts +++ b/packages/eslint-config/src/base/stylistic.ts @@ -11,6 +11,22 @@ const stylisticConfig: Linter.FlatConfig[] = [ perfectionistNatural, { rules: { + "perfectionist/sort-object-types": [ + "error", + { + "order": "asc", + "partition-by-new-line": true, + "type": "natural", + }, + ], + "perfectionist/sort-objects": [ + "error", + { + "order": "asc", + "partition-by-new-line": true, + "type": "natural", + }, + ], "perfectionist/sort-union-types": [ "error", {