diff --git a/types/jest-axe/index.d.ts b/types/jest-axe/index.d.ts index f16f4e7651..60375e3605 100644 --- a/types/jest-axe/index.d.ts +++ b/types/jest-axe/index.d.ts @@ -82,4 +82,7 @@ declare global { toHaveNoViolations: IToHaveNoViolations; } } + + // axe-core depends on a global Node + interface Node {} } diff --git a/types/jest-axe/tsconfig.json b/types/jest-axe/tsconfig.json index 1889f0045d..887813c869 100644 --- a/types/jest-axe/tsconfig.json +++ b/types/jest-axe/tsconfig.json @@ -2,8 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6", - "dom" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, diff --git a/types/jest-axe/tslint.json b/types/jest-axe/tslint.json index 3db14f85ea..4f44991c3c 100644 --- a/types/jest-axe/tslint.json +++ b/types/jest-axe/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-empty-interface": false + } +}