mirror of
https://github.com/microsoft/TypeScript-Node-Starter.git
synced 2025-11-08 16:17:37 +00:00
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user