Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
eslint updates. add pre-commit too.
Browse files Browse the repository at this point in the history
  • Loading branch information
briandela committed Jan 27, 2016
1 parent 306f8d2 commit 7547a2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"linebreak-style": [ 2, "unix" ],
"no-console": 1,
"no-mixed-spaces-and-tabs": 2,
"no-var": 1,
"object-shorthand": [ 2, "properties" ],
"prefer-const": 2,
"quotes": [ 2, "single" ],
"semi": [ 2, "always" ],
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "therealyou",
"version": "1.0.1",
"version": "1.0.2",
"description": "hapi.js plugin for setting the remoteAddress and remotePort based on the X-Forwarded-For and X-Forwarded-Port headers",
"main": "lib/index.js",
"author": "Brian Delahunty <brian@briandela.com>",
"scripts": {
"test": "lab -r lcov | node node_modules/coveralls/bin/coveralls.js; lab -a code -v -t 100 -L"
"test": "lab -r lcov | node node_modules/coveralls/bin/coveralls.js; lab -a code -v -t 100 -L",
"lint": "lab -L -d"
},
"repository": {
"type": "git",
Expand All @@ -24,11 +25,15 @@
"bugs": {
"url": "https://github.com/briandela/therealyou/issues"
},
"pre-commit": [
"test"
],
"homepage": "https://github.com/briandela/therealyou",
"devDependencies": {
"code": "^2.1.0",
"coveralls": "^2.11.6",
"hapi": "^11.1.4",
"lab": "^8.0.2"
"lab": "^8.2.0",
"pre-commit": "^1.1.2"
}
}
5 changes: 2 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ const describe = lab.describe;
const it = lab.it;
const before = lab.before;


describe('x-forwarded-for', function () {

var server;
let server;

before(function (done) {

Expand Down Expand Up @@ -89,7 +88,7 @@ describe('x-forwarded-for', function () {

describe('x-forwarded-port', function () {

var server;
let server;

before(function (done) {

Expand Down

0 comments on commit 7547a2b

Please sign in to comment.