@mrpalmer/prettier-config 1.0.2 → 1.1.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
@@ -1,5 +1,11 @@
1
1
  # @mrpalmer/prettier-config
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a328ae1: Use named export and include type information
8
+
3
9
  ## 1.0.2
4
10
 
5
11
  ### Patch Changes
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Config } from 'prettier'
2
+
3
+ export const config: Config
@@ -1,5 +1,5 @@
1
1
  /** @type {import('prettier').Config} */
2
- module.exports = {
2
+ const config = {
3
3
  arrowParens: 'always',
4
4
  bracketSameLine: false,
5
5
  bracketSpacing: true,
@@ -19,3 +19,5 @@ module.exports = {
19
19
  useTabs: false,
20
20
  vueIndentScriptAndStyle: false,
21
21
  }
22
+
23
+ module.exports = { config }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@mrpalmer/prettier-config",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Mike Palmer's shared config for Prettier",
5
5
  "license": "MIT",
6
- "main": "prettier.config.js",
6
+ "main": "index.js",
7
+ "types": "index.d.ts",
7
8
  "scripts": {},
8
9
  "peerDependencies": {
9
10
  "prettier": "^2.4.0 || ^3.0.0"