From 17af97f3e60b320b9b51f4beb3b40e78ffd14cf6 Mon Sep 17 00:00:00 2001 From: Dawson Botsford <3408480+dawsbot@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:20:22 -0400 Subject: [PATCH] fix: update linter config (#338) --- .eslintignore | 1 + .eslintrc.js | 4 ++-- package.json | 2 +- tsconfig.eslint.json | 5 ----- validations/webhook.test.ts | 1 + 5 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 .eslintignore delete mode 100644 tsconfig.eslint.json diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..1521c8b7 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +dist diff --git a/.eslintrc.js b/.eslintrc.js index 1ffc6a19..13ef718a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,7 @@ module.exports = { extends: ['@valora/eslint-config-typescript'], - parserOptions: { - project: './tsconfig.eslint.json', + env: { + node: true, }, rules: { 'no-console': ['error', { allow: ['none'] }], diff --git a/package.json b/package.json index 8d13dab5..67ac28a6 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "validate": "jest", "format": "prettier --loglevel error --write .", "format:check": "prettier --check .", - "lint": "eslint --ext=.tsx,.ts,.json src/", + "lint": "eslint .", "lint:fix": "yarn lint --fix" }, "prettier": "@valora/prettier-config", diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json deleted file mode 100644 index 9b624091..00000000 --- a/tsconfig.eslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["src"], - "exclude": ["node_modules"] -} diff --git a/validations/webhook.test.ts b/validations/webhook.test.ts index da969032..2756dc15 100644 --- a/validations/webhook.test.ts +++ b/validations/webhook.test.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { AddKycParams, FiatConnectClient } from '@fiatconnect/fiatconnect-sdk' import { KycSchema,