Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false negatives for css-in-js object notation in color-hex-case (#…
…5101) * Validate color-hex-case with postcss-value-parser As discussed in #4826, `style-search` has false positives when used with `css-in-js` object notation. This change updates the `color-hex-case` rule to use `postcss-value-parser` instead, which has support for `css-in-js` as a syntax. The unit tests now also include a suite for testing both `upper` and `lower` options for `color-hex-case` with the `css-in-js` syntax. * Update color-hex-case with requested changes * Remove unnecessary import from tests * Clean up whitespace. * Update the column number for the tests * Remove unnecessary return
- Loading branch information
Showing
2 changed files
with
213 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters