From a1de127761de25cb1aeefb36066815f651251648 Mon Sep 17 00:00:00 2001 From: Saurabh <57309205+saurabhmehta1601@users.noreply.github.com> Date: Fri, 3 Sep 2021 21:46:51 +0530 Subject: [PATCH] fix(eslint): Add overrides to eslintrc.json, close #11 fix #11 --- lib/.eslintrc.json | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/lib/.eslintrc.json b/lib/.eslintrc.json index 409b43b..cc0138e 100644 --- a/lib/.eslintrc.json +++ b/lib/.eslintrc.json @@ -4,11 +4,7 @@ "es2021": true, "node": true }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:@typescript-eslint/recommended" - ], + "extends": ["eslint:recommended"], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaFeatures": { @@ -17,11 +13,21 @@ "ecmaVersion": 12, "sourceType": "module" }, - "plugins": ["react", "@typescript-eslint"], + "plugins": [], "rules": {}, "settings": { "react": { "version": "detect" } - } + }, + "overrides": [ + { + "files": ["*.ts", "*.tsx"], + "plugins": ["react", "@typescript-eslint"], + "extends": [ + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended" + ] + } + ] }