Skip to content

Commit

Permalink
ESLint for TS: chapters 4-14
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Oct 26, 2019
1 parent 74f09b7 commit 24a2c60
Show file tree
Hide file tree
Showing 64 changed files with 12,496 additions and 2,305 deletions.
13 changes: 9 additions & 4 deletions book/10-begin/api/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "11-begin-api",
"name": "10-begin-api",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"postinstall": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "node production-server/app.js",
"lint": "tslint -p tsconfig.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage",
"processes-8000": "ss -lptn 'sport = :8000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -69,12 +69,17 @@
"@types/request": "^2.48.1",
"@types/socket.io": "^2.1.2",
"@types/stripe": "6.31.4",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "2.7.0",
"jest": "24.8.0",
"mockingoose": "^2.13.1",
"nodemon": "^1.19.1",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.18.0"
"ts-node-dev": "^1.0.0-pre.40"
}
}
4 changes: 2 additions & 2 deletions book/10-begin/app/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "11-begin-app",
"name": "10-begin-app",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ & tsc --project tsconfig.server.json",
"start": "node production-server/server/app.js",
"lint": "tslint -p tsconfig.json && tslint -p tsconfig.server.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage --passWithNoTests",
"processes-3000": "ss -lptn 'sport = :3000'",
"processes-node": "ps -e|grep node",
Expand Down
13 changes: 9 additions & 4 deletions book/10-end/api/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "11-end-api",
"name": "10-end-api",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"postinstall": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "node production-server/app.js",
"lint": "tslint -p tsconfig.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage",
"processes-8000": "ss -lptn 'sport = :8000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -69,12 +69,17 @@
"@types/request": "^2.48.1",
"@types/socket.io": "^2.1.2",
"@types/stripe": "6.31.4",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "2.7.0",
"jest": "24.8.0",
"mockingoose": "^2.13.1",
"nodemon": "^1.19.1",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.18.0"
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/10-end/app/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "11-end-app",
"name": "10-end-app",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ & tsc --project tsconfig.server.json",
"start": "node production-server/server/app.js",
"lint": "tslint -p tsconfig.json && tslint -p tsconfig.server.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage --passWithNoTests",
"processes-3000": "ss -lptn 'sport = :3000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -57,8 +57,13 @@
"@types/react-jss": "8.6.3",
"@types/socket.io-client": "^1.4.32",
"@types/styled-jsx": "2.2.8",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"jest": "24.8.0",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.20.0"
"prettier": "^1.18.2",
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/11-begin/api/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "12-begin-api",
"name": "11-begin-api",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"postinstall": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "node production-server/app.js",
"lint": "tslint -p tsconfig.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage",
"processes-8000": "ss -lptn 'sport = :8000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -69,12 +69,17 @@
"@types/request": "^2.48.1",
"@types/socket.io": "^2.1.2",
"@types/stripe": "6.31.4",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "2.7.0",
"jest": "24.8.0",
"mockingoose": "^2.13.1",
"nodemon": "^1.19.1",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.18.0"
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/11-begin/app/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "12-begin-app",
"name": "11-begin-app",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ & tsc --project tsconfig.server.json",
"start": "node production-server/server/app.js",
"lint": "tslint -p tsconfig.json && tslint -p tsconfig.server.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage --passWithNoTests",
"processes-3000": "ss -lptn 'sport = :3000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -57,8 +57,13 @@
"@types/react-jss": "8.6.3",
"@types/socket.io-client": "^1.4.32",
"@types/styled-jsx": "2.2.8",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"jest": "24.8.0",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.20.0"
"prettier": "^1.18.2",
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/11-end/api/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "12-end-api",
"name": "11-end-api",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"postinstall": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "node production-server/app.js",
"lint": "tslint -p tsconfig.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage",
"processes-8000": "ss -lptn 'sport = :8000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -69,12 +69,17 @@
"@types/request": "^2.48.1",
"@types/socket.io": "^2.1.2",
"@types/stripe": "6.31.4",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "2.7.0",
"jest": "24.8.0",
"mockingoose": "^2.13.1",
"nodemon": "^1.19.1",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.18.0"
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/11-end/app/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "12-end-app",
"name": "11-end-app",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ & tsc --project tsconfig.server.json",
"start": "node production-server/server/app.js",
"lint": "tslint -p tsconfig.json && tslint -p tsconfig.server.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage --passWithNoTests",
"processes-3000": "ss -lptn 'sport = :3000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -57,8 +57,13 @@
"@types/react-jss": "8.6.3",
"@types/socket.io-client": "^1.4.32",
"@types/styled-jsx": "2.2.8",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"jest": "24.8.0",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.20.0"
"prettier": "^1.18.2",
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/12-begin/api/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "13-begin-api",
"name": "12-begin-api",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"postinstall": "rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "node production-server/app.js",
"lint": "tslint -p tsconfig.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage",
"processes-8000": "ss -lptn 'sport = :8000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -69,12 +69,17 @@
"@types/request": "^2.48.1",
"@types/socket.io": "^2.1.2",
"@types/stripe": "6.31.4",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "2.7.0",
"jest": "24.8.0",
"mockingoose": "^2.13.1",
"nodemon": "^1.19.1",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.18.0"
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/12-begin/app/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "13-begin-app",
"name": "12-begin-app",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ & tsc --project tsconfig.server.json",
"start": "node production-server/server/app.js",
"lint": "tslint -p tsconfig.json && tslint -p tsconfig.server.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage --passWithNoTests",
"processes-3000": "ss -lptn 'sport = :3000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -57,8 +57,13 @@
"@types/react-jss": "8.6.3",
"@types/socket.io-client": "^1.4.32",
"@types/styled-jsx": "2.2.8",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"jest": "24.8.0",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.20.0"
"prettier": "^1.18.2",
"ts-node-dev": "^1.0.0-pre.40"
}
}
11 changes: 8 additions & 3 deletions book/12-end/api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "13-end-api",
"name": "12-end-api",
"version": "1",
"license": "MIT",
"scripts": {
Expand Down Expand Up @@ -69,12 +69,17 @@
"@types/request": "^2.48.1",
"@types/socket.io": "^2.1.2",
"@types/stripe": "6.31.4",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "2.7.0",
"jest": "24.8.0",
"mockingoose": "^2.13.1",
"nodemon": "^1.19.1",
"prettier": "^1.18.2",
"ts-jest": "^24.0.2",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.18.0"
"ts-node-dev": "^1.0.0-pre.40"
}
}
13 changes: 9 additions & 4 deletions book/12-end/app/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "13-end-app",
"name": "12-end-app",
"version": "1",
"license": "MIT",
"scripts": {
"dev": "nodemon server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ & tsc --project tsconfig.server.json",
"start": "node production-server/server/app.js",
"lint": "tslint -p tsconfig.json && tslint -p tsconfig.server.json",
"lint": "eslint . --ext .ts,.tsx",
"test": "jest --coverage --passWithNoTests",
"processes-3000": "ss -lptn 'sport = :3000'",
"processes-node": "ps -e|grep node",
Expand Down Expand Up @@ -57,8 +57,13 @@
"@types/react-jss": "8.6.3",
"@types/socket.io-client": "^1.4.32",
"@types/styled-jsx": "2.2.8",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-prettier": "^3.1.1",
"jest": "24.8.0",
"ts-node-dev": "^1.0.0-pre.40",
"tslint": "5.20.0"
"prettier": "^1.18.2",
"ts-node-dev": "^1.0.0-pre.40"
}
}
Loading

0 comments on commit 24a2c60

Please sign in to comment.