diff --git a/package.json b/package.json index 4116a5fd..a272e698 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "web-types": "editors/jetbrains/htmx.web-types.json", "scripts": { "dist": "./scripts/dist.sh", - "lint": "eslint src/htmx.js", + "lint": "eslint src/htmx.js test/attributes/ test/core/ test/util/", "format": "eslint --fix src/htmx.js test/attributes/ test/core/ test/util/", "test": "mocha-chrome test/index.html", "test-types": "tsc --project ./jsconfig.json", @@ -55,6 +55,7 @@ "no-unused-vars": 0, "no-useless-call": 0, "no-useless-escape": 0, + "no-unused-expressions": 0, "space-before-function-paren": [ "error", "never" diff --git a/test/core/ajax.js b/test/core/ajax.js index 42d733a6..2d515570 100644 --- a/test/core/ajax.js +++ b/test/core/ajax.js @@ -642,7 +642,7 @@ describe("Core htmx AJAX Tests", function(){ this.server.respond(); foo.bar().should.equal(42); } finally { - delete foo; + delete window.foo; } }); diff --git a/test/core/shadowdom.js b/test/core/shadowdom.js index 7be737f9..a4b864ff 100644 --- a/test/core/shadowdom.js +++ b/test/core/shadowdom.js @@ -706,7 +706,7 @@ describe("Core htmx Shadow DOM Tests", function() { this.server.respond(); foo.bar().should.equal(42); } finally { - delete foo; + delete window.foo; } });