question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TSLint extension not working

See original GitHub issue
  • code-server version: 1.32.0-310
  • OS Version: Ubuntu 18.04 and/or using the dockerized version

Description

TSLint extension does not appear to work with code-server. I don’t see any in-editor warnings/errors for things that violate the specified tslint rules. See repro steps below.

Extension: ms-vscode.vscode-typescript-tslint-plugin

Side Note: The download count is VERY different for this extension in code-server vs vscode. This extension shows ~30 downloads in code-server versus ~400,000 downloads in vscode. Are these coming from different repos??

Steps to Reproduce

  1. Create a new tslint project via running tslint --init.
  2. Modify tslint.json to add a rule about quotes for example:
{
    "defaultSeverity": "error",
    "extends": ["tslint:recommended"],
    "jsRules": {},
    "rules": {
        "quotemark": [true, "single"]
    },
    "rulesDirectory": []
}
  1. Create a file example.ts:
let foo = "bar";
  1. Note that tslint does not complain about the double quotes.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
foresthoffmancommented, Mar 26, 2019

There is no -e module within code-server, or npm AFAIK, so this is extremely odd.

1reaction
nol166commented, Mar 26, 2019
module.js:562
    throw err;
    ^

Error: Cannot find module '/Users/user/Documents/coder-stuff/js/code-server/packages/server/-e'
    at Function.Module._resolveFilename (module.js:560:15)
    at Function.Module._load (module.js:487:25)
    at Function.Module.runMain (module.js:726:10)
    at startup (bootstrap_node.js:207:16)
    at bootstrap_node.js:628:3
Read more comments on GitHub >

github_iconTop Results From Across the Web

TSLint not working in VS Code - typescript - Stack Overflow
tslint -react is a tslint extension which has to be installed separately: npm install -g tslint-react . After installing, reload your VS Code ......
Read more >
TSlint does not seem to run · Issue #61 - GitHub
Hi I've used the vscode-tslint until now, but just changed to this since the other is deprecated. But having installed this extension ......
Read more >
TSLint - Visual Studio Marketplace
Debugging why tslint is not working · In your VS Code user or workspace settings, set "typescript.tsserver.log": "terse" . · Open a TS...
Read more >
typescript-tslint-plugin - npm package - Snyk
Learn more about typescript-tslint-plugin: package health score, ... No known security issues ... Use coc-tslint-plugin as extension of coc.nvim.
Read more >
coc-tslint-plugin - npm
TSLint extension for coc.nvim as tsserver plugin. Latest version: 1.2.0, ... tslint.autoFixOnSave - fix autofixable issues on save.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found