From ca7ea96dfa3296623301eac85aa290c521f80464 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Mon, 22 Aug 2022 16:42:12 +0300 Subject: [PATCH] Updating eslintrc --- .eslintrc | 42 +++++++++++++----------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/.eslintrc b/.eslintrc index c006d72..d31f0e4 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,32 +1,16 @@ { - "extends": ["eslint:recommended", "prettier"], - "env": { "es6": true, "browser": true, "node": true, "jest": true }, - "settings": { - "react": { - "version": "detect" - } + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": ["./tsconfig.json"] }, - "overrides": [ - { - "files": ["**/*.ts", "**/*.test.ts", "**/*.tsx"], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "project": ["./tsconfig.json"] - }, - "extends": [ - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended", - "plugin:prettier/recommended", - "prettier" - ], - "plugins": ["@typescript-eslint", "prettier"], - "rules": { - "react/prop-types": "off", - "react/no-unused-prop-types": "off", - "@typescript-eslint/explicit-function-return-type": "off", - "no-use-before-define": "off", - "@typescript-eslint/no-use-before-define": "error" - } - } - ] + "extends": [ + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended", + "plugin:prettier/recommended" + ], + "plugins": ["@typescript-eslint", "prettier"], + "rules": { + "@typescript-eslint/explicit-function-return-type": "off" + }, + "env": { "es6": true, "node": true } }