From dbf354fa7f6912c94482ab632741a6e9267730fd Mon Sep 17 00:00:00 2001 From: Kim T Date: Sun, 13 Oct 2024 22:16:35 -0700 Subject: [PATCH] Fix eslint glob path and ignore --- eslint.config.js | 3 +++ package.json | 2 +- tsconfig.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 59877b0..976f08e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,4 +6,7 @@ export default [ { languageOptions: { globals: globals.browser } }, pluginJs.configs.recommended, ...tseslint.configs.recommended, + { + ignores: ['build', 'main'], + }, ]; diff --git a/package.json b/package.json index ee05228..3da3c3e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build": "npm run build-renderer && npm run build-electron && npm run copy", "copy": "cp -rf ./electron-src/*.mjs ./main", "format": "prettier . --write", - "lint": "eslint ./**/*.ts", + "lint": "eslint './**/*.ts'", "pack-app": "npm run build && electron-builder --dir", "pack": "electron-builder --help", "test": "vitest run ./tests", diff --git a/tsconfig.json b/tsconfig.json index 90eb058..3df78dc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,5 +12,5 @@ "isolatedModules": false }, "include": ["electron-src/**/*.ts"], - "exclude": ["tests/**/*.ts", "node_modules"] + "exclude": ["coverage", "build", "main", "node_modules", "tests"] }