Coder Social home page Coder Social logo

Windows usage instructions about tslint HOT 6 CLOSED

palantir avatar palantir commented on July 24, 2024
Windows usage instructions

from tslint.

Comments (6)

ashwinr avatar ashwinr commented on July 24, 2024

Did you try installing tslint via npm?

from tslint.

lookbusy1344 avatar lookbusy1344 commented on July 24, 2024

Ah great, just installed Node, and it's working. thanks!

from tslint.

Chieleman avatar Chieleman commented on July 24, 2024

Hi, tried installing tslint but when i try to lint a file i get the following error:
Cannot find module './tslint-cli'

I'm new with nodejs or npm so please excuse me if this is dumb question.

from tslint.

jmolero avatar jmolero commented on July 24, 2024

I've got the same error: Cannot find module './tslint-cli'

from tslint.

lookbusy1344 avatar lookbusy1344 commented on July 24, 2024

Have you got Node.js installed? I'm no expert but this is what I do:

Install Node.js
Log out, and back in (just in case, to set up path)
Open cmd.exe and run 'npm install tslint -g'
From a command prompt, check 'tslint --version' to check it's installed

I think palantir should add some installation instructions, I'd never used Node before TsLint.

Incidentally, for noobs here's a quick and dirty Powershell script to TsLint all your project's ts files (with an exclude list for 3rd party d.ts files etc):

https://www.dropbox.com/s/ne9m3hkag5bnd9r/TsLint%20files.ps1?dl=0

from tslint.

jmolero avatar jmolero commented on July 24, 2024

It's working. My path was pointing to a wrong tslint installation.

Thanks for the help.

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.