From 35f43f6787be0dfe614477fd930040f989ba9274 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Tue, 5 Aug 2025 13:51:39 +0200 Subject: [PATCH] Exclude test/e2e from default linter --- eslint.config.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 27f6599..b210b69 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,5 +1,5 @@ import js from "@eslint/js"; -import { defineConfig } from "@eslint/config-helpers"; +import { defineConfig, globalIgnores } from "@eslint/config-helpers"; import globals from "globals"; import importPlugin from "eslint-plugin-import"; @@ -22,4 +22,5 @@ export default defineConfig([ }, rules: {}, }, + globalIgnores(['test/e2e']), ]); diff --git a/package.json b/package.json index c269bf7..20278fa 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "test": "node --test --experimental-test-module-mocks 'src/**/*.spec.js'", "test:watch": "node --test --watch --experimental-test-module-mocks 'src/**/*.spec.js'", - "lint": "eslint src" + "lint": "eslint ." }, "repository": { "type": "git",