@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.
Files changed (2) hide show
  1. package/README.md +18 -10
  2. 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="201" />
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
- In a `pnpm` monorepo, add the following to your root `.npmrc` file:
16
-
17
- ```
18
- public-hoist-pattern[]=*prettier*
15
+ ```bash
16
+ pnpm add --save-dev @apitree.cz/prettier-config prettier
19
17
  ```
20
18
 
21
- Then, install the package in your repository root:
19
+ ### Monorepos
20
+
21
+ Prior to the installation, add the following to your repository root `.npmrc`:
22
22
 
23
- ```bash
24
- pnpm add --save-dev @apitree.cz/prettier-config prettier
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 (JetBrains) IDE Setup
35
+ ## IntelliJ IDE Setup
36
36
 
37
- Go to `Settings` > `Languages & Frameworks` > `JavaScript` > `Prettier` and set the following:
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
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apitree.cz/prettier-config",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "Prettier configuration for ApiTree projects.",
5
5
  "repository": {
6
6
  "type": "git",