{"id":15010628,"url":"https://github.com/vbauer/lein-jslint","last_synced_at":"2025-07-19T13:36:16.356Z","repository":{"id":16951130,"uuid":"19713321","full_name":"vbauer/lein-jslint","owner":"vbauer","description":"A Leiningen plugin for running javascript code through JSLint","archived":false,"fork":false,"pushed_at":"2018-11-17T13:16:06.000Z","size":55,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-10T13:03:36.990Z","etag":null,"topics":["clj","clojure","jslint","lein","leiningen"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-12T20:01:19.000Z","updated_at":"2018-11-17T13:13:59.000Z","dependencies_parsed_at":"2022-08-04T12:30:12.644Z","dependency_job_id":null,"html_url":"https://github.com/vbauer/lein-jslint","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/vbauer/lein-jslint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbauer%2Flein-jslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbauer%2Flein-jslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbauer%2Flein-jslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbauer%2Flein-jslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbauer","download_url":"https://codeload.github.com/vbauer/lein-jslint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbauer%2Flein-jslint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265942581,"owners_count":23853294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clj","clojure","jslint","lein","leiningen"],"created_at":"2024-09-24T19:35:08.558Z","updated_at":"2025-07-19T13:36:16.297Z","avatar_url":"https://github.com/vbauer.png","language":"Clojure","readme":"lein-jslint\n===========\n\n[JSLint](https://github.com/reid/node-jslint) is a static code analysis tool used in software development for checking if JavaScript source code complies with coding rules.\n\n[lein-jslint](https://github.com/vbauer/lein-jslint) is a Leiningen plugin for running javascript code through JSLint.\n\n[![Build Status](https://travis-ci.org/vbauer/lein-jslint.svg?branch=master)](https://travis-ci.org/vbauer/lein-jslint)\n[![Clojars Project](https://img.shields.io/clojars/v/lein-jslint.svg)](https://clojars.org/lein-jslint)\n\n\nPre-requirements\n================\n\nInstall [NodeJS](http://nodejs.org/) and [NPM](https://github.com/npm/npm) (package manager for Node) to install JSHint:\n\n- On Ubuntu: `sudo apt-get install nodejs`\n- On Mac OS X: `brew install node`\n\n\nInstallation\n============\n\nInstall [JSLint](https://www.npmjs.org/package/jslint) to use lein-jslint plugin. It could be done in few ways:\n\n- Use NPM to install JSLint globally: `npm install jslint -g`\n- You can also install JSLint in the current directory: `npm install jslint`\n- Use [lein-npm](https://github.com/bodil/lein-npm) plugin: `lein npm install`\n- Use just Leiningen: `lein deps`\n\n\nSetup\n-----\n\nTo enable lein-jslint for your project, put the following in the :plugins vector of your project.clj file:\n\n```clojure\n; Use latest version instead of \"X.X.X\"\n:plugins [[lein-jslint \"X.X.X\"]]\n```\n\n\nConfiguration\n=============\n\nYou can specify places, where JS files will be located with:\n```clojure\n:jslint {\n  :includes [\"resources/public/js/*.js\"\n             \"resources/js/*.js\"]\n}\n```\n\nYou can also specify JS files that should be excluded from checking:\n```clojure\n:jslint { :excludes [\"resources/public/lib/*.js\"] }\n```\n\nTo specify *:includes* and *:excludes* options, it is possible to use \u003ca href=\"http://en.wikipedia.org/wiki/Glob_(programming)\"\u003eGlob Patterns\u003c/a\u003e.\n\nJSLint rules could be configured with *:config* parameter:\n```clojure\n; It specifies which JSLint options to turn on or off\n:jslint {\n  :debug true ; To debug processing\n  :config {:predef {\"angular\" \"console\" \"$\"}\n           :nomen true\n           :eqeq true\n           ...}}\n```\n\nYou can use both variants to specify keys: string values or keywords.\n\nAll available parameters are described in the official documentation [here](https://github.com/reid/node-jslint/blob/master/doc/jslint.md)\n\n\nHooks\n-----\n\nTo enable this plugin in compile stage, use the following hook:\n```clojure\n:hooks [lein-jslint.plugin]\n```\n\n\nExamples\n========\n\nDetailed example\n----------------\n\n```clojure\n:jslint {\n  :includes [\"resources/public/js/*.js\"]\n\n  ; This configuration is used by default\n  :config {:confusion    true\n           :continue     true\n           :regexp       true\n           :unparam      true\n           :vars         true}}\n```\nAnother example of configuration file: [.jslintrc](https://gist.github.com/irae/2764095)\n\n\nExample project\n---------------\n\nJust clone the current repository and try to play with [example project](https://github.com/vbauer/lein-jslint/tree/master/example) for better understanding how to use lein-jslint.\n\n\nUnit testing\n============\n\nTo run unit tests:\n\n```bash\nlein test\n```\n\n\nThanks to\n=========\n\n[Douglas Crockford](http://www.crockford.com) for the great [JSLint](https://github.com/douglascrockford/JSLint) project.\n\n\nMight also like\n===============\n\n* [lein-asciidoctor](https://github.com/asciidoctor/asciidoctor-lein-plugin) - A Leiningen plugin for generating documentation using Asciidoctor.\n* [lein-plantuml](https://github.com/vbauer/lein-plantuml) - a Leiningen plugin for generating UML diagrams using PlantUML.\n* [lein-coffeescript](https://github.com/vbauer/lein-coffeescript) - a Leiningen plugin for running CoffeeScript compiler.\n* [lein-typescript](https://github.com/vbauer/lein-typescript) - a Leiningen plugin for running TypeScript compiler.\n* [lein-jshint](https://github.com/vbauer/lein-jshint) - a Leiningen plugin for running javascript code through JSHint.\n* [jabberjay](https://github.com/vbauer/jabberjay) - a simple framework for creating Jabber bots.\n* [coderwall-clj](https://github.com/vbauer/coderwall-clj) - a tiny CoderWall client for Clojure.\n\n\nLicense\n=======\n\nCopyright © 2014 Vladislav Bauer\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbauer%2Flein-jslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbauer%2Flein-jslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbauer%2Flein-jslint/lists"}