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

Change Request: Allow configurable CSS features #37

Open
1 task done
nzakas opened this issue Dec 30, 2024 · 0 comments
Open
1 task done

Change Request: Allow configurable CSS features #37

nzakas opened this issue Dec 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nzakas
Copy link
Member

nzakas commented Dec 30, 2024

Environment

ESLint version:
@eslint/css version:
Node version:
npm version:
Operating System:

What problem do you want to solve?

The CSS plugin currently only validates known at-rules, properties, values, etc. For libraries like Tailwind that define custom syntax, that means the rules in this plugin flag everything as an error. There are probably other tools that have similar issues.

What do you think is the correct solution?

Create languageOptions for the CSS language that allow the addition of custom at-rules, properties, functions, etc.

These should then be picked up by the parser and lexer so that validation is consistent across all ESLint rules.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

Related:

@nzakas nzakas added the enhancement New feature or request label Dec 30, 2024
@nzakas nzakas marked this as a duplicate of #36 Dec 30, 2024
@nzakas nzakas marked this as a duplicate of #35 Dec 30, 2024
nzakas added a commit that referenced this issue Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant