From 1bb4a30fdd9bb87f74ffe4db8957b20c8cdb93f8 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 21 Dec 2020 08:59:09 +0100 Subject: [PATCH] chore: only use ts linting config for ts and tsx files --- package.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 78dca9d185f..084487f8c36 100644 --- a/package.json +++ b/package.json @@ -104,12 +104,23 @@ }, "eslintConfig": { "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended" + "eslint:recommended" ], + "overrides": [ + { + "files": [ + "**/*.{ts,tsx}" + ], + "extends": [ + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" + ], + "plugins": [ + "@typescript-eslint" + ] + } + ], "plugins": [ - "@typescript-eslint", "mocha-no-only" ], "parserOptions": {