Skip to content

Disallow non-JavaScript identifier @value#221

Merged
mizdra merged 2 commits into
mainfrom
fix-non-js-ident-value
Aug 4, 2025
Merged

Disallow non-JavaScript identifier @value#221
mizdra merged 2 commits into
mainfrom
fix-non-js-ident-value

Conversation

@mizdra
Copy link
Copy Markdown
Owner

@mizdra mizdra commented Aug 4, 2025

css-modules-kit does not expect non-JavaScript identifiers to be used in class names, @value, or @keyframes. If non-JavaScript identifiers are used, various issues may arise.

Therefore, css-modules-kit reports an error if the names of classes or @keyframes are non-JavaScript identifiers. However, it seems that support for @value was missing. This is a bug, so we fix it.

@mizdra mizdra added the Type: Bug Bug or Bug fixes label Aug 4, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 4, 2025

🦋 Changeset detected

Latest commit: 25cf2ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@css-modules-kit/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mizdra mizdra force-pushed the fix-non-js-ident-value branch from 420d5a1 to 25cf2ef Compare August 4, 2025 10:38
@mizdra mizdra changed the title Report errors for non-JS identifier @value Disallow non-JavaScript identifier @value Aug 4, 2025
@mizdra mizdra marked this pull request as ready for review August 4, 2025 10:44
@mizdra mizdra merged commit d0a6685 into main Aug 4, 2025
10 checks passed
@mizdra mizdra deleted the fix-non-js-ident-value branch August 4, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Bug or Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant