lint fix, lint task
This commit is contained in:
parent
8812bf735e
commit
b2405a9924
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user