@wordpress/eslint-plugin 15.1.0 → 16.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/README.md +1 -0
- package/configs/recommended.js +1 -1
- package/configs/test-playwright.js +3 -0
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ Alternatively, you can opt-in to only the more granular rulesets offered by the
|
|
|
53
53
|
- `react` – rules for React components.
|
|
54
54
|
- `test-e2e` – rules for end-to-end tests written in Puppeteer.
|
|
55
55
|
- `test-unit`– rules for unit tests written in Jest.
|
|
56
|
+
- `test-playwright` – rules for end-to-end tests written in Playwright.
|
|
56
57
|
|
|
57
58
|
For example, if your project does not use React, you could consider extending including only the ESNext rules in your project using the following `extends` definition:
|
|
58
59
|
|
package/configs/recommended.js
CHANGED
|
@@ -45,7 +45,7 @@ if ( isPackageInstalled( 'typescript' ) ) {
|
|
|
45
45
|
parser: '@typescript-eslint/parser',
|
|
46
46
|
rules: {
|
|
47
47
|
'no-duplicate-imports': 'off',
|
|
48
|
-
'
|
|
48
|
+
'import/no-duplicates': 'error',
|
|
49
49
|
// Don't require redundant JSDoc types in TypeScript files.
|
|
50
50
|
'jsdoc/require-param-type': 'off',
|
|
51
51
|
'jsdoc/require-returns-type': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "ESLint plugin for WordPress development.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -32,17 +32,18 @@
|
|
|
32
32
|
"main": "index.js",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/eslint-parser": "^7.16.0",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
36
|
-
"@typescript-eslint/parser": "^
|
|
37
|
-
"@wordpress/babel-preset-default": "^7.
|
|
38
|
-
"@wordpress/prettier-config": "^2.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
36
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
37
|
+
"@wordpress/babel-preset-default": "^7.26.0",
|
|
38
|
+
"@wordpress/prettier-config": "^2.25.0",
|
|
39
39
|
"cosmiconfig": "^7.0.0",
|
|
40
40
|
"eslint-config-prettier": "^8.3.0",
|
|
41
41
|
"eslint-plugin-import": "^2.25.2",
|
|
42
|
-
"eslint-plugin-jest": "^27.2.
|
|
42
|
+
"eslint-plugin-jest": "^27.2.3",
|
|
43
43
|
"eslint-plugin-jsdoc": "^46.4.6",
|
|
44
44
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
45
|
-
"eslint-plugin-
|
|
45
|
+
"eslint-plugin-playwright": "^0.15.3",
|
|
46
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
46
47
|
"eslint-plugin-react": "^7.27.0",
|
|
47
48
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
48
49
|
"globals": "^13.12.0",
|
|
@@ -65,5 +66,5 @@
|
|
|
65
66
|
"publishConfig": {
|
|
66
67
|
"access": "public"
|
|
67
68
|
},
|
|
68
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "cc35f517ed017ab7131319af3e87c359e8de175d"
|
|
69
70
|
}
|