-
-
Notifications
You must be signed in to change notification settings - Fork 99
Description
Describe the bug
I think the rule is getting stuck on trying to scan every single html file in the project and getting stuck.
tailwind/no-custom-classname taking a TON of time on ONLY .tsx files:
The full timing=1 run I posted here because it was too big: Full Timing=1 Run Gist
Rule | Time (ms) | Relative |
---|---|---|
tailwind/no-custom-classname | 273354.598 | 98.8% |
prettier/prettier | 990.519 | 0.4% |
import-x/namespace | 475.004 | 0.2% |
etc/no-deprecated | 463.620 | 0.2% |
react-compiler/react-compiler | 148.570 | 0.1% |
sonarjs/deprecation | 146.075 | 0.1% |
tailwind/enforces-negative-arbitrary-values | 116.024 | 0.0% |
no-explicit-type-exports/no-explicit-type-exports | 112.823 | 0.0% |
tailwind/classnames-order | 110.018 | 0.0% |
To Reproduce
Run linter on this file, or download my repo and run the linter like I do:
git+https://github.com/Nick2bad4u/Uptime-Watcher
Steps to reproduce the behavior:
"tailwind/no-custom-classname": [
"warn",
{
skipClassAttribute: true,
},
],
Full config: https://github.com/Nick2bad4u/Uptime-Watcher/blob/9dbf4d850905b21a77f321c09938d9552bb6ac84/eslint.config.mjs
Expected behavior
A clear and concise description of what you expected to happen.
Shouldn't take 5 minutes :D
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: win11 latest
- Softwares + version used:
Version: 1.103.2 (user setup)
Commit: 6f17636121051a53c88d3e605c491d22af2ba755
Date: 2025-08-20T16:45:34.255Z
Electron: 37.2.3
ElectronBuildId: 12035395
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Windows_NT x64 10.0.22631
Additional context
Add any other context about the problem here.
eslint config file or live demo
By providing a link to a live demo, a demo video or a github repo fixing the issue will be easier.