Skip to content

Commit 14e236e

Browse files
1 parent c89e0ec commit 14e236e

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ You can can the same information on your favorite command line software as well.
4040

4141
## Latest changelog
4242

43+
- fix: [composable touch action classnames](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/293)
4344
- fix: [`shadow-md` + `shadow-[#color]`can be used together 🤝](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/298)
4445
- fix: [`tabular-nums` and `slashed-zero` can be used together 🤝](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/316)
4546
- fix: [`size-*` based `size` 🤓](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/315)

lib/config/groups.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,24 @@ module.exports.groups = [
13371337
},
13381338
{
13391339
type: 'Touch Action',
1340-
members: 'touch\\-(auto|none|pan\\-(x|left|right|y|up|down)|pinch\\-zoom|manipulation)',
1340+
members: [
1341+
{
1342+
type: 'Touch Action Mode',
1343+
members: 'touch\\-(auto|none|manipulation)',
1344+
},
1345+
{
1346+
type: 'Touch Action X',
1347+
members: 'touch\\-(pan\\-(x|left|right))',
1348+
},
1349+
{
1350+
type: 'Touch Action Y',
1351+
members: 'touch\\-(pan\\-(y|up|down))',
1352+
},
1353+
{
1354+
type: 'Touch Action Pinch Zoom',
1355+
members: 'touch\\-pinch\\-zoom',
1356+
},
1357+
],
13411358
},
13421359
{
13431360
type: 'User Select',

tests/lib/rules/no-contradicting-classname.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ ruleTester.run("no-contradicting-classname", rule, {
313313
{
314314
code: `<div class="shadow-md shadow-[#aabbcc]">Issue #298</div>`,
315315
},
316+
{
317+
code: `<pre class="touch-pan-left touch-pan-y touch-pinch-zoom touch-manipulation">valid combo for issue #293</pre>`,
318+
},
316319
],
317320

318321
invalid: [
@@ -751,6 +754,14 @@ ruleTester.run("no-contradicting-classname", rule, {
751754
code: `<div class="diagonal-fractions stacked-fractions">Font Variant Numeric #316</div>`,
752755
errors: generateErrors(["diagonal-fractions stacked-fractions"]),
753756
},
757+
{
758+
code: `<pre class="touch-auto touch-none touch-pan-x touch-pan-left touch-pan-right touch-pan-y touch-pan-up touch-pan-down touch-pinch-zoom touch-manipulation">KitchenSink with errors for issue #293</pre>`,
759+
errors: generateErrors([
760+
"touch-auto touch-none touch-manipulation",
761+
"touch-pan-x touch-pan-left touch-pan-right",
762+
"touch-pan-y touch-pan-up touch-pan-down",
763+
]),
764+
},
754765
// {
755766
// code: `
756767
// <div class="scale-75 transform-none">

0 commit comments

Comments
 (0)