@wordpress/eslint-plugin 12.0.0 → 12.2.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 +6 -0
- package/configs/recommended.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/configs/recommended.js
CHANGED
|
@@ -6,7 +6,6 @@ const { cosmiconfigSync } = require( 'cosmiconfig' );
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
const defaultPrettierConfig = require( '@wordpress/prettier-config' );
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Internal dependencies
|
|
@@ -22,6 +21,7 @@ if ( isPackageInstalled( 'prettier' ) ) {
|
|
|
22
21
|
|
|
23
22
|
const { config: localPrettierConfig } =
|
|
24
23
|
cosmiconfigSync( 'prettier' ).search() || {};
|
|
24
|
+
const defaultPrettierConfig = require( '@wordpress/prettier-config' );
|
|
25
25
|
const prettierConfig = { ...defaultPrettierConfig, ...localPrettierConfig };
|
|
26
26
|
config.rules = {
|
|
27
27
|
'prettier/prettier': [ 'error', prettierConfig ],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/eslint-plugin",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.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.
|
|
37
|
+
"@wordpress/babel-preset-default": "^6.10.0",
|
|
38
|
+
"@wordpress/prettier-config": "^1.2.0",
|
|
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": "4631d515033397fcfeda77e5755960253caef9bf"
|
|
69
69
|
}
|