Skip to content

Commit 6fc00de

Browse files
authored
Add shorthand-property-sorting to recommended ESLint rules (#1736)
* Add shorthand property sorting to recommended ESLint rules * Add changeset * Change from patch to minor
1 parent eb3dd41 commit 6fc00de

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/four-beds-own.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@compiled/eslint-plugin': minor
3+
---
4+
5+
Add `shorthand-property-sorting` to recommended ESLint rules

packages/eslint-plugin/src/configs/flat-recommended.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ export const flatRecommended = {
1212
'@compiled/no-keyframes-tagged-template-expression': 'error',
1313
'@compiled/no-styled-tagged-template-expression': 'error',
1414
'@compiled/no-suppress-xcss': 'error',
15+
'@compiled/shorthand-property-sorting': 'error',
1516
},
1617
} as const;

packages/eslint-plugin/src/configs/recommended.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ export const recommended = {
1212
'@compiled/no-keyframes-tagged-template-expression': 'error',
1313
'@compiled/no-styled-tagged-template-expression': 'error',
1414
'@compiled/no-suppress-xcss': 'error',
15+
'@compiled/shorthand-property-sorting': 'error',
1516
},
16-
};
17+
} as const;

0 commit comments

Comments
 (0)