{"id":15368226,"url":"https://github.com/jamesmessinger/tslint-vscode-bug-demo","last_synced_at":"2025-06-22T01:36:02.640Z","repository":{"id":85899890,"uuid":"157716333","full_name":"JamesMessinger/tslint-vscode-bug-demo","owner":"JamesMessinger","description":"Demonstrates that the TSLint extension for VSCode fails to show some errors","archived":false,"fork":false,"pushed_at":"2018-11-15T13:54:32.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T21:54:28.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JamesMessinger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-15T13:30:58.000Z","updated_at":"2018-11-15T13:54:33.000Z","dependencies_parsed_at":"2023-03-09T10:00:23.703Z","dependency_job_id":null,"html_url":"https://github.com/JamesMessinger/tslint-vscode-bug-demo","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"93360ef9b40256e941c740b4d82411a5a3860720"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JamesMessinger/tslint-vscode-bug-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesMessinger%2Ftslint-vscode-bug-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesMessinger%2Ftslint-vscode-bug-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesMessinger%2Ftslint-vscode-bug-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesMessinger%2Ftslint-vscode-bug-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamesMessinger","download_url":"https://codeload.github.com/JamesMessinger/tslint-vscode-bug-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesMessinger%2Ftslint-vscode-bug-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261220893,"owners_count":23126833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T13:28:46.296Z","updated_at":"2025-06-22T01:35:57.623Z","avatar_url":"https://github.com/JamesMessinger.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bug Repro\n==============================\nThis repo is a minimalistic reproduction of a bug in the [TSLint extension for VSCode](https://marketplace.visualstudio.com/items?itemName=eg2.tslint).  It demonstrates that some linter errors **don't** appear in VSCode, but **do** appear when TSLint is run from the command-line.\n\nExplanation\n-------------------------\n\n### TSLint Config\nThis project only has two TSLint rules enabled:\n\n[**tslint.yaml**](tslint.yaml)\n\n```yaml\nrules:\n  no-empty: true\n  no-void-expression: true\n```\n\n\n### TypeScript Code\nThis project has a single TypeScript code file that contains a violation of each of these rules:\n\n[**index.ts**](src/index.ts)\n\n```typescript\nexport function add(a: number, b: number): number {\n  console.log(empty());                             // \u003c--- violates the \"no-void-expression\" rule\n  return a + b;\n}\n\nexport function empty(): void { }                   // \u003c--- violates the \"no-empty\" rule\n```\n\n\n### TSLint Results\nWhen running TSLint from the command-line, it shows both errors, as expected:\n\n![screenshot](img/cli-screenshot.png)\n\n\n### VSCode Results\nThe TSLint Extension for VSCode correctly shows the \"no-empty\" error on line 6, but notice that it _does not_ show the \"no-void-expression\" error on line 2:\n\n![screenshot](img/vscode-screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmessinger%2Ftslint-vscode-bug-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesmessinger%2Ftslint-vscode-bug-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmessinger%2Ftslint-vscode-bug-demo/lists"}