From 9dd0d73ed23c5d51dbe399cf4959dbc70a0bfe34 Mon Sep 17 00:00:00 2001 From: Andy Hook Date: Tue, 29 Sep 2020 11:04:40 +0100 Subject: [PATCH] Remove eslint dups, straight eslint eject via tsdx --- .eslintrc.js | 14 ++++---------- package.json | 1 - yarn.lock | 5 ----- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 50182d9..9e66511 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,17 +2,11 @@ module.exports = { extends: [ 'react-app', 'prettier/@typescript-eslint', - 'plugin:prettier/recommended', + 'plugin:prettier/recommended' ], - plugins: ['react-hooks'], - rules: { - 'react-hooks/rules-of-hooks': 'error', - 'react-hooks/exhaustive-deps': 'error', - }, settings: { react: { - pragma: 'React', - version: 'detect', - }, - }, + version: '999.999.999' + } + } } diff --git a/package.json b/package.json index 429f373..f41da15 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ "@types/lodash": "^4.14.161", "@types/react": "^16.9.49", "@types/react-dom": "^16.9.8", - "eslint-plugin-react-hooks": "^4.1.2", "husky": "^4.3.0", "size-limit": "^4.6.0", "tsdx": "^0.14.0", diff --git a/yarn.lock b/yarn.lock index 5ef64e1..61f96d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3439,11 +3439,6 @@ eslint-plugin-react-hooks@^2.2.0: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.5.1.tgz#4ef5930592588ce171abeb26f400c7fbcbc23cd0" integrity sha512-Y2c4b55R+6ZzwtTppKwSmK/Kar8AdLiC2f9NADCuxbcTgPPg41Gyqa6b9GppgXSvCtkRw43ZE86CT5sejKC6/g== -eslint-plugin-react-hooks@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.1.2.tgz#2eb53731d11c95826ef7a7272303eabb5c9a271e" - integrity sha512-ykUeqkGyUGgwTtk78C0o8UG2fzwmgJ0qxBGPp2WqRKsTwcLuVf01kTDRAtOsd4u6whX2XOC8749n2vPydP82fg== - eslint-plugin-react@^7.14.3: version "7.21.2" resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.21.2.tgz#3bd5d2c4c36d5a0428d0d6dda301ac9a84d681b2"