Giter VIP home page Giter VIP logo

jshintr's People

Contributors

rixth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jshintr's Issues

I can get jshinter working on windows

I'm running latest node version ( 0.8.1 ), i downloaded the package and put it in a directory.
I installed express and jade and so in jshintr folder i have a node_module directory which holds both packages. i start node app.js and the server starts. I tried to access files directly bypassing apache and so i tried to connect to

http://127.0.0.1:3000/?file=C:/Program%20Files%20(x86)/Zend/Apache2/htdocs/wordpress/wp-content/plugins/all-in-one-event-calendar/app/view/admin/js_development/scripts/add_new_event.jshint

which gives me back

File could not be found

Sorry brah, we couldn't find the file at C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr/views/sadface.jade

so i went to line 34 and replaced

var filename = ( '/' + req.query.file).replace(/hint$/, '');

with

var filename = ( req.query.file).replace(/hint$/, '');

And then tried again (after restartin app.js) and got

C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr\lib\hasher.js:11
errorLineContents = source.split("\n")[error.line - 1],
^
TypeError: Cannot read property 'line' of null
at C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr\lib\hasher.js:11:53
at module.exports.passed (C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr\lib\hinter.js:131:20)
at Array.forEach (native)
at hintCode (C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr\lib\hinter.js:130:19)
at module.exports.passed (C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr\lib\hinter.js:154:20)
at Array.forEach (native)
at C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr\lib\hinter.js:148:14
at C:\Program Files (x86)\Zend\Apache2\htdocs\wordpress\wp-content\plugins\all-in-one-event-calendar\app\view\admin\js_development\jshintr\app.js:49:16
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)

what am i doing worng?

Include package.json

Please include a package.json file so all dependencies can be installed with npm install. Would also be cool to hook up npm start to start the server.

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.