Remove unused dependencies

Jest, eslint, and typescript-tslint-plugin were installed, but never used. Node
types were used for timers, but this is incorrect, as this code is supposed to
run in the browser.
This commit is contained in:
Remco Haszing 2021-03-25 17:14:27 +01:00
parent 7f49a21a56
commit a5a49756be
No known key found for this signature in database
GPG key ID: 40D9F5FE9155FD3C
7 changed files with 31 additions and 3544 deletions

18
.vscode/launch.json vendored
View file

@ -1,18 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"args": ["--runInBand"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
]
}

View file

@ -12,8 +12,7 @@
"bundle:esm": "node ./scripts/bundle-esm",
"build": "yarn compile && yarn bundle",
"prepare": "yarn build",
"lint": "prettier \"{src,test}/**/*.{json,scss,html,ts}\" --write",
"test": "jest --verbose"
"lint": "prettier \"{src,test}/**/*.{json,scss,html,ts}\" --write"
},
"main": "./lib/esm/monaco.contribution.js",
"module": "./lib/esm/monaco.contribution.js",
@ -38,10 +37,7 @@
"yaml-language-server": "^0.11.1"
},
"devDependencies": {
"@types/jest": "^23.3.10",
"@types/node": "^12.12.6",
"husky": "^1.2.1",
"jest": "^23.6.0",
"lint-staged": "^10.1.2",
"monaco-editor": "^0.21.2",
"monaco-editor-core": "^0.21.2",
@ -50,10 +46,7 @@
"prettier": "^1.19.1",
"requirejs": "^2.3.6",
"rimraf": "^2.6.2",
"ts-jest": "^23.10.5",
"typescript": "^3.8.3",
"typescript-tslint-plugin": "^0.5.5",
"eslint": "^6.8.0",
"uglify-es": "^3.3.9"
},
"prettier": {
@ -70,22 +63,5 @@
"hooks": {
"pre-commit": "lint-staged"
}
},
"jest": {
"globals": {
"ts-jest": {
"tsConfig": "./test/tsconfig.json"
}
},
"moduleFileExtensions": [
"js",
"ts"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testMatch": [
"**/test/*.test.+(ts|js)"
]
}
}

View file

@ -37,7 +37,7 @@ export class DiagnosticsAdapter {
return;
}
let handle: NodeJS.Timer;
let handle: number;
this._listener[model.uri.toString()] = model.onDidChangeContent(() => {
clearTimeout(handle);
handle = setTimeout(() => this._doValidate(model.uri, modeId), 500);

View file

@ -14,7 +14,7 @@ const STOP_WHEN_IDLE_FOR = 2 * 60 * 1000; // 2min
export class WorkerManager {
private _defaults: LanguageServiceDefaultsImpl;
private _idleCheckInterval: NodeJS.Timer;
private _idleCheckInterval: number;
private _lastUsedTime: number;
private _configChangeListener: IDisposable;

View file

@ -9,12 +9,7 @@
"lib": ["dom", "es2016"],
"outDir": "./out/esm",
"sourceMap": true,
"target": "es6",
"plugins": [
{
"name": "typescript-tslint-plugin"
}
]
"target": "es6"
},
"exclude": ["node_modules", "out", "lib", "test"]
}

View file

@ -6,12 +6,7 @@
"moduleResolution": "node",
"lib": ["dom", "es2016"],
"outDir": "./out/amd",
"target": "es6",
"plugins": [
{
"name": "typescript-tslint-plugin"
}
]
"target": "es6"
},
"exclude": ["node_modules", "out", "lib", "test"]
}

3513
yarn.lock

File diff suppressed because it is too large Load diff