Giter Site home page Giter Site logo

Support node related globals about jshint HOT 5 CLOSED

jshint avatar jshint commented on July 28, 2024
Support node related globals

from jshint.

Comments (5)

valueof avatar valueof commented on July 28, 2024

Makes sense. I've committed that change here: 2766f5a.

from jshint.

indexzero avatar indexzero commented on July 28, 2024

I think you're missing 'Buffer'. Here's the full-set from the node repl:

$ node
> 
Array               Boolean             Date                Error               EvalError           Function            Infinity
JSON                Math                NaN                 Number              Object              RangeError          ReferenceError
RegExp              String              SyntaxError         TypeError           URIError            decodeURI           decodeURIComponent
encodeURI           encodeURIComponent  eval                isFinite            isNaN               parseFloat          parseInt
undefined           

Buffer              GLOBAL              clearInterval       clearTimeout        console             global              module
process             require             root                setInterval         setTimeout          

from jshint.

valueof avatar valueof commented on July 28, 2024

Added in 3c68144

from jshint.

indexzero avatar indexzero commented on July 28, 2024

Awesome! You rock. Is there a way I can be testing this out on my own projects? I'm currently using this fork of node-lint: https://github.com/as-jpolo/node-lint

I want to compare the results, help get JSHint off the ground.

from jshint.

valueof avatar valueof commented on July 28, 2024

We at Disqus already use it as a pre-commit hook. Basically, we check all changed .js files with jshint before committing to the repo.

With Node, it is pretty easy — check out Environments section in the README or runtests.js file in the repo.

We will also have a website next week.

from jshint.

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.