From cb5cd4939643ae7f677261f27f01f4d1cd18fa91 Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Tue, 4 Jun 2024 18:53:17 -0700 Subject: [PATCH] Properly ignore *.d.ts files from linting --- .eslintignore | 1 + package.json | 2 +- src/jcanvas.d.ts | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..cd4efd8 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +*.d.ts diff --git a/package.json b/package.json index 5ce4a14..f59a113 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "rollup -c", "prepare": "rollup -c", "watch": "rollup -c -w", - "lint": "eslint src/jcanvas.ts src/jcanvas-*.ts && tsc --noEmit" + "lint": "eslint src/*.ts && tsc --noEmit" }, "homepage": "https://projects.calebevans.me/jcanvas/", "author": "Caleb Evans", diff --git a/src/jcanvas.d.ts b/src/jcanvas.d.ts index a6659be..1229b94 100644 --- a/src/jcanvas.d.ts +++ b/src/jcanvas.d.ts @@ -3,7 +3,6 @@ * Copyright 2024 Caleb Evans * Released under the MIT license */ - declare module "jcanvas"; declare module "jcanvas/dist/umd/jcanvas.min.js"; declare module "jcanvas/dist/umd/jcanvas-crescents.min.js";