high CPU usage by oni-plugin-tslint
Oni Version: 0.3.7 Neovim Version (Linux only): 0.2.2 Operating System: ubuntu 16.04
Issue: Each typescript project I had worked on consumes 100% CPU resources by oni-plugin-tslint. (especially with angular apps) I can see multiple of these processes in htop:
/opt/Oni/oni /home/username/.config/oni/plugins/oni-plugin-tslint/node_modules/tslint/lib/tslint-cli.js --force --format json --config /home/username/tsproject/server/tslint.json --project /home/gregory/tsproject/server/tsconfig.json
i there anything i can do to reduce the CPU usage?
tslint.json
{
"extends": [ "tslint-angular" ],
"rules": {
}
}
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"baseUrl": "./src",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "es2015",
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"skipLibCheck": true,
"strict": true,
"strictNullChecks": false,
"strictFunctionTypes": false,
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
],
"paths": {
"@shared/*": [ "app/shared/*" ]
}
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"preserveWhitespaces": false
},
"exclude": [ "e2e" ]
}
Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.
@JustGreg tbh the tslint-plugin is very out of date there is PR open to overhaul it that @bryphe was gonna take a look at but for now I would recommend not using it, an alternative vim plugin would be ALE at least till we get the changes reviewed and merged for that plugin.