From 5616956b61b49c0beb4b1c5c74111d33540c5d33 Mon Sep 17 00:00:00 2001 From: MarcelBitfly <174338434+marcel-bitfly@users.noreply.github.com> Date: Mon, 9 Sep 2024 18:08:28 +0200 Subject: [PATCH] chore(eslint): add rule to sort `conventional commit scopes` --- frontend/eslint.config.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 08474dd9e..ec277885d 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -114,6 +114,16 @@ export default withNuxt({ ...eslintPluginJsonc.configs['flat/recommended-with-json'], { rules: { + 'jsonc/sort-array-values': [ + 'warn', + { + order: { + natural: true, + type: 'asc', + }, + pathPattern: 'conventionalCommits.scopes', + }, + ], 'jsonc/sort-keys': [ 'error', 'asc',