Skip to content

Commit 83a8855

Browse files
committed
Clean up dev environment
1 parent 507a45a commit 83a8855

File tree

12 files changed

+1782
-1012
lines changed

12 files changed

+1782
-1012
lines changed

.eslintignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
node_modules/**/*
2-
coverage/**/*
3-
dist/**/*
4-
.github/**/*
1+
**/node_modules/**/*
2+
**/coverage/**/*
3+
**/dist/**/*
4+
**/build/**/*
5+
**/.github/**/*
6+
**/.webpack/**/*
7+
**/.serverless/**/*

.eslintrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"parser": "@typescript-eslint/parser",
3+
"env": {
4+
"node": true,
5+
"jest/globals": true
6+
},
37
"parserOptions": {
48
"ecmaVersion": 2020,
59
"sourceType": "module"
@@ -9,7 +13,11 @@
913
"prettier/@typescript-eslint",
1014
"plugin:prettier/recommended"
1115
],
16+
"plugins": ["jest"],
1217
"rules": {
13-
"strict": 2
18+
"strict": "error",
19+
"@typescript-eslint/no-explicit-any": "error",
20+
"@typescript-eslint/explicit-function-return-type": "error",
21+
"no-undef": "error"
1422
}
1523
}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.huskyrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.lintstagedrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.npmignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ jest.config.ts
66

77
*.md
88

9-
.huskyrc.json
10-
.lintstagedrc.json
119
.eslintignore
1210
.eslintrc.json
1311
.prettierignore
1412
.prettierrc.json
13+
.husky
1514

1615
yarn-error.log
1716

18-
src
17+
src
18+
!dist/src
19+
20+
webpack.config.ts
21+
tsconfig.json

.prettierignore

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
node_modules
2-
coverage
3-
.*ignore
4-
yarn*
5-
dist
6-
.github
1+
**/node_modules
2+
**/coverage
3+
**/.*ignore
4+
**/yarn*
5+
**/dist
6+
**/build
7+
**/.github
8+
**/.webpack
9+
**/.serverless
10+
**/.husky
11+
**/*.sql
12+
**/.env*

package.json

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,43 @@
2222
},
2323
"devDependencies": {
2424
"@shallot/aws": "^1.0.6",
25-
"@types/aws-lambda": "^8.10.66",
25+
"@types/aws-lambda": "^8.10.76",
2626
"@types/http-errors": "^1.8.0",
27-
"@types/jest": "^26.0.15",
28-
"@types/node": "^14.14.2",
29-
"@types/webpack": "^4.41.25",
30-
"@types/webpack-node-externals": "^2.5.0",
31-
"@typescript-eslint/eslint-plugin": "^4.5.0",
32-
"@typescript-eslint/parser": "^4.5.0",
33-
"eslint": "^7.12.0",
34-
"eslint-config-prettier": "^6.14.0",
27+
"@types/jest": "^26.0.23",
28+
"@types/node": "^15.0.1",
29+
"@types/webpack": "^5.28.0",
30+
"@types/webpack-node-externals": "^2.5.1",
31+
"@typescript-eslint/eslint-plugin": "^4.11.0",
32+
"@typescript-eslint/parser": "^4.11.0",
33+
"eslint": "^7.10.0",
34+
"eslint-config-prettier": "^7.1.0",
35+
"eslint-plugin-jest": "^24.3.4",
3536
"eslint-plugin-prettier": "^3.1.4",
36-
"husky": "^4.3.0",
37-
"jest": "^26.6.1",
38-
"lint-staged": "^10.4.2",
39-
"prettier": "^2.1.2",
40-
"ts-jest": "^26.4.3",
41-
"ts-loader": "^8.0.11",
42-
"ts-node": "^9.0.0",
43-
"typescript": "^4.0.3",
44-
"webpack": "^5.9.0",
45-
"webpack-cli": "^4.2.0",
46-
"webpack-node-externals": "^2.5.2",
37+
"husky": "^6.0.0",
38+
"jest": "^26.6.3",
39+
"lint-staged": "^10.5.4",
40+
"prettier": "https://github.com/prettier/prettier",
41+
"ts-jest": "^26.5.5",
42+
"ts-loader": "^9.1.1",
43+
"ts-node": "^9.1.1",
44+
"typescript": "^4.1.3",
45+
"webpack": "^5.36.1",
46+
"webpack-cli": "^4.6.0",
47+
"webpack-node-externals": "^3.0.0",
4748
"yarn": "^1.22.10"
4849
},
4950
"dependencies": {
5051
"http-errors": "^1.8.0"
52+
},
53+
"lint-staged": {
54+
"**/*.ts": [
55+
"eslint --ext .ts,.js --fix"
56+
],
57+
"**/*.js": [
58+
"eslint --ext .ts,.js --fix"
59+
],
60+
"*": [
61+
"prettier --no-error-on-unmatched-pattern --write"
62+
]
5163
}
5264
}

src/aws/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const ShallotAWSHttpErrorHandler: ShallotAWSMiddlewareWithOptions<
2525
APIGatewayProxyResult,
2626
TShallotErrorHandlerOptions
2727
> = (config) => ({
28+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
2829
onError: async (request) => {
2930
config = { logger: console.error, ...config };
3031

0 commit comments

Comments
 (0)