`bg-primary` is not a valid tailwind class
Answered
Anay-208 posted this in #help-forum
Anay-208OP
I'm getting this error on monorepo. Scroll down to see screenshots
Answered by Anay-208
Already tried this:
https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/241
https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/241
17 Replies
before, this just fixes and gives me all the warnings like no custom classes
I'm using plugin https://www.npmjs.com/package/eslint-plugin-tailwindcss
@Anay-208 I'm getting this error on monorepo. Scroll down to see screenshots
Anay-208OP
even If I create
eslint.config.js file with empty contenteslint . --fix(make sure you have files to only src otherwise you may get huge chaos)
with
-debugand its ignoring
src folderIf I run the code from
src folder, I get the same warning:Oops! Something went wrong! :(
ESLint: 8.57.0
You are linting ".", but all of the files matching the glob pattern "." are ignored.
If you don't want to lint these files, remove the pattern "." from the list of arguments passed to ESLint.
If you do want to lint these files, try the following solutions:
* Check your .eslintignore file, or the eslintIgnore property in package.json, to ensure that the files are not configured to be ignored.
* Explicitly list the files from this glob that you'd like to lint on the command-line, rather than providing a glob as an argument.My
.eslintignore file is emptyAnd these errors go away if I delete the empty file,
eslint.config.jsAnay-208OP
So keeping this on the side, I've another issue
I get this error on a monorepo
If I open the folder directly, it works, but not in monorepo
Anay-208OP
Already tried this:
https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/241
https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/241
Answer