Skip to content

Commit

Permalink
🔧 add Prettier to check code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorLuizC committed Dec 22, 2019
1 parent fceab53 commit b18bac9
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 299 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ node_modules/
# Distribution sources.
dist/

# Generated type declarations.
types/

# PNPM and NPM's lockfile.
# We're using Yarn and it provide its own lockfile.
package-lock.json
Expand Down
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Node.js modules.
node_modules/

# Distribution sources.
dist/

# Generated type declarations.
types/
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": true,
"printWidth": 80,
"singleQuote": true
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"scripts": {
"pretest": "npm run build",
"test": "jest",
"test:lint": "prettier **/* --check",
"build": "bili"
},
"files": [
Expand Down Expand Up @@ -43,6 +44,7 @@
"@types/jest": "^24.0.24",
"bili": "^4.8.1",
"jest": "^24.9.0",
"prettier": "^1.19.1",
"rollup-plugin-typescript2": "^0.25.3",
"ts-jest": "^24.2.0",
"typescript": "^3.7.4"
Expand Down
Loading

0 comments on commit b18bac9

Please sign in to comment.