{"_id":"553d394e9660ba0d00569d11","version":{"_id":"553d394d9660ba0d00569d07","project":"543467200ef9c00800164ecc","forked_from":"54bedb2fffb79c320030db1f","__v":1,"createdAt":"2015-04-26T19:15:25.245Z","releaseDate":"2015-04-26T19:15:25.245Z","categories":["553d394d9660ba0d00569d08","553d394d9660ba0d00569d09"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"0.11.2","version":"0.11.2"},"category":{"_id":"553d394d9660ba0d00569d09","pages":["553d394e9660ba0d00569d0a","553d394e9660ba0d00569d0b","553d394e9660ba0d00569d0c","553d394e9660ba0d00569d0d","553d394e9660ba0d00569d0e","553d394e9660ba0d00569d0f","553d394e9660ba0d00569d10","553d394e9660ba0d00569d11","553d394e9660ba0d00569d12"],"project":"543467200ef9c00800164ecc","__v":1,"version":"553d394d9660ba0d00569d07","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-15T18:17:35.811Z","from_sync":false,"order":1,"slug":"extensions","title":"EXTENSIONS"},"githubsync":"","__v":0,"project":"543467200ef9c00800164ecc","user":"543466ea0e8e2b0e00341818","metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-01-25T16:30:49.333Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":9,"body":"JSLint extension is used for auto javascript linting while the glim web server starts. It uses jslint npm module to run linting from command line.\n\n# Installation\n- install jslint from npm\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"npm install -g jslint\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n# Configuration\n- Add the following config to the extensions config;\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# app/config/<env>.py\\nconfig = {\\n\\t'extensions' : {\\n\\t\\t'jslint': {\\n            'source': os.path.join(paths.APP_PATH, 'assets/js'),\\n        }\\n    },\\n\\t# ...\\n}\",\n      \"language\": \"python\"\n    }\n  ]\n}\n[/block]\n# Roadmap\n- Autolint after file changes without server start\n- Show lint errors on served page","excerpt":"javascript lint extension for glim framework","slug":"jslint","type":"basic","title":"JSLint"}

JSLint

javascript lint extension for glim framework

JSLint extension is used for auto javascript linting while the glim web server starts. It uses jslint npm module to run linting from command line. # Installation - install jslint from npm [block:code] { "codes": [ { "code": "npm install -g jslint", "language": "shell" } ] } [/block] # Configuration - Add the following config to the extensions config; [block:code] { "codes": [ { "code": "# app/config/<env>.py\nconfig = {\n\t'extensions' : {\n\t\t'jslint': {\n 'source': os.path.join(paths.APP_PATH, 'assets/js'),\n }\n },\n\t# ...\n}", "language": "python" } ] } [/block] # Roadmap - Autolint after file changes without server start - Show lint errors on served page