@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.
- package/README.md +40 -0
- package/index.json +7 -0
- 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
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
|
+
}
|