Closed kachkaev closed 8 months ago
I noticed a small bug when updating a side project to eslint-plugin-tailwindcss@3.14.0 and running pnpm fix:eslint. See commit history in https://github.com/kachkaev/website/pull/311.
eslint-plugin-tailwindcss@3.14.0
pnpm fix:eslint
Input:
<body className={`relative flex h-full w-full flex-col overflow-y-scroll px-5 pt-4 ${locale}`}>
Ouput:
<body className={`relative flex size-full flex-col overflow-y-scroll px-5 pt-4${locale}`}>
Expected output:
<body className={`relative flex size-full flex-col overflow-y-scroll px-5 pt-4 ${locale}`}>
This PR makes sure that a space is not removed between pt-4 and ${locale} when tailwindcss/enforces-shorthand does an autofix.
pt-4
${locale}
tailwindcss/enforces-shorthand
Please delete options that are not relevant.
See new unit tests
Test Configuration:
CI
Description
I noticed a small bug when updating a side project to
eslint-plugin-tailwindcss@3.14.0
and runningpnpm fix:eslint
. See commit history in https://github.com/kachkaev/website/pull/311.Input:
Ouput:
Expected output:
This PR makes sure that a space is not removed between
pt-4
and${locale}
whentailwindcss/enforces-shorthand
does an autofix.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
See new unit tests
Test Configuration:
CI
Checklist:
I have made corresponding changes to the documentationN/AAny dependent changes have been merged and published in downstream modulesN/A