|
8 | 8 | "deploy": "export NODE_ENV=dev && yarn deploy:env", |
9 | 9 | "deploy:production": "export NODE_ENV=production && yarn deploy:env", |
10 | 10 | "deploy:stage": "export NODE_ENV=stage && yarn deploy:env", |
11 | | - "lint": "eslint ./src", |
| 11 | + "lint": "tslint -c tslint.json --fix './src/**/*.ts' && eslint ./src --fix", |
12 | 12 | "precommit": "lint-staged", |
13 | 13 | "serve": "serverless offline start", |
| 14 | + "serve:watch": "nodemon -e js,ts,jsx,tsx -x serverless offline start", |
14 | 15 | "tail:hello": "serverless logs --function hello --tail", |
15 | 16 | "test": "jest", |
16 | 17 | "test:watch": "jest --watch", |
|
21 | 22 | "devDependencies": { |
22 | 23 | "@babel/core": "7.2.2", |
23 | 24 | "@babel/preset-env": "7.2.3", |
| 25 | + "@types/jest": "^23.3.10", |
24 | 26 | "babel-core": "^7.0.0-bridge.0", |
25 | 27 | "babel-jest": "^23.4.2", |
26 | 28 | "babel-loader": "^8.0.0", |
27 | 29 | "eslint": "^5.4.0", |
28 | 30 | "eslint-config-airbnb": "^17.1.0", |
29 | 31 | "eslint-config-prettier": "^3.0.1", |
| 32 | + "eslint-import-resolver-typescript": "^1.1.1", |
30 | 33 | "eslint-plugin-import": "^2.14.0", |
31 | 34 | "eslint-plugin-jsx-a11y": "^6.1.1", |
32 | 35 | "eslint-plugin-react": "^7.11.0", |
33 | 36 | "husky": "^1.0.0", |
34 | 37 | "jest": "^23.5.0", |
35 | 38 | "lint-staged": "^8.0.0", |
| 39 | + "nodemon": "^1.18.9", |
36 | 40 | "prettier": "^1.14.2", |
37 | 41 | "serverless": "^1.32.0", |
38 | 42 | "serverless-offline": "^3.25.10", |
39 | 43 | "serverless-webpack": "^5.2.0", |
| 44 | + "ts-jest": "^23.10.5", |
| 45 | + "ts-loader": "^5.3.1", |
| 46 | + "tslint": "^5.11.0", |
| 47 | + "tslint-config-prettier": "^1.17.0", |
| 48 | + "tslint-react": "^3.6.0", |
| 49 | + "typescript": "^3.2.1", |
40 | 50 | "webpack": "^4.17.1", |
41 | 51 | "webpack-node-externals": "^1.7.2" |
42 | 52 | }, |
43 | | - "dependencies": {}, |
| 53 | + "dependencies": { |
| 54 | + "@types/aws-lambda": "^8.10.15" |
| 55 | + }, |
44 | 56 | "lint-staged": { |
45 | 57 | "src/**/*.js": [ |
46 | | - "yarn lint -- --fix", |
| 58 | + "yarn lint", |
47 | 59 | "prettier --write", |
48 | 60 | "git add" |
49 | 61 | ] |
|
0 commit comments