@apitree.cz/prettier-config 0.2.9 → 0.3.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 +18 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
3
|
<a href="https://github.com/ApiTreeCZ">
|
|
4
|
-
<img alt="ApiTree s.r.o." src="../../public/apitree.png" width="
|
|
4
|
+
<img alt="ApiTree s.r.o." src="../../public/apitree-logo.png" width="308" />
|
|
5
5
|
</a>
|
|
6
6
|
|
|
7
7
|
# Prettier Config
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
public-hoist-pattern[]=*prettier*
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add --save-dev @apitree.cz/prettier-config prettier
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
### Monorepos
|
|
20
|
+
|
|
21
|
+
Prior to the installation, add the following to your repository root `.npmrc`:
|
|
22
22
|
|
|
23
|
-
```
|
|
24
|
-
|
|
23
|
+
```
|
|
24
|
+
public-hoist-pattern[]=*prettier*
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
@@ -32,8 +32,16 @@ Add the following configuration to your `prettier.config.js`:
|
|
|
32
32
|
export { config as default } from '@apitree.cz/prettier-config';
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
## IntelliJ
|
|
35
|
+
## IntelliJ IDE Setup
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Following IntelliJ IDEs setup is recommended for the best developer experience:
|
|
38
38
|
|
|
39
39
|
<img alt="IntelliJ Prettier Setup" src="../../public/intellij-prettier-setup.png" width="730" />
|
|
40
|
+
|
|
41
|
+
### Recommended Values
|
|
42
|
+
|
|
43
|
+
#### Run for files
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
{**/*,*}.{css,ejs,graphql,html,js,json,md,mdx,ts,tsx,yml,yaml}
|
|
47
|
+
```
|