Skip to content

Commit

Permalink
Add shorthand-property-sorting to recommended ESLint rules (#1736)
Browse files Browse the repository at this point in the history
* Add shorthand property sorting to recommended ESLint rules

* Add changeset

* Change from patch to minor
  • Loading branch information
dddlr authored Oct 25, 2024
1 parent eb3dd41 commit 6fc00de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-beds-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@compiled/eslint-plugin': minor
---

Add `shorthand-property-sorting` to recommended ESLint rules
1 change: 1 addition & 0 deletions packages/eslint-plugin/src/configs/flat-recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export const flatRecommended = {
'@compiled/no-keyframes-tagged-template-expression': 'error',
'@compiled/no-styled-tagged-template-expression': 'error',
'@compiled/no-suppress-xcss': 'error',
'@compiled/shorthand-property-sorting': 'error',
},
} as const;
3 changes: 2 additions & 1 deletion packages/eslint-plugin/src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export const recommended = {
'@compiled/no-keyframes-tagged-template-expression': 'error',
'@compiled/no-styled-tagged-template-expression': 'error',
'@compiled/no-suppress-xcss': 'error',
'@compiled/shorthand-property-sorting': 'error',
},
};
} as const;

0 comments on commit 6fc00de

Please sign in to comment.