@wordpress/eslint-plugin 11.0.0 → 12.0.0
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
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 12.0.0 (2022-04-08)
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- Revert the removal of the automatic environment detection of `test-unit` and `test-e2e` for the `recommended` preset. However, They will still be disabled if `@playwright/test` is installed in the project.
|
|
10
|
+
|
|
5
11
|
## 11.0.0 (2022-03-11)
|
|
6
12
|
|
|
7
13
|
### Breaking Changes
|
|
@@ -12,6 +18,10 @@
|
|
|
12
18
|
|
|
13
19
|
- Replaced no-shadow eslint rule with @typescript-eslint/no-shadow ([#38665](https://github.com/WordPress/gutenberg/pull/38665)).
|
|
14
20
|
|
|
21
|
+
### Breaking Changes
|
|
22
|
+
|
|
23
|
+
- Remove automatic environment detection of `test-unit` and `test-e2e` for the `recommended` preset. It's now recommended to opt-in to specific preset explicitly.
|
|
24
|
+
|
|
15
25
|
## 10.0.0 (2022-01-27)
|
|
16
26
|
|
|
17
27
|
### Breaking Changes
|
|
@@ -45,7 +45,11 @@ const config = {
|
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
// Don't apply Jest config if Playwright is installed.
|
|
49
|
+
if (
|
|
50
|
+
isPackageInstalled( 'jest' ) &&
|
|
51
|
+
! isPackageInstalled( '@playwright/test' )
|
|
52
|
+
) {
|
|
49
53
|
config.overrides = [
|
|
50
54
|
{
|
|
51
55
|
// Unit test files and their helpers only.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@babel/eslint-parser": "^7.16.0",
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
|
36
36
|
"@typescript-eslint/parser": "^5.3.0",
|
|
37
|
-
"@wordpress/babel-preset-default": "^6.
|
|
38
|
-
"@wordpress/prettier-config": "^1.1.
|
|
37
|
+
"@wordpress/babel-preset-default": "^6.8.0",
|
|
38
|
+
"@wordpress/prettier-config": "^1.1.3",
|
|
39
39
|
"cosmiconfig": "^7.0.0",
|
|
40
40
|
"eslint-config-prettier": "^8.3.0",
|
|
41
41
|
"eslint-plugin-import": "^2.25.2",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "11eb1241e63c9240018323551c6753f8a5fa96f9"
|
|
69
69
|
}
|