@will-stone/prettier-config 7.0.1 → 7.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.
@@ -0,0 +1,11 @@
1
+ # Changesets
2
+
3
+ Hello and welcome! This folder has been automatically generated by
4
+ `@changesets/cli`, a build tool that works with multi-package repos, or
5
+ single-package repos to help you version and publish your code. You can find the
6
+ full documentation for it
7
+ [in our repository](https://github.com/changesets/changesets)
8
+
9
+ We have a quick list of common questions to get you started engaging with this
10
+ project in
11
+ [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "public",
8
+ "baseBranch": "main",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx --no lint-staged
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @will-stone/prettier-config
2
2
 
3
+ ## 7.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 36f8fba: Upgrade deps.
8
+
3
9
  ## 7.0.1
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -4,37 +4,41 @@ My personal [Prettier](https://prettier.io) config.
4
4
 
5
5
  ## Usage
6
6
 
7
- Install:
7
+ ### Install
8
8
 
9
9
  ```bash
10
- yarn add -D prettier @will-stone/prettier-config
10
+ npm i -D prettier @will-stone/prettier-config
11
11
  ```
12
12
 
13
- Edit `package.json`:
13
+ ### Use config
14
14
 
15
15
  ```jsonc
16
+ // package.json
16
17
  {
17
18
  "prettier": "@will-stone/prettier-config"
18
19
  }
19
20
  ```
20
21
 
21
- Run on commit:
22
+ ### Lint Staged
22
23
 
23
- ```bash
24
- yarn add -D husky lint-staged
25
- ```
24
+ If you would like to apply formatting before every commit, you can add the
25
+ following to your `package.json`:
26
26
 
27
- Edit `package.json`:
28
-
29
- ```jsonc
27
+ ```json
30
28
  {
31
- "husky": {
32
- "hooks": {
33
- "pre-commit": "lint-staged"
34
- }
29
+ "scripts": {
30
+ "prepare": "husky install"
35
31
  },
36
32
  "lint-staged": {
37
33
  "*.{css,json,md}": ["prettier --write"]
38
34
  }
39
35
  }
40
36
  ```
37
+
38
+ and then
39
+
40
+ ```bash
41
+ npm i -D husky lint-staged
42
+ npx husky install
43
+ npx husky add .husky/pre-commit "npx --no lint-staged"
44
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@will-stone/prettier-config",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "My personal Prettier config",
5
5
  "repository": {
6
6
  "url": "https://github.com/will-stone/dx"
@@ -8,8 +8,22 @@
8
8
  "license": "MIT",
9
9
  "author": "Will Stone",
10
10
  "main": "index.json",
11
+ "scripts": {
12
+ "prepare": "husky install"
13
+ },
14
+ "lint-staged": {
15
+ "*.{json,md}": [
16
+ "prettier --write"
17
+ ]
18
+ },
19
+ "prettier": "./index.json",
11
20
  "dependencies": {
12
- "prettier-plugin-packagejson": "^2.4.5"
21
+ "prettier-plugin-packagejson": "^2.4.6"
22
+ },
23
+ "devDependencies": {
24
+ "@changesets/cli": "^2.26.2",
25
+ "husky": "^8.0.3",
26
+ "lint-staged": "^15.1.0"
13
27
  },
14
28
  "peerDependencies": {
15
29
  "prettier": "3.x"