diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-07-03 12:13:12 -0400 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-07-08 20:06:12 -0400 |
commit | 9d55efe8002270acbfa6139aa175a00b68ff3e41 (patch) | |
tree | a02347eea981d650a6b940f6bae5e36158eef6ae | |
parent | deaa5a1b8a36eacbb7d31f3a825828f37220396b (diff) | |
download | async-9d55efe8002270acbfa6139aa175a00b68ff3e41.tar.gz |
:scroll: Manadate style guide with jscs
:hammer: make lint should use JSCS
-rw-r--r-- | .jscsrc | 3 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | package.json | 3 |
3 files changed, 7 insertions, 1 deletions
@@ -0,0 +1,3 @@ +{ + "validateIndentation": 4 +}
\ No newline at end of file @@ -3,6 +3,7 @@ CWD := $(shell pwd) NODEUNIT = "$(CWD)/node_modules/.bin/nodeunit" UGLIFY = "$(CWD)/node_modules/.bin/uglifyjs" JSHINT = "$(CWD)/node_modules/.bin/jshint" +JSCS = "$(CWD)/node_modules/.bin/jscs" XYZ = node_modules/.bin/xyz --repo git@github.com:caolan/async.git BUILDDIR = lib @@ -21,6 +22,7 @@ clean: lint: $(JSHINT) lib/*.js test/*.js perf/*.js + $(JSCS) lib/*.js test/*.js perf/*.js .PHONY: test lint build all clean diff --git a/package.json b/package.json index e26d3c6..754deb5 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "devDependencies": { "benchmark": "bestiejs/benchmark.js", "coveralls": "^2.11.2", + "jscs": "^1.13.1", "jshint": "~2.8.0", "lodash": "^3.9.0", "mkdirp": "~0.5.1", @@ -43,7 +44,7 @@ }, "scripts": { "test": "npm run-script lint && nodeunit test/test-async.js", - "lint": "jshint lib/*.js test/*.js perf/*.js", + "lint": "jshint lib/*.js test/*.js perf/*.js && jscs lib/*.js test/*.js perf/*.js", "coverage": "nyc npm test && nyc report", "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" }, |