Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node-library-build] TSLint is printing a giant JSON blob instead of individual errors #1188

Closed
nickpape opened this issue Mar 27, 2019 · 1 comment
Labels
needs more info We can't proceed because we need a better repro or an answer to a question

Comments

@nickpape
Copy link
Contributor

Repro:

  • Create a project with dependencies:

    "@microsoft/node-library-build": "^6.0.44",
    "@microsoft/rush-stack-compiler-3.2": "^0.2.17", 
  • Create some code in src/. Create a basic gulpfile.js:

    const build = require('@microsoft/node-library-build');
    build.initialize(require('gulp'));
  • Add "build": "./node_modules/.bin/gulp build" to package.json.

  • Introduce a lint error in your TS file.

  • Run rushx build

Expected: A list of errors.

Actual: A giant JSON blog, e.g.:

Error - [tslint] [{"endPosition":{"character":16,"line":3,"position":47},"failure":"/" should be '","fix":{"innerStart":38,"innerLength":9,"innerText":"'express'"},"name":"/Users/npape/src/connect-server/src/foo.ts","ruleName":"quotemark","ruleSeverity":"ERROR","startPosition":{"character":7,"line":3,"position":38}},{"endPosition":{"character":55,"line":9,"position":268},"...
@octogonz octogonz changed the title TSLint is printing a giant JSON blob instead of individual errors [node-library-build] TSLint is printing a giant JSON blob instead of individual errors Apr 9, 2019
@octogonz octogonz added the needs more info We can't proceed because we need a better repro or an answer to a question label May 6, 2019
@iclanton
Copy link
Member

GCB is no longer under active development, and TSLint is deprecated at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info We can't proceed because we need a better repro or an answer to a question
Projects
Archived in project
Development

No branches or pull requests

3 participants