Skip to content

Commit 6fb2894

Browse files
authored
Fix border-inline-start and border-inline-end not having any valid ordering (#1756)
* Fix border-inline-start and border-inline-end not having any valid ordering * Undo addition of packageManager
1 parent 3c5618b commit 6fb2894

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

.changeset/unlucky-boxes-brake.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@compiled/eslint-plugin': patch
3+
'@compiled/utils': patch
4+
---
5+
6+
Fix border-inline-start and border-inline-end not having any valid ordering in the shorthand-property-sorting ESLint rule

packages/eslint-plugin/src/rules/shorthand-property-sorting/__tests__/rule.test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,23 @@ tester.run('shorthand-property-sorting', shorthandFirst, {
269269
export const EmphasisText = ({ children, status }) => <span css={containerAppearance[status]}>{children}</span>;
270270
`,
271271
},
272+
273+
//
274+
// has a valid sorting for borderInlineStart and borderInlineEnd
275+
//
276+
277+
{
278+
name: 'has a valid sorting for borderInlineStart and borderInlineEnd',
279+
code: `
280+
import { styled } from '@compiled/react';
281+
282+
const Bap = styled.div({
283+
borderTop: 'none',
284+
borderInlineStart: 'none',
285+
borderInlineEnd: 'none',
286+
});
287+
`,
288+
},
272289
]),
273290

274291
invalid: includedImports.flatMap((imp) => [

packages/utils/src/shorthand.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ export const shorthandFor: Record<ShorthandProperties, true | readonly string[]>
232232
'border-inline-end-color',
233233
'border-inline-end-style',
234234
'border-inline-end-width',
235-
'border-left-color',
236-
'border-left-style',
237-
'border-left-width',
238235
'border-right-color',
239236
'border-right-style',
240237
'border-right-width',
@@ -246,9 +243,6 @@ export const shorthandFor: Record<ShorthandProperties, true | readonly string[]>
246243
'border-left-color',
247244
'border-left-style',
248245
'border-left-width',
249-
'border-right-color',
250-
'border-right-style',
251-
'border-right-width',
252246
],
253247
'border-left': [
254248
'border-inline-start-color',

0 commit comments

Comments
 (0)