lint fix, lint task

This commit is contained in:
Henry Zhu 2015-08-20 15:07:05 -04:00
parent 8812bf735e
commit b2405a9924
2 changed files with 3 additions and 2 deletions

View File

@ -327,7 +327,7 @@ function monkeypatch() {
} else if (left.type === "ObjectPattern") { } else if (left.type === "ObjectPattern") {
for (var i = 0; i < left.properties.length; i++) { for (var i = 0; i < left.properties.length; i++) {
var name = left.properties[i]; var name = left.properties[i];
if (name && name.key && name.key.type === 'Identifier') { if (name && name.key && name.key.type === "Identifier") {
scope.__define(name.key, new Definition("ComprehensionElement", name.key, name.key)); scope.__define(name.key, new Definition("ComprehensionElement", name.key, name.key));
} }
} }

View File

@ -15,7 +15,8 @@
"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",
"lint": "./node_modules/eslint/bin/eslint.js ./test index.js acorn-to-esprima.js"
}, },
"author": "Sebastian McKenzie <sebmck@gmail.com>", "author": "Sebastian McKenzie <sebmck@gmail.com>",
"license": "MIT", "license": "MIT",