Add lint script and editorconfig file
This commit is contained in:
parent
f185ab749f
commit
96e5736528
9
.editorconfig
Normal file
9
.editorconfig
Normal 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
|
@ -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",
|
||||
|
@ -275,9 +275,9 @@ var customMatchers = {
|
||||
compare: function(actual, expected) {
|
||||
return compareImageToGolden(actual, expected);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {?Buffer} imageBuffer
|
||||
|
Loading…
Reference in New Issue
Block a user