Skip to content

Commit f87737d

Browse files
author
Alice
committed
bumped linting / background modules
1 parent 428556e commit f87737d

File tree

4 files changed

+1988
-2594
lines changed

4 files changed

+1988
-2594
lines changed

.eslintrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"ecmaVersion": 2019,
44
"sourceType": "module"
55
},
6-
"extends": [
7-
"plugin:@typescript-eslint/recommended",
8-
"prettier/@typescript-eslint",
9-
"plugin:prettier/recommended"
10-
],
6+
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
117
"env": {
128
"es6": true
139
}

package.json

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,31 @@
2323
},
2424
"dependencies": {
2525
"lodash": "^4.17.15",
26-
"moment": "2.29.2"
26+
"moment": "2.29.3"
2727
},
2828
"devDependencies": {
29-
"@babel/cli": "^7.12.13",
30-
"@babel/core": "^7.12.13",
31-
"@babel/plugin-proposal-class-properties": "^7.12.13",
32-
"@babel/preset-env": "^7.12.13",
33-
"@babel/preset-typescript": "^7.12.13",
34-
"@types/jest": "^26.0.20",
35-
"@types/lodash": "^4.14.168",
36-
"@types/moment": "^2.13.0",
37-
"@types/node": "^14.14.25",
29+
"@babel/cli": "7.17.10",
30+
"@babel/core": "7.18.2",
31+
"@babel/plugin-proposal-class-properties": "7.17.12",
32+
"@babel/preset-env": "7.18.2",
33+
"@babel/preset-typescript": "7.17.12",
34+
"@types/jest": "28.1.1",
35+
"@types/node": "17.0.40",
3836
"@types/serverless": "1.78.33",
39-
"@typescript-eslint/eslint-plugin": "^4.14.2",
40-
"@typescript-eslint/parser": "^4.14.2",
37+
"@typescript-eslint/eslint-plugin": "5.27.0",
38+
"@typescript-eslint/parser": "5.27.0",
4139
"asl-types": "^1.2.1",
4240
"babel-plugin-add-module-exports": "^1.0.4",
43-
"eslint": "^7.19.0",
44-
"eslint-config-prettier": "^7.2.0",
45-
"eslint-plugin-prettier": "^3.3.1",
46-
"jest": "^26.6.3",
47-
"jest-junit": "^12.0.0",
41+
"eslint": "8.17.0",
42+
"eslint-config-prettier": "8.5.0",
43+
"eslint-plugin-prettier": "4.0.0",
44+
"jest": "28.1.0",
45+
"jest-junit": "13.2.0",
4846
"pre-commit": "^1.1.3",
49-
"prettier": "^2.2.1",
47+
"prettier": "2.6.2",
5048
"serverless": "2.53.1",
51-
"ts-node": "^9.1.1",
52-
"typescript": "^4.1.3"
49+
"ts-node": "10.8.1",
50+
"typescript": "4.7.3"
5351
},
5452
"pre-commit": [
5553
"lint"

src/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ interface StateType {
5252
Type: string;
5353
}
5454

55-
export const isType = (type: string) => <T extends StateType>(state: State | T): state is T => state.Type === type;
55+
export const isType =
56+
(type: string) =>
57+
<T extends StateType>(state: State | T): state is T =>
58+
state.Type === type;
5659

5760
export const definitionIsHandler = (
5861
value: Maybe<Serverless.FunctionDefinitionHandler | Serverless.FunctionDefinitionImage>

0 commit comments

Comments
 (0)