Skip to content
Merged
Prev Previous commit
Next Next commit
Merge branch 'master' of github.com:francoismassart/eslint-plugin-tai…
…lwindcss into html-parser

# Conflicts:
#	lib/util/groupMethods.js
#	package-lock.json
#	package.json
#	tests/lib/rules/no-custom-classname.js
  • Loading branch information
francoismassart committed Jan 17, 2022
commit db5cdef56b8662b26869cea03530fe9e28fc5610
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-tailwindcss",
"version": "3.2.1-beta.0",
"version": "3.2.1",
"description": "Rules enforcing best practices while using Tailwind CSS",
"keywords": [
"eslint",
Expand Down
39 changes: 39 additions & 0 deletions tests/lib/rules/no-custom-classname.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ ruleTester.run("no-custom-classname", rule, {
code: `
<div className="transform-none">Disabling transform</div>`,
},
{
code: `
<div className="transform-none">Disabling transform</div>`,
},
{
code: `
<div className="p/r[e].f!-x_flex">Nasty prefix</div>`,
Expand All @@ -536,6 +540,41 @@ ruleTester.run("no-custom-classname", rule, {
},
],
},
{
code: `
<div className="text-9xl text-ffffff/[24%] bg-000000">Issue #101</div>`,
options: [
{
config: {
theme: {
colors: {
"000000": "#000000",
ffffff: "#ffffff",
},
},
plugins: [],
},
},
],
},
{
code: `
<div className="grid gap-x-4 grid-cols-1fr/minmax(0/360)/1fr">Issue #100</div>`,
options: [
{
config: {
theme: {
extend: {
gridTemplateColumns: {
"1fr/minmax(0/360)/1fr": "1fr minmax(0, calc(360 * .25rem)) 1fr",
},
},
},
plugins: [],
},
},
],
},
],

invalid: [
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.