From @irlnathan:
http://stackoverflow.com/questions/5069136/how-can-i-change-jslintvs-2010-extension-to-ignore-files
https://github.com/fbzhong/sublime-jslint
Make sure you install sudo npm install -g jslint
| var fs = require('fs'); | |
| var knox = require('knox'); | |
| var mpu = require('knox-mpu'); | |
| var request = require('request'); | |
| var uri = "https://lh4.ggpht.com/N5f6FA5zPjrTH-UggaFLstYSO1za-01CbsO17ZwkghtF0k9TSzWcnCn4bybCDeIOP4cu=w124"; | |
| // Open download stream from google | |
| var downStream = request(uri); |
| /** | |
| * Policy defines middleware that is run before each controller/action. | |
| * Any policy dropped into the /policies directory is made globally available through sails.policies | |
| * Below, use the string name of the policy (for instance authenticated.js would be "authenticated") | |
| */ | |
| module.exports.policies = { | |
| // Default policy (apply to everything) | |
| // equivalent to ['authenticated'] | |
| '*': 'authenticated' |
| /** | |
| * Policy defines middleware that is run before each controller/action. | |
| * Any policy dropped into the /policies directory is made globally available through sails.policies | |
| * Below, use the string name of the policy (for instance authenticated.js would be "authenticated") | |
| */ | |
| module.exports.policies = { | |
| // Default policy (apply to everything) | |
| // equivalent to ['authenticated'] | |
| '*': 'authenticated' | |
| /** | |
| * Policy defines middleware that is run before each controller/action. | |
| * Any policy dropped into the /policies directory is made globally available through sails.policies | |
| * Below, use the string name of the policy (for instance authenticated.js would be "authenticated") | |
| */ | |
| module.exports.policies = { | |
| // Default policy (apply to everything) | |
| // equivalent to ['authenticated'] | |
| '*': 'authenticated' | |
| /** | |
| * Proposed specification for defining simple, RESTful, all-js schemas | |
| * (see anchor: https://github.com/balderdashy/anchor) | |
| * | |
| * Use cases: | |
| * + generating JSON API documentation | |
| * + generating unit tests for JSON APIs | |
| * + validating requests and marshaling responses | |
| * | |
| */ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Lift.js Example</title> | |
| <script type="text/javascript" src="http://balderdash.co/lift.js"></script> | |
| <!-- For app.js, see: https://gist.github.com/mikermcneil/5226696 --> | |
| <script type="text/javascript" src="./js/app.js"></script> | |
| </head> | |
| <body> |
| // | |
| // # app.js | |
| // | |
| // ### A hypothetical example of the lift.js js library | |
| // | |
| // ## What is this? | |
| // Well, lift.js is a project I've been dreaming about for a long time. | |
| // It converts declarative, stylesheet-like javascript markup into functional logic & state components. | |
| // These take the form of Backbone models, views, and collections, as described by Mast (https://github.com/balderdashy/mast) | |
| // |
From @irlnathan:
http://stackoverflow.com/questions/5069136/how-can-i-change-jslintvs-2010-extension-to-ignore-files
https://github.com/fbzhong/sublime-jslint
Make sure you install sudo npm install -g jslint
| sudo npm install -g cordova |