From e9e3bf5377647daf7aa893dbb26b2845315c8452 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 25 Aug 2024 11:38:11 +0200 Subject: [PATCH] Fix eslint script to also lint index.js file. --- eslint.config.mjs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 26fd9c1..0f7dfa8 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -11,7 +11,7 @@ export default [ } }, { - files: ["tests/**/*.test.js"], + files: ["tests/*.test.js", "tests/**/*.test.js"], ...jest.configs['flat/recommended'], rules: { ...jest.configs['flat/recommended'].rules, diff --git a/package.json b/package.json index 51e78f9..ee3397e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "build": "node esbuild.config.js", "dev": "npm run build && npm run start", - "lint": "eslint src/**/*.js tests/**/*.test.js", + "lint": "eslint --no-error-on-unmatched-pattern src/**/*.js src/*.js tests/**/*.test.js tests/**/*.js", "lint:fix": "npm run lint -- --fix", "start": "node dist/svr.js", "test": "jest"