Typescript fine tuning 2

This commit is contained in:
mrfry 2020-11-23 14:48:01 +01:00
parent 2532e45228
commit 0bddef2b78
3 changed files with 488 additions and 52 deletions

View file

@ -5,8 +5,13 @@ module.exports = {
node: true,
jest: true,
},
parser: 'babel-eslint',
extends: ['eslint:recommended', 'plugin:typescript/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',

519
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,6 @@
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"ejs": "^1.0.0",
"eslint": "^7.14.0",
"eslint-plugin-typescript": "^0.14.0",
"express": "^4.6.1",
"express-ejs-layouts": "^1.1.0",
@ -20,8 +19,13 @@
"vhost": "^3.0.2"
},
"scripts": {
"start": "node ./dist/server.js",
"dev": "NS_DEVEL=1 NS_NOUSER=1 NS_LOGLEVEL=1 node ./dist/server.js",
"build": "NS_DEVEL=1 NS_NOUSER=1 NS_LOGLEVEL=1 tsc"
"start": "tsc && node ./dist/server.js",
"dev": "tsc && NS_DEVEL=1 NS_NOUSER=1 NS_LOGLEVEL=1 node ./dist/server.js",
"build": "tsc"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"eslint": "^7.14.0"
}
}