Skip to content

Commit

Permalink
Improve code styling (#23)
Browse files Browse the repository at this point in the history
* Typescript eslint added to the package.json

* Code review
  • Loading branch information
jlgasparrini authored Dec 20, 2020
1 parent dc26ff0 commit 1fb9c38
Show file tree
Hide file tree
Showing 3 changed files with 2,148 additions and 677 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
}
}
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,24 @@
"watch-ts": "tsc -w",
"watch-node": "nodemon dist/app.js",
"watch": "concurrently -k -p \"[{name}]\" -n \"TypeScript, Node\" -c \"yello.bold, cyan.bold\" \"yarn run watch-ts\" \"yarn run watch-node\"",
"docs": "apidoc -i src/ -o public/apidoc/"
"docs": "apidoc -i src/ -o public/apidoc/",
"lint": "yarn eslint --ext .js,.ts,.tsx src/** test/**"
},
"devDependencies": {
"@types/chai": "^4.1.5",
"@types/mocha": "^5.2.5",
"@types/mongoose": "^5.2.17",
"@types/nock": "^9.3.0",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"chai": "^4.2.0",
"eslint": "^7.12.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"mocha": "^5.2.0",
"nock": "^10.0.0",
"ts-node": "^7.0.1",
"typescript": "^3.1.1"
"typescript": "^4.0.5"
}
}
Loading

0 comments on commit 1fb9c38

Please sign in to comment.