@will-stone/prettier-config 8.0.0 → 9.0.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/.nvmrc CHANGED
@@ -1 +1 @@
1
- 20
1
+ 22
package/CHANGELOG.md CHANGED
@@ -1,14 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.0.0](https://github.com/will-stone/prettier-config/compare/v8.0.1...v9.0.0) (2025-01-13)
4
+
5
+ ### Major changes
6
+
7
+ * Move to JS-based config ([961d951](https://github.com/will-stone/prettier-config/commit/961d951e13c0ffc82a67646745a7231694565014))
8
+
9
+ ## [8.0.1](https://github.com/will-stone/prettier-config/compare/v8.0.0...v8.0.1) (2024-05-27)
10
+
11
+ ### Patches
12
+
13
+ - Just testing release
14
+ ([00b8f48](https://github.com/will-stone/prettier-config/commit/00b8f48db09668d9e0ba1d68164f54d27008c183))
15
+
3
16
  ## [8.0.0](https://github.com/will-stone/prettier-config/compare/v7.0.4...v8.0.0) (2024-04-30)
4
17
 
5
18
  ### Major changes
6
19
 
7
- * Prevent large diffs when adding keys that need quoting ([8497784](https://github.com/will-stone/prettier-config/commit/849778494cddafb5d6efff0555ba35b969647aee))
20
+ - Prevent large diffs when adding keys that need quoting
21
+ ([8497784](https://github.com/will-stone/prettier-config/commit/849778494cddafb5d6efff0555ba35b969647aee))
8
22
 
9
23
  ### Patches
10
24
 
11
- * Trailing commas set to all by default as of Prettier 3 ([5a3c452](https://github.com/will-stone/prettier-config/commit/5a3c452d5087a34b10587e4387027abf873e8796))
25
+ - Trailing commas set to all by default as of Prettier 3
26
+ ([5a3c452](https://github.com/will-stone/prettier-config/commit/5a3c452d5087a34b10587e4387027abf873e8796))
12
27
 
13
28
  ## [7.0.4](https://github.com/will-stone/prettier-config/compare/v7.0.3...v7.0.4) (2024-04-30)
14
29
 
package/README.md CHANGED
@@ -12,11 +12,9 @@ npm i -D prettier @will-stone/prettier-config
12
12
 
13
13
  ### Use config
14
14
 
15
- ```jsonc
16
- // package.json
17
- {
18
- "prettier": "@will-stone/prettier-config"
19
- }
15
+ ```js
16
+ // prettier.config.js (or .mjs if in CJS env)
17
+ export { default } from '@will-stone/prettier-config'
20
18
  ```
21
19
 
22
20
  ### Lint Staged
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import prettierPluginPackagejson from 'prettier-plugin-packagejson'
2
+
3
+ export default {
4
+ proseWrap: 'always',
5
+ semi: false,
6
+ singleQuote: true,
7
+ plugins: [prettierPluginPackagejson],
8
+ }
package/package.json CHANGED
@@ -1,34 +1,51 @@
1
1
  {
2
2
  "name": "@will-stone/prettier-config",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "My personal Prettier config",
5
5
  "repository": {
6
6
  "url": "https://github.com/will-stone/prettier-config"
7
7
  },
8
8
  "license": "MIT",
9
9
  "author": "Will Stone",
10
- "main": "index.json",
10
+ "type": "module",
11
+ "exports": "./index.js",
11
12
  "scripts": {
12
- "prepare": "husky install",
13
+ "prepare": "simple-git-hooks",
13
14
  "release": "release-it"
14
15
  },
16
+ "simple-git-hooks": {
17
+ "pre-commit": "npx --no lint-staged"
18
+ },
15
19
  "lint-staged": {
16
20
  "*.{json,md}": [
17
21
  "prettier --write"
18
22
  ]
19
23
  },
20
- "prettier": "./index.json",
21
24
  "dependencies": {
22
- "prettier-plugin-packagejson": "^2.4.6"
25
+ "prettier-plugin-packagejson": "^2.5.0"
23
26
  },
24
27
  "devDependencies": {
25
- "@commits-with-character/conventional-changelog-preset": "^0.0.3",
28
+ "@commits-with-character/conventional-changelog-preset": "^0.2.2",
26
29
  "@release-it/conventional-changelog": "^8.0.1",
27
- "husky": "^8.0.3",
28
- "lint-staged": "^15.1.0",
29
- "release-it": "^17.2.1"
30
+ "lint-staged": "^15.2.5",
31
+ "release-it": "^17.3.0",
32
+ "simple-git-hooks": "^2.11.1"
30
33
  },
31
34
  "peerDependencies": {
32
35
  "prettier": "3.x"
36
+ },
37
+ "release-it": {
38
+ "github": {
39
+ "release": true
40
+ },
41
+ "plugins": {
42
+ "@release-it/conventional-changelog": {
43
+ "preset": {
44
+ "name": "@commits-with-character/preset"
45
+ },
46
+ "infile": "CHANGELOG.md",
47
+ "header": "# Changelog"
48
+ }
49
+ }
33
50
  }
34
51
  }
@@ -0,0 +1 @@
1
+ export { default } from './index.js'
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npx --no lint-staged
package/.release-it.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "github": {
3
- "release": true
4
- },
5
- "plugins": {
6
- "@release-it/conventional-changelog": {
7
- "preset": {
8
- "name": "@commits-with-character/preset"
9
- },
10
- "infile": "CHANGELOG.md",
11
- "header": "# Changelog"
12
- }
13
- }
14
- }
package/index.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "proseWrap": "always",
3
- "semi": false,
4
- "singleQuote": true,
5
- "plugins": ["prettier-plugin-packagejson"]
6
- }