From 918e6fecde4a993fb98b0bc5579b43835668e94b Mon Sep 17 00:00:00 2001 From: Arthur Abeilice Date: Mon, 4 May 2026 23:51:05 -0300 Subject: [PATCH] chore(eslint): move src/tests scoping into config via negated ignores --- eslint.config.js | 9 +++------ package.json | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index e87bbd9..fbef6b3 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,12 +5,9 @@ import vuePrettierConfig from '@vue/eslint-config-prettier'; export default [ { ignores: [ - 'node_modules/**', - 'dist/**', - 'coverage/**', - 'public/**', - 'p2pix-smart-contracts/**', - 'vendor/**', + '**', + '!src/**', + '!tests/**', 'src/generated.ts', ], }, diff --git a/package.json b/package.json index e3d9b81..81da212 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "build-only": "vite build", "preview": "vite preview", "type-check": "vue-tsc --skipLibCheck --noEmit", - "lint": "eslint src tests --no-error-on-unmatched-pattern", - "lint:fix": "eslint src tests --fix --no-error-on-unmatched-pattern", + "lint": "eslint .", + "lint:fix": "eslint . --fix", "format": "prettier --write \"src/**/*.{ts,vue,json}\"", "format:check": "prettier --check \"src/**/*.{ts,vue,json}\"", "wagmi:gen": "wagmi generate"