@wordpress/prettier-config 1.3.0 → 1.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -3
  2. package/package.json +2 -2
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": "1.4.0",
4
4
  "description": "WordPress Prettier shared configuration.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "198fa129cf1af8dc615918987ea6795cd40ab7df"
36
+ "gitHead": "48d5f37dfb52d2e77c8eeb662f9874cf141b8c6b"
37
37
  }