Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Commit 006fe80

Browse files
committed
feat(lint): provide clear scripts for format/lint
1 parent 388090d commit 006fe80

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

.prettierignore

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
/.yarn/
2-
/.vscode/
3-
/dist/
1+
*.*
2+
!*.css
3+
!*.js
4+
!*.json
5+
!*.jsx
6+
!*.less
7+
!*.md
8+
!*.mdx
9+
!*.ts
10+
!*.tsx
11+
!*.yml
412
/coverage/
13+
/dist/

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,9 @@ To use `yarn link` efficiently, do this:
9191
> cd ../my-other-library
9292
> yarn link my-library
9393
```
94+
95+
### Reformating all code
96+
97+
```bash
98+
yarn format
99+
```

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
"main": "dist/",
1919
"scripts": {
2020
"build": "babel lib/ -d dist/ --source-maps --ignore '**/*.test.js' --delete-dir-on-start",
21-
"check-formatting": "prettier --check './**/*.?(json|js|md|css)' && eslint .",
21+
"format": "prettier --write '**/*.*'",
22+
"lint": "prettier --check '**/*.*' && eslint .",
2223
"prepublishOnly": "yarn build",
2324
"semantic-release": "semantic-release",
24-
"test": "jest --coverage && yarn check-formatting"
25+
"test": "jest --coverage && yarn lint"
2526
},
2627
"babel": {
2728
"presets": [

0 commit comments

Comments
 (0)