Skip to content

Commit

Permalink
Merge pull request felixge#80 from pdehaan/exporter
Browse files Browse the repository at this point in the history
Add module.exports for ESLint and JSHint rules
  • Loading branch information
pdehaan committed Oct 22, 2015
2 parents f6f65cb + c76611a commit f0eec92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

var readFile = require('fs').readFileSync;
var pathJoin = require('path').join;

module.exports = {
eslintrc: loadJson('.eslintrc'),
jshintrc: loadJson('.jshintrc')
};

function loadJson(configFile) {
var data = readFile(pathJoin(__dirname, configFile), 'utf-8');
return JSON.parse(data);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"jshint"
],
"license": "CC-BY-SA-3.0",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/felixge/node-style-guide.git"
Expand Down

0 comments on commit f0eec92

Please sign in to comment.