Skip to content

Commit

Permalink
chore(eslint): add rule to sort conventional commit scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-bitfly committed Sep 9, 2024
1 parent de82670 commit 5616956
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 5616956

Please sign in to comment.