Skip to content

Commit 21fed93

Browse files
committed
fix: exclude package.json from .prettierignore
1 parent 7b0aeb9 commit 21fed93

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

.prettierignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
node_modules
2-
package.json
3-
package-lock.json
42
pnpm-lock.yaml
5-
changelog.md
6-
coverage
7-
build
3+
package-lock.json
84
dist

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,16 @@ Add the following to your `package.json`
3939

4040
and run `npm run format` to format the files. You can also use `npm run test.format` in the CI to test formatting of the project.
4141

42-
To ignore some files from formatting, create a `.prettierignore` file and add the files to the list.
42+
To ignore some files from formatting, create a `.prettierignore` file and add the files to the list. This is usually the same as `gitignore`.
4343

4444
```
4545
node_modules
46-
package.json
47-
package-lock.json
48-
yarn.lock
4946
pnpm-lock.yaml
50-
coverage
47+
package-lock.json
48+
dist
5149
```
5250

53-
Also add the built folders like `dist` to the above list.
51+
Notice that the built folders like `dist` are in the above list.
5452

5553
### Modifying the config
5654

0 commit comments

Comments
 (0)