From 8d8b06515035467b582f8098375110da8a6cb5ca Mon Sep 17 00:00:00 2001 From: sushi-chaaaan Date: Sun, 19 May 2024 00:59:37 +0900 Subject: [PATCH 1/3] chore: sort np, script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 646e52d8..d40378b7 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", From bf4e5bfb2a31b8bd07f339dbebecce633e82ae0c Mon Sep 17 00:00:00 2001 From: sushi-chaaaan Date: Sun, 19 May 2024 01:04:14 +0900 Subject: [PATCH 2/3] fix: object sort ruke --- packages/eslint-config/src/base/stylistic.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/eslint-config/src/base/stylistic.ts b/packages/eslint-config/src/base/stylistic.ts index 54e3a031..6770b42c 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", { From 3ee6d3f191253bd394cff9932f2081e997dcf152 Mon Sep 17 00:00:00 2001 From: sushi-chaaaan Date: Sun, 19 May 2024 01:04:42 +0900 Subject: [PATCH 3/3] chore: changeset --- .changeset/spicy-cooks-begin.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spicy-cooks-begin.md diff --git a/.changeset/spicy-cooks-begin.md b/.changeset/spicy-cooks-begin.md new file mode 100644 index 00000000..8873cd06 --- /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