Add lint script and editorconfig file

This commit is contained in:
Eric Bidelman 2017-06-19 14:43:05 -07:00 committed by Pavel Feldman
parent f185ab749f
commit 96e5736528
3 changed files with 14 additions and 4 deletions

9
.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

View File

@ -9,8 +9,9 @@
"scripts": {
"test-puppeteer": "jasmine test/test.js",
"test-phantom": "python third_party/phantomjs/test/run-tests.py",
"test": "npm run test-puppeteer && npm run test-phantom",
"install": "node install.js"
"test": "yarn lint --silent && npm run test-puppeteer && npm run test-phantom",
"install": "node install.js",
"lint": "eslint --quiet -f codeframe . || eslint ."
},
"author": "The Chromium Authors",
"license": "SEE LICENSE IN LICENSE",

View File

@ -275,9 +275,9 @@ var customMatchers = {
compare: function(actual, expected) {
return compareImageToGolden(actual, expected);
}
};
}
}
}
};
/**
* @param {?Buffer} imageBuffer