File tree 4 files changed +21
-20
lines changed
4 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 7
7
},
8
8
"rules": {
9
9
"semi": ["error", "always"],
10
- "quotes": ["error", "double"]
10
+ "quotes": ["error", "double"],
11
+ "@typescript-eslint/explicit-function-return-type": "off",
12
+ "@typescript-eslint/no-explicit-any": "off"
11
13
}
12
14
}
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- globals : {
3
- ' ts-jest' : {
4
- tsConfig : ' tsconfig.json'
5
- }
6
- } ,
7
- moduleFileExtensions : [
8
- 'ts' ,
9
- 'js'
10
- ] ,
11
- transform : {
12
- ' ^.+\\.(ts|tsx)$' : ' ts-jest'
13
- } ,
14
- testMatch : [
15
- ' **/test/**/*.test.(ts|js)'
16
- ] ,
17
- testEnvironment : ' node'
2
+ globals : {
3
+ " ts-jest" : {
4
+ tsConfig : " tsconfig.json"
5
+ }
6
+ } ,
7
+ moduleFileExtensions : [
8
+ "ts" ,
9
+ "js"
10
+ ] ,
11
+ transform : {
12
+ " ^.+\\.(ts|tsx)$" : " ts-jest"
13
+ } ,
14
+ testMatch : [
15
+ " **/test/**/*.test.(ts|js)"
16
+ ] ,
17
+ testEnvironment : " node"
18
18
} ;
Original file line number Diff line number Diff line change 20
20
"watch-ts" : " tsc -w" ,
21
21
"build-sass" : " node-sass src/public/css/main.scss dist/public/css/main.css" ,
22
22
"watch-sass" : " node-sass -w src/public/css/main.scss dist/public/css/main.css" ,
23
- "lint" : " tsc --noEmit && eslint \" */* */*.{js,ts}\" --quiet --fix" ,
23
+ "lint" : " tsc --noEmit && eslint \" **/*.{js,ts}\" --quiet --fix" ,
24
24
"copy-static-assets" : " ts-node copyStaticAssets.ts" ,
25
25
"debug" : " npm run build && npm run watch-debug" ,
26
26
"serve-debug" : " nodemon --inspect dist/server.js" ,
95
95
"ts-node" : " ^8.3.0" ,
96
96
"typescript" : " ^3.5.2"
97
97
}
98
- }
98
+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import compression from "compression"; // compresses requests
3
3
import session from "express-session" ;
4
4
import bodyParser from "body-parser" ;
5
5
import lusca from "lusca" ;
6
- import dotenv from "dotenv" ;
7
6
import mongo from "connect-mongo" ;
8
7
import flash from "express-flash" ;
9
8
import path from "path" ;
You can’t perform that action at this time.
0 commit comments