Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Commit

Permalink
Add lint support
Browse files Browse the repository at this point in the history
  • Loading branch information
auni53 authored and jhford committed Oct 30, 2017
1 parent 4b3b8ae commit d1090d1
Show file tree
Hide file tree
Showing 4 changed files with 1,033 additions and 126 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "eslint-config-taskcluster"
}
8 changes: 8 additions & 0 deletions lint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var lint = require('mocha-eslint');

var paths = [
'lib/*.js',
'test/*.js',
];

lint(paths);
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"scripts": {
"start": "node lib/main.js start",
"test": "LOG_LEVEL=*:warn DEBUG= NODE_ENV=test yarn run _test",
"_test": "NODE_ENV=test nyc --reporter=html mocha"
"_test": "NODE_ENV=test nyc --reporter=html mocha",
"lint": "LOG_LEVEL=*:warn DEBUG= NODE_ENV=test yarn run _test lint.js"
},
"dependencies": {
"aws-sdk": "^2.86.0",
"babel-compile": "^2.0.0",
"babel-preset-taskcluster": "^3.0.0",
"bluebird": "^3.5.0",
"lodash": "^4.17.4",
"mocha": "^3.4.2",
"nyc": "^11.0.3",
"pg": "^7.0.1",
"pg-pool": "^2.0.1",
Expand All @@ -44,6 +44,12 @@
"pg-native": "^2.0.1"
},
"devDependencies": {
"assume": "^1.5.1"
"assume": "^1.5.1",
"babel-eslint": "^8.0.1",
"eslint": "^4.9.0",
"eslint-config-taskcluster": "^2.0.0",
"eslint-plugin-taskcluster": "^1.0.2",
"mocha": "^2.2.1",
"mocha-eslint": "^3.0.1"
}
}
Loading

0 comments on commit d1090d1

Please sign in to comment.