update espree, update eslintester for eslint 1.0
This commit is contained in:
parent
ac163a64fe
commit
8812bf735e
@ -1,4 +1,4 @@
|
|||||||
var ESLintTester = require("./eslint/node_modules/eslint-tester");
|
var ESLintTester = require("./eslint").RuleTester;
|
||||||
|
|
||||||
console.log("Use babel-eslint for test suite");
|
console.log("Use babel-eslint for test suite");
|
||||||
ESLintTester.setDefaultConfig({
|
ESLintTester.setDefaultConfig({
|
||||||
|
|||||||
@ -415,7 +415,7 @@ exports.parse = function (code) {
|
|||||||
|
|
||||||
var opts = {
|
var opts = {
|
||||||
locations: true,
|
locations: true,
|
||||||
ranges: true,
|
ranges: true
|
||||||
};
|
};
|
||||||
|
|
||||||
var comments = opts.onComment = [];
|
var comments = opts.onComment = [];
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bootstrap": "git submodule update --init && cd eslint && npm install",
|
"bootstrap": "git submodule update --init && cd eslint && npm install",
|
||||||
"eslint": "cd eslint && mocha -c tests/lib/rules/**/*.js -r ../eslint-tester.js",
|
"eslint": "cd eslint && mocha -c tests/lib/rules/*.js -r ../eslint-tester.js",
|
||||||
"test": "mocha"
|
"test": "mocha"
|
||||||
},
|
},
|
||||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||||
@ -25,7 +25,7 @@
|
|||||||
"homepage": "https://github.com/babel/babel-eslint",
|
"homepage": "https://github.com/babel/babel-eslint",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^1.2.1",
|
"eslint": "^1.2.1",
|
||||||
"espree": "^2.0.3",
|
"espree": "^2.2.4",
|
||||||
"mocha": "^2.2.5"
|
"mocha": "^2.2.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user