Skip to content

Commit c489bde

Browse files
committed
Fix lint warnings
1 parent 606ccf0 commit c489bde

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

.eslintrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
},
88
"rules": {
99
"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"
1113
}
1214
}

jest.config.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
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"
1818
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"watch-ts": "tsc -w",
2121
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",
2222
"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",
2424
"copy-static-assets": "ts-node copyStaticAssets.ts",
2525
"debug": "npm run build && npm run watch-debug",
2626
"serve-debug": "nodemon --inspect dist/server.js",
@@ -95,4 +95,4 @@
9595
"ts-node": "^8.3.0",
9696
"typescript": "^3.5.2"
9797
}
98-
}
98+
}

src/app.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import compression from "compression"; // compresses requests
33
import session from "express-session";
44
import bodyParser from "body-parser";
55
import lusca from "lusca";
6-
import dotenv from "dotenv";
76
import mongo from "connect-mongo";
87
import flash from "express-flash";
98
import path from "path";

0 commit comments

Comments
 (0)