From 6efa5897283014ed995df38b7b1acf3bf0e0f0dd Mon Sep 17 00:00:00 2001 From: Ioan CHIRIAC Date: Thu, 5 Jan 2017 22:38:48 +0100 Subject: [PATCH] add some XO awesomeness --- README.md | 1 + package.json | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6f8e096..41f4331 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![npm version](https://badge.fury.io/js/docblock-parser.svg)](https://www.npmjs.com/package/parsedoc) [![Build Status](https://travis-ci.org/glayzzle/docblock-parser.svg?branch=master)](https://travis-ci.org/glayzzle/docblock-parser) [![Coverage Status](https://coveralls.io/repos/github/glayzzle/docblock-parser/badge.svg?branch=master)](https://coveralls.io/github/glayzzle/docblock-parser?branch=master) +[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![Gitter](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/glayzzle/Lobby) Parses docblocks comments diff --git a/package.json b/package.json index 67e9ea7..85434ca 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Parses docblocks comments", "main": "src/index.js", "scripts": { - "test": "node node_modules/mocha/bin/mocha test --stack-size=5000", + "test": "xo && node node_modules/mocha/bin/mocha test --stack-size=5000", "cover": "node --stack-size=5000 node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha" }, "repository": { @@ -33,6 +33,7 @@ "grunt-documentation": "^1.2.1", "istanbul": "^0.4.5", "mocha": "^3.2.0", - "should": "^11.1.2" + "should": "^11.1.2", + "xo": "^0.17.1" } -} \ No newline at end of file +}