1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 16:17:37 +00:00

Fix lint warnings

This commit is contained in:
Mathias Rasmussen
2019-07-31 12:34:57 +02:00
parent 352fb08c85
commit 3e2f6c0c51
4 changed files with 21 additions and 20 deletions

View File

@@ -7,6 +7,8 @@
},
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double"]
"quotes": ["error", "double"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}

View File

@@ -1,18 +1,18 @@
module.exports = {
globals: {
'ts-jest': {
tsConfig: 'tsconfig.json'
}
},
moduleFileExtensions: [
'ts',
'js'
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest'
},
testMatch: [
'**/test/**/*.test.(ts|js)'
],
testEnvironment: 'node'
globals: {
"ts-jest": {
tsConfig: "tsconfig.json"
}
},
moduleFileExtensions: [
"ts",
"js"
],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest"
},
testMatch: [
"**/test/**/*.test.(ts|js)"
],
testEnvironment: "node"
};

View File

@@ -20,7 +20,7 @@
"watch-ts": "tsc -w",
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css",
"watch-sass": "node-sass -w src/public/css/main.scss dist/public/css/main.css",
"lint": "tsc --noEmit && eslint \"*/**/*.{js,ts}\" --quiet --fix",
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\" --quiet --fix",
"copy-static-assets": "ts-node copyStaticAssets.ts",
"debug": "npm run build && npm run watch-debug",
"serve-debug": "nodemon --inspect dist/server.js",
@@ -95,4 +95,4 @@
"ts-node": "^8.3.0",
"typescript": "^3.5.2"
}
}
}

View File

@@ -3,7 +3,6 @@ import compression from "compression"; // compresses requests
import session from "express-session";
import bodyParser from "body-parser";
import lusca from "lusca";
import dotenv from "dotenv";
import mongo from "connect-mongo";
import flash from "express-flash";
import path from "path";