Coder Social home page Coder Social logo

Comments (5)

ashwinr avatar ashwinr commented on July 24, 2024

sure, that's a good idea

from tslint.

am11 avatar am11 commented on July 24, 2024

@ashwinr, can you please us this issue? madskristensen/WebEssentials2013#450 (comment)

Here is our .tslintrc file. Apparently, no error is being returned in the file.

Also, what is the purpose of --out argument?

We are redirecting StdErr to StdOut to a .tmp file like this

cmd /c ""C:\USERS\ADEEL\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\12.0EXP\EXTENSIONS\MADS KRISTENSEN\WEB ESSENTIALS 2013\1.6\Resources\nodejs\node.exe" "C:\USERS\ADEEL\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\12.0EXP\EXTENSIONS\MADS KRISTENSEN\WEB ESSENTIALS 2013\1.6\Resources\nodejs\tools\node_modules\tslint\bin\tslint" --format "json" --config "C:\Users\Adeel\Web Essentials.tslintrc" --file "C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\type.ts" > "C:\Users\Adeel\AppData\Local\Temp\tmp712C.tmp" 2>&1"

Even though I missed couple of curly braces and semicolons, no warning is generated on console or in the file.

from tslint.

gscshoyru avatar gscshoyru commented on July 24, 2024

Several things --

  • Note that we actually no longer check for .tslintrc by default; we only check for tslint.json now. The documentatuon was apparently never updated when this change was made, but I've updated it now. It seems like you provided the config file as a command line argument which should fix that, but I figured I should mention it so that you're aware.
  • The config file you borrowed from is out of date. The format of the file is now { rules: { /* list of rules by rulename: options */ } } . You can see an example here: https://github.com/palantir/tslint/blob/master/tslint.json (this is what we use to tslint the typescript in the tslint project), and a better example file will be coming out in the next few days. But that one should be enough to get you started
  • the --out option is used if you want the results of the linting to be put in a specific file rather than stdout. Doing what you did in the command you provided is more-or-less equivalent.

Hope this helps! Let us know if it doesn't/if you need anything else.

from tslint.

am11 avatar am11 commented on July 24, 2024

@gscshoyru, thanks it helped and solved our problem! :)

Moving on to next, is there a way to get custom message format? See this #59.

from tslint.

gscshoyru avatar gscshoyru commented on July 24, 2024

Yup. I responded in #59 and closed it -- we've already got a way to do that with formatters. Let us know if you run into any trouble implementing your own formatter, since there isn't any documentation for it yet.

from tslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.