Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown at rule @tailwindcss(unknownAtRules) #679

Open
momenta-zj-z opened this issue May 15, 2024 · 1 comment
Open

Unknown at rule @tailwindcss(unknownAtRules) #679

momenta-zj-z opened this issue May 15, 2024 · 1 comment

Comments

@momenta-zj-z
Copy link

momenta-zj-z commented May 15, 2024

I found something wrong in app/ui/global.css, when i use eslint, it tells me that:
image
it turn out that @tailwind is not best practice, can anyone help me about this? and this is my postcss.config.js

// postcss.config.js
module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
};

this is my .lintstagerc.json, i can't make commits when i turn "eslint --fix" on, and i think this tutorial should be a best practice

// .lintstagerc.json
{
  "./app/**/*.{js,ts,jsx,tsx,json,html,css,md}": [
    "eslint --fix",
    "prettier --write"
  ]
}
@GaneshSrambikal
Copy link

Hello,

This is IDE specific warning and not tutorial-dependent.

You can fix this by installing intelliSense in your IDE. If you are using VS code install this extension.

After you have installed the extension, go to your settings and find "files.associations": {...}, inside that append this:
"*.css": "tailwindcss".

Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants