Skip to content

Commit

Permalink
add eslint tests - Ref babel#62
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed May 30, 2015
1 parent a1fffcd commit 51e4613
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "eslint"]
path = eslint
url = https://github.com/eslint/eslint
1 change: 1 addition & 0 deletions eslint
Submodule eslint added at b89d29
6 changes: 6 additions & 0 deletions eslint-tester.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var ESLintTester = require("./eslint/node_modules/eslint-tester");

console.log("Use babel-eslint for test suite");
ESLintTester.setDefaultConfig({
parser: "../../index"
});
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"lodash.assign": "^3.0.0"
},
"scripts": {
"prepare-eslint-tests": "cd eslint; npm install",
"eslint-tests": " cd eslint; mocha -c tests/lib/rules/**/*.js -r ../eslint-tester.js",
"test": "mocha"
},
"author": "Sebastian McKenzie <[email protected]>",
Expand All @@ -22,6 +24,7 @@
"homepage": "https://github.com/babel/babel-eslint",
"devDependencies": {
"eslint": "^0.21.2",
"eslint-tester": "^0.7.0",
"espree": "^2.0.0",
"mocha": "^2.1.0"
}
Expand Down

0 comments on commit 51e4613

Please sign in to comment.