Skip to content
Browse files

add lint target to makefile

  • Loading branch information...
1 parent 626e7f9 commit 42143d9784e3f4deb34412f2b7cf43e6509759c9 @caolan committed Mar 22, 2011
Showing with 14 additions and 1 deletion.
  1. +4 −1 Makefile
  2. +10 −0 nodelint.cfg
View
5 Makefile
@@ -16,4 +16,7 @@ clean:
rm $(BUILDDIR)/nimble.min.js
rm $(BUILDDIR)/nimble.min.js.gzip
-.PHONY: clean test build all
+lint:
+ nodelint --config nodelint.cfg nimble.js
+
+.PHONY: clean test lint build all
View
10 nodelint.cfg
@@ -0,0 +1,10 @@
+var options = {
+ indent: 4,
+ onevar: false,
+ passfail: true,
+ evil: true,
+ browser: true,
+ devel: true,
+ plusplus: false,
+ forin: true
+};

0 comments on commit 42143d9

Please sign in to comment.
Something went wrong with that request. Please try again.