Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
lint fix, lint task
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Aug 20, 2015
1 parent cda7cef commit f3354fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function monkeypatch() {
} else if (left.type === "ObjectPattern") {
for (var i = 0; i < left.properties.length; 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));
}
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"scripts": {
"bootstrap": "git submodule update --init && cd eslint && npm install",
"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>",
"license": "MIT",
Expand Down

0 comments on commit f3354fa

Please sign in to comment.