- Linting (ESLint): Lint per latest ash-nazg (e.g., named capture)

- Linting (ESLint): Add HTML files to linting and add devDeps for new ash-nazg
- npm: Update devDeps
This commit is contained in:
Brett Zamir
2019-07-02 12:21:21 +08:00
parent af290bd743
commit e4231aeb10
30 changed files with 313 additions and 267 deletions

View File

@@ -7,9 +7,10 @@
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css"/>
<script src="../editor/jquery.min.js"></script>
<script>
// Mock for browser.js
window.svgEditor = {
ready () {}
ready () {
// Mock for browser.js
}
};
</script>
<script src="../node_modules/qunit/qunit/qunit.js"></script>

View File

@@ -2,7 +2,7 @@
* Expects an out of bounds `INDEX_SIZE_ERR` exception.
* @param {GenericObject} obj
* @param {GenericCallback} fn
* @param {Any} arg1
* @param {any} arg1
* @returns {void}
*/
function expectOutOfBoundsException (obj, fn, arg1) {

View File

@@ -290,8 +290,7 @@ QUnit.test('Test getPathDFromElement', function (assert) {
QUnit.test('Test getBBoxOfElementAsPath', function (assert) {
/**
* Wrap `utilities.getBBoxOfElementAsPath` to convert bbox to object for testing.
* @implements {module:utilities.getBBoxOfElementAsPath}
* @returns {DOMRect|false} The resulting path's bounding box object.
* @type {module:utilities.getBBoxOfElementAsPath}
*/
function getBBoxOfElementAsPath (elem, addSVGElementFromJson, pathActions) {
const bbox = utilities.getBBoxOfElementAsPath(elem, addSVGElementFromJson, pathActions);