@gitlab/eslint-plugin 20.2.0 → 20.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/utils/tailwind-utils.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [20.2.1](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v20.2.0...v20.2.1) (2024-09-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **tailwind:** catch forward slashes in CSS utils ([42c2133](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/42c2133fb8a0ca677512f0dc4bd555e5fdb51323))
|
|
7
|
+
* **tailwind:** only match the beginning of a string or after a space ([735a6ec](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/735a6ec69d62424a8eb4e764375e9318e0a29428))
|
|
8
|
+
|
|
1
9
|
# [20.2.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v20.1.0...v20.2.0) (2024-09-03)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const INTERPOLATION_PATTERN = /gl-[a-z0-9
|
|
1
|
+
const INTERPOLATION_PATTERN = /(^|\s)gl-[a-z0-9-/]*$/i;
|
|
2
2
|
const INTERPOLATED_UTIL_ERROR =
|
|
3
3
|
'You are building a CSS utility class name using string interpolation which is forbidden because Tailwind CSS needs fully qualified names to properly generate the utilities we use.';
|
|
4
4
|
const INTERPOLATED_UTILS_VALIDATORS = {
|