Skip to content

Commit e2a0bb4

Browse files
1 parent 0f97376 commit e2a0bb4

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ If you enjoy my work you can:
3333

3434
## Latest changelog
3535

36+
- FIX: [`transform-none` not allowed](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/84)
37+
3638
- FIX: [Important marker throws warning](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/82)
3739
- FIX: [Boolean values in class throws error](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/83)
3840
- FIX: [Negative margins](https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/78)

lib/config/groups.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,15 @@ module.exports.groups = [
936936
},
937937
],
938938
},
939+
{
940+
type: 'Transform None',
941+
members: [
942+
{
943+
type: 'transform-none',
944+
members: 'transform\\-none',
945+
},
946+
],
947+
},
939948
{
940949
type: 'Scale',
941950
members: [

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ ruleTester.run("no-contradicting-classname", rule, {
170170
Same class prefix, type prefix may be required for resolving ambiguous values
171171
</div>`,
172172
},
173+
{
174+
code: `
175+
<div class="scale-75 translate-x-4 skew-y-3 motion-reduce:transform-none">
176+
Legit transform-none
177+
</div>`,
178+
},
173179
],
174180

175181
invalid: [
@@ -382,5 +388,12 @@ ruleTester.run("no-contradicting-classname", rule, {
382388
options: config,
383389
errors: generateErrors("aspect-none aspect-w-16"),
384390
},
391+
// {
392+
// code: `
393+
// <div class="scale-75 transform-none">
394+
// Conflicting transform-none
395+
// </div>`,
396+
// errors: generateErrors("scale-75 transform-none"),
397+
// },
385398
],
386399
});

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ ruleTester.run("no-custom-classname", rule, {
521521
},
522522
],
523523
},
524+
{
525+
code: `
526+
<div className="transform-none">Disabling transform</div>`,
527+
},
524528
],
525529

526530
invalid: [

0 commit comments

Comments
 (0)