@gitlab/eslint-plugin 20.6.0 → 20.7.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 +14 -0
- package/lib/utils/tailwind-utils.js +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [20.7.1](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v20.7.0...v20.7.1) (2024-11-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Update peer dependencies to include ESLint 9 ([59e3e67](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/59e3e675e578b5f4c7646baf22c2051efcac3c4e))
|
|
7
|
+
|
|
8
|
+
# [20.7.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v20.6.0...v20.7.0) (2024-11-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **Tailwind:** Add allowlist for max-width media queries ([cfb23da](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/cfb23da885a6bb49653710cc88fcf867436e38b9))
|
|
14
|
+
|
|
1
15
|
# [20.6.0](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v20.5.0...v20.6.0) (2024-11-11)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -6,7 +6,10 @@ const INTERPOLATED_UTILS_VALIDATORS = {
|
|
|
6
6
|
TemplateLiteral: templateLiteralHasInterpolatedUtils,
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const MAX_WIDTH_MEDIA_QUERY_ALLOW_LIST = ['hidden'];
|
|
10
|
+
const MAX_WIDTH_MEDIA_QUERY_PATTERN = new RegExp(
|
|
11
|
+
`max-(sm|md|lg|xl):gl-(?!${MAX_WIDTH_MEDIA_QUERY_ALLOW_LIST.join('|')})`,
|
|
12
|
+
);
|
|
10
13
|
const MAX_WIDTH_MEDIA_QUERY_UTIL_ERROR =
|
|
11
14
|
'Do not use max-width media query utility classes unless absolutely necessary. Use min-width media query utility classes instead.';
|
|
12
15
|
const MAX_WIDTH_MEDIA_QUERY_UTIL_VALIDATORS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/eslint-plugin",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.7.1",
|
|
4
4
|
"description": "GitLab package for our custom eslint rules",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lodash": "^4.17.21"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"eslint": "^8.57.0"
|
|
45
|
+
"eslint": "^8.57.0 || ^9.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"eslint": "^8.57.0",
|