@wordpress/eslint-plugin 12.1.0 → 12.4.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.2.0 (2022-05-04)
6
+
7
+ ### Bug Fix
8
+
9
+ - Fix the `recommended` preset when Prettier is not installed ([#40634](https://github.com/WordPress/gutenberg/pull/40634)).
10
+
5
11
  ## 12.0.0 (2022-04-08)
6
12
 
7
13
  ### Breaking Changes
@@ -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.1.0",
3
+ "version": "12.4.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.9.0",
38
- "@wordpress/prettier-config": "^1.2.0",
37
+ "@wordpress/babel-preset-default": "^6.12.0",
38
+ "@wordpress/prettier-config": "^1.3.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": "1ba52312b56db563df2d8d4fba5b00613fb46d8c"
68
+ "gitHead": "a3e0b62091e8a8bdf5e2518e42d60d7098af48cc"
69
69
  }