-
-
Notifications
You must be signed in to change notification settings - Fork 955
Closed
Labels
bugSomething isn't workingSomething isn't workinghas-workaroundhelp wantedExtra attention is neededExtra attention is neededvscode
Description
UnoCSS version
any
Describe the bug
I'm trying to use the eslint plugin for unocss, the older one from devunt doesn't have the options to configure linting for other attributes besides className so i was trying to use the tailwind one, but the latter doesn't pick up the uno.config.ts custom values.
I installed @unocss/eslint-config and tried following the official instructions but when i open a file with unocss classes i get an error like this for ESlint output.
[Error - 12:38:47] An unexpected error occurred:
[Error - 12:38:47] Error: [@unocss/eslint-plugin] No config file found, create a `uno.config.ts` file in your project root and try again.
at getGenerator (/---/uno-monorepo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@unocss/eslint-plugin/dist/worker-sort.cjs:37:11)
at async /---/uno-monorepo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@unocss/eslint-plugin/dist/worker-sort.cjs:43:15
Reproduction
I've uploaded a reproduction repo, these are the steps to reproduce:
- clone the repo
- run
pnpm install - open a
.tsxfile,page.tsxhas unocss class applied or apply a class to a new file - observe the eslint output for vscode
Screenshot:
System Info
- laptop: MacBook Air M1 13 inches
- OS: Ventura latest version
- IDE: VScode
- Package Manager: pnpm
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
loeck, so1ve, everyx, itpropro, jikkai and 7 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghas-workaroundhelp wantedExtra attention is neededExtra attention is neededvscode