diff --git a/.eslintrc.js b/.eslintrc.js index e9d3bc39..eefecbc0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -99,6 +99,18 @@ module.exports = { "import/unambiguous": ["off"] } }, + { + files: ['test/browser-bugs/**'], + rules: { + 'no-var': 'off' + } + }, + { + files: ['**/*.html'], + rules: { + 'import/unambiguous': 'off' + } + }, // Our Markdown rules (and used for JSDoc examples as well, by way of // our use of `matchingFileName` in conjunction with // `jsdoc/check-examples` within `ash-nazg`) @@ -114,6 +126,7 @@ module.exports = { "import/no-unresolved": ["off"], "node/no-missing-import": ["off"], "no-multi-spaces": "off", + "sonarjs/no-all-duplicated-branches": "off", // Disable until may fix https://github.com/gajus/eslint-plugin-jsdoc/issues/211 "indent": "off" } @@ -126,6 +139,7 @@ module.exports = { root: "off" }, rules: { + "node/no-unsupported-features/es-syntax": "off", "node/no-unsupported-features/node-builtins": "off" } }, diff --git a/CHANGES.md b/CHANGES.md index ca7e3f0a..6006e423 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,7 @@ `ext-server_opensave.js` - Optimization: Re-rerun image optimization per update - Linting (ESLint): Adjust per now applied rules +- Linting (ESLint): Add HTML files to linting - Refactoring: Use `static` keyword for classes - Testing: Accessibility test API update - Docs: Clarify need for Node.js/npm being installed diff --git a/demos/canvas.html b/demos/canvas.html index a1219137..bb5e055a 100644 --- a/demos/canvas.html +++ b/demos/canvas.html @@ -25,6 +25,7 @@ diff --git a/test/qunit/qunit-assert-expectOutOfBoundsException.js b/test/qunit/qunit-assert-expectOutOfBoundsException.js index b9a55d2a..1342f60f 100644 --- a/test/qunit/qunit-assert-expectOutOfBoundsException.js +++ b/test/qunit/qunit-assert-expectOutOfBoundsException.js @@ -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) { diff --git a/test/utilities_test.js b/test/utilities_test.js index a8a27ee5..7dfe5114 100644 --- a/test/utilities_test.js +++ b/test/utilities_test.js @@ -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);