@will-stone/prettier-config 4.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.
Files changed (3) hide show
  1. package/README.md +40 -0
  2. package/index.json +7 -0
  3. package/package.json +17 -0
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # Prettier Config
2
+
3
+ My personal [Prettier](https://prettier.io) config.
4
+
5
+ ## Usage
6
+
7
+ Install:
8
+
9
+ ```bash
10
+ yarn add -D prettier @will-stone/prettier-config
11
+ ```
12
+
13
+ Edit `package.json`:
14
+
15
+ ```jsonc
16
+ {
17
+ "prettier": "@will-stone/prettier-config"
18
+ }
19
+ ```
20
+
21
+ Run on commit:
22
+
23
+ ```bash
24
+ yarn add -D husky lint-staged
25
+ ```
26
+
27
+ Edit `package.json`:
28
+
29
+ ```jsonc
30
+ {
31
+ "husky": {
32
+ "hooks": {
33
+ "pre-commit": "lint-staged"
34
+ }
35
+ },
36
+ "lint-staged": {
37
+ "*.{css,json,md}": ["prettier --write"]
38
+ }
39
+ }
40
+ ```
package/index.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "proseWrap": "always",
3
+ "semi": false,
4
+ "singleQuote": true,
5
+ "trailingComma": "all",
6
+ "quoteProps": "consistent"
7
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@will-stone/prettier-config",
3
+ "version": "4.1.0",
4
+ "description": "My personal Prettier config",
5
+ "repository": {
6
+ "url": "https://github.com/will-stone/dx"
7
+ },
8
+ "license": "MIT",
9
+ "author": "Will Stone",
10
+ "main": "index.json",
11
+ "dependencies": {
12
+ "prettier-plugin-packagejson": "^2.2.13"
13
+ },
14
+ "peerDependencies": {
15
+ "prettier": "2.x"
16
+ }
17
+ }