Skip to content

Commit

Permalink
Setup prettier and git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalvarezz committed May 23, 2020
1 parent 22ef58b commit e47e875
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 9 deletions.
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
"start": "next start",
"type-check": "tsc --noEmit"
},
"dependencies": {
"next": "^9.4.2",
Expand All @@ -19,6 +20,20 @@
"devDependencies": {
"@types/node": "^14.0.5",
"@types/react": "^16.9.35",
"husky": "^4.2.5",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"typescript": "^3.9.3"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && yarn type-check"
}
}
}
8 changes: 4 additions & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from "react";
import React from 'react'

const HomePage = () => {
return (
<div>
<div>Platzi and Next.js!</div>
</div>
);
};
)
}

export default HomePage;
export default HomePage
Loading

0 comments on commit e47e875

Please sign in to comment.