@wordpress/eslint-plugin 11.0.1 → 11.1.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
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
- Replaced no-shadow eslint rule with @typescript-eslint/no-shadow ([#38665](https://github.com/WordPress/gutenberg/pull/38665)).
|
|
14
14
|
|
|
15
|
+
### Breaking Changes
|
|
16
|
+
|
|
17
|
+
- 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.
|
|
18
|
+
|
|
15
19
|
## 10.0.0 (2022-01-27)
|
|
16
20
|
|
|
17
21
|
### Breaking Changes
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
const { isPackageInstalled } = require( '../utils' );
|
|
5
|
-
|
|
6
1
|
// Exclude bundled WordPress packages from the list.
|
|
7
2
|
const wpPackagesRegExp = '^@wordpress/(?!(icons|interface))';
|
|
8
3
|
|
|
@@ -45,19 +40,4 @@ const config = {
|
|
|
45
40
|
},
|
|
46
41
|
};
|
|
47
42
|
|
|
48
|
-
if ( isPackageInstalled( 'jest' ) ) {
|
|
49
|
-
config.overrides = [
|
|
50
|
-
{
|
|
51
|
-
// Unit test files and their helpers only.
|
|
52
|
-
files: [ '**/@(test|__tests__)/**/*.js', '**/?(*.)test.js' ],
|
|
53
|
-
extends: [ require.resolve( './test-unit.js' ) ],
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
// End-to-end test files and their helpers only.
|
|
57
|
-
files: [ '**/specs/**/*.js', '**/?(*.)spec.js' ],
|
|
58
|
-
extends: [ require.resolve( './test-e2e.js' ) ],
|
|
59
|
-
},
|
|
60
|
-
];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
43
|
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -34,7 +34,7 @@
|
|
|
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.
|
|
37
|
+
"@wordpress/babel-preset-default": "^6.7.0",
|
|
38
38
|
"@wordpress/prettier-config": "^1.1.3",
|
|
39
39
|
"cosmiconfig": "^7.0.0",
|
|
40
40
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-jest": "^25.2.3",
|
|
43
43
|
"eslint-plugin-jsdoc": "^37.0.3",
|
|
44
44
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
45
|
+
"eslint-plugin-playwright": "^0.8.0",
|
|
45
46
|
"eslint-plugin-prettier": "^3.3.0",
|
|
46
47
|
"eslint-plugin-react": "^7.27.0",
|
|
47
48
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
@@ -65,5 +66,5 @@
|
|
|
65
66
|
"publishConfig": {
|
|
66
67
|
"access": "public"
|
|
67
68
|
},
|
|
68
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "aa003c3634016cc4ab6348b2106907e371c648e1"
|
|
69
70
|
}
|