@will-stone/prettier-config 9.0.0 → 9.0.2
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/.husky/pre-commit +1 -0
- package/CHANGELOG.md +15 -1
- package/README.md +4 -7
- package/index.js +2 -4
- package/package.json +5 -9
- /package/{prettier.config.js → prettier.config.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lint-staged
|
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [9.0.2](https://github.com/will-stone/prettier-config/compare/v9.0.1...v9.0.2) (2025-03-24)
|
|
4
|
+
|
|
5
|
+
### Patches
|
|
6
|
+
|
|
7
|
+
* Update docs for pnpm and modern Husky ([5faee7d](https://github.com/will-stone/prettier-config/commit/5faee7dc0c0b48ad88531b17837cde4bc2fe15cb))
|
|
8
|
+
|
|
9
|
+
## [9.0.1](https://github.com/will-stone/prettier-config/compare/v9.0.0...v9.0.1) (2025-01-14)
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Fix incomparability with pnpm envs
|
|
14
|
+
([682f7bd](https://github.com/will-stone/prettier-config/commit/682f7bd93eb077c8d98ab1ce202e3e60ae7a4fb4))
|
|
15
|
+
|
|
3
16
|
## [9.0.0](https://github.com/will-stone/prettier-config/compare/v8.0.1...v9.0.0) (2025-01-13)
|
|
4
17
|
|
|
5
18
|
### Major changes
|
|
6
19
|
|
|
7
|
-
|
|
20
|
+
- Move to JS-based config
|
|
21
|
+
([961d951](https://github.com/will-stone/prettier-config/commit/961d951e13c0ffc82a67646745a7231694565014))
|
|
8
22
|
|
|
9
23
|
## [8.0.1](https://github.com/will-stone/prettier-config/compare/v8.0.0...v8.0.1) (2024-05-27)
|
|
10
24
|
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ My personal [Prettier](https://prettier.io) config.
|
|
|
7
7
|
### Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
|
|
10
|
+
pnpm add -D prettier @will-stone/prettier-config
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### Use config
|
|
@@ -24,9 +24,6 @@ following to your `package.json`:
|
|
|
24
24
|
|
|
25
25
|
```json
|
|
26
26
|
{
|
|
27
|
-
"scripts": {
|
|
28
|
-
"prepare": "husky install"
|
|
29
|
-
},
|
|
30
27
|
"lint-staged": {
|
|
31
28
|
"*.{css,json,md}": ["prettier --write"]
|
|
32
29
|
}
|
|
@@ -36,7 +33,7 @@ following to your `package.json`:
|
|
|
36
33
|
and then
|
|
37
34
|
|
|
38
35
|
```bash
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
pnpm add -D husky lint-staged
|
|
37
|
+
pnpm husky init
|
|
38
|
+
echo "lint-staged" > .husky/pre-commit
|
|
42
39
|
```
|
package/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default {
|
|
1
|
+
module.exports = {
|
|
4
2
|
proseWrap: 'always',
|
|
5
3
|
semi: false,
|
|
6
4
|
singleQuote: true,
|
|
7
|
-
plugins: [
|
|
5
|
+
plugins: [require.resolve('prettier-plugin-packagejson')],
|
|
8
6
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/prettier-config",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
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
|
-
"
|
|
11
|
-
"exports": "./index.js",
|
|
10
|
+
"main": "./index.js",
|
|
12
11
|
"scripts": {
|
|
13
|
-
"prepare": "
|
|
12
|
+
"prepare": "husky",
|
|
14
13
|
"release": "release-it"
|
|
15
14
|
},
|
|
16
|
-
"simple-git-hooks": {
|
|
17
|
-
"pre-commit": "npx --no lint-staged"
|
|
18
|
-
},
|
|
19
15
|
"lint-staged": {
|
|
20
16
|
"*.{json,md}": [
|
|
21
17
|
"prettier --write"
|
|
@@ -27,9 +23,9 @@
|
|
|
27
23
|
"devDependencies": {
|
|
28
24
|
"@commits-with-character/conventional-changelog-preset": "^0.2.2",
|
|
29
25
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
26
|
+
"husky": "^9.1.7",
|
|
30
27
|
"lint-staged": "^15.2.5",
|
|
31
|
-
"release-it": "^17.3.0"
|
|
32
|
-
"simple-git-hooks": "^2.11.1"
|
|
28
|
+
"release-it": "^17.3.0"
|
|
33
29
|
},
|
|
34
30
|
"peerDependencies": {
|
|
35
31
|
"prettier": "3.x"
|
|
File without changes
|