Skip to content

Commit

Permalink
TS, Prettier, Eslint (excalidraw#39)
Browse files Browse the repository at this point in the history
* TS, Prettier, Eslint

* Used rough ts definitions
  • Loading branch information
nanot1m authored and vjeux committed Jan 2, 2020
1 parent 4eda1cf commit 1383758
Show file tree
Hide file tree
Showing 6 changed files with 2,300 additions and 1,465 deletions.
30 changes: 26 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
"dependencies": {
"react": "16.12.0",
"react-dom": "16.12.0",
"react-scripts": "3.0.1",
"react-scripts": "3.3.0",
"roughjs": "3.1.0"
},
"devDependencies": {
"typescript": "3.3.3"
"@types/react": "16.9.17",
"@types/react-dom": "16.9.4",
"husky": "3.1.0",
"lint-staged": "9.5.0",
"prettier": "1.19.1",
"typescript": "3.7.4"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -24,5 +29,22 @@
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
],
"eslintConfig": {
"extends": "react-app"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,css,json,md,ts,tsx}": [
"prettier --write",
"git add"
],
"*.{js,ts,tsx}": [
"eslint"
]
}
}
Loading

0 comments on commit 1383758

Please sign in to comment.