facebook / facebook/stylex

[eslint-plugin] Better parsing to correctly validate various values

Open
#420 7 comments 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
JavaScript
Stars
10.3k
Forks
481
Avg merge
3d 8h
Merged PRs (30d)
13

Description

### Describe the issue

Stylex ESLint disallows `oklch(0 0 0)` or following color formats.

### Expected behavior

Stylex ESLint allows all color formats supported by CSS Color Module Level 4 or higher.

### Steps to reproduce

1. Create a style with color property
2. Use value outside the type, for example `oklch(0 0 0)`.
3. Try linter

### Test case

```tsx
const styles = stylex.create({
example: {
color: "oklch(0 0 0)",
},
});
```

### Additional comments

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.