@wordpress/prettier-config 1.3.0 → 2.0.1-next.957ca95e4c.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,16 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.0.0 (2022-08-24)
6
+
7
+ ### Breaking Change
8
+
9
+ - Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)).
10
+
11
+ ### Bug Fix
12
+
13
+ - Packages: Replace `is-plain-obj` with native functionality ([#43511](https://github.com/WordPress/gutenberg/pull/43511)).
14
+
5
15
  ## 1.2.0 (2022-04-21)
6
16
 
7
17
  ### Enhancement
package/README.md CHANGED
@@ -10,7 +10,7 @@ Install the module
10
10
  $ npm install @wordpress/prettier-config --save-dev
11
11
  ```
12
12
 
13
- **Note**: This package requires Node.js 12.0.0 or later. It is not compatible with older versions.
13
+ **Note**: This package requires Node.js 14.0.0 or later. It is not compatible with older versions.
14
14
 
15
15
  ## Usage
16
16
 
package/lib/index.js CHANGED
@@ -12,9 +12,7 @@ const prettierPackage = require( require.resolve( 'prettier/package.json' ) );
12
12
  */
13
13
 
14
14
  const isWPPrettier = prettierPackage.name === 'wp-prettier';
15
- const customOptions = isWPPrettier
16
- ? { parenSpacing: true, jsxBracketSameLine: false }
17
- : { bracketSameLine: false };
15
+ const customOptions = isWPPrettier ? { parenSpacing: true } : {};
18
16
  const customStyleOptions = isWPPrettier ? { parenSpacing: false } : {};
19
17
 
20
18
  // Disable reason: The current JSDoc tooling does not yet understand TypeScript
@@ -26,6 +24,7 @@ const config = {
26
24
  printWidth: 80,
27
25
  singleQuote: true,
28
26
  trailingComma: 'es5',
27
+ bracketSameLine: false,
29
28
  bracketSpacing: true,
30
29
  semi: true,
31
30
  arrowParens: 'always',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/prettier-config",
3
- "version": "1.3.0",
3
+ "version": "2.0.1-next.957ca95e4c.0",
4
4
  "description": "WordPress Prettier shared configuration.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/WordPress/gutenberg/issues"
21
21
  },
22
22
  "engines": {
23
- "node": ">=12"
23
+ "node": ">=14"
24
24
  },
25
25
  "files": [
26
26
  "lib/index.js"
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "198fa129cf1af8dc615918987ea6795cd40ab7df"
36
+ "gitHead": "272a74bbbaab10ee24424eafe9578e705fbfbbb4"
37
37
  }