Skip to content

Commit

Permalink
Merge pull request eslint#80 from iancmyers/fix-require
Browse files Browse the repository at this point in the history
Enabled require("eslint") and exposed out CLI.
  • Loading branch information
nzakas committed Jul 19, 2013
2 parents 5266964 + f5464e8 commit ce7b49d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/api.js
@@ -0,0 +1,9 @@
/**
* @fileoverview Expose out ESLint and CLI to require.
* @author Ian Christian Myers
*/

module.exports = {
linter: require("./eslint"),
cli: require("./cli")
};
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -6,6 +6,7 @@
"bin": {
"eslint": "./bin/eslint.js"
},
"main": "./lib/api.js",
"scripts": {
"changelog": "bash ./scripts/changelog-update.sh",
"test": "npm run-script lint && node ./node_modules/istanbul/lib/cli.js cover --print both ./node_modules/vows/bin/vows -- --spec ./tests/*/*.js ./tests/*/*/*.js",
Expand Down

0 comments on commit ce7b49d

Please sign in to comment.