From da5320719ba5416e33b37ef4c011a9bf3eeea87c Mon Sep 17 00:00:00 2001 From: batfink Date: Sun, 12 May 2019 10:42:55 +0200 Subject: [PATCH] [enzyme-adapter-react-16] [fix] add 'has' to dependencies - also, enable lint rules that catch this --- packages/enzyme-adapter-react-16.1/.eslintrc | 3 --- packages/enzyme-adapter-react-16.2/.eslintrc | 3 --- packages/enzyme-adapter-react-16.3/.eslintrc | 3 --- packages/enzyme-adapter-react-16/.eslintrc | 6 +++--- packages/enzyme-adapter-react-16/package.json | 1 + 5 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/enzyme-adapter-react-16.1/.eslintrc b/packages/enzyme-adapter-react-16.1/.eslintrc index 48b43f2bd..268f4a8da 100644 --- a/packages/enzyme-adapter-react-16.1/.eslintrc +++ b/packages/enzyme-adapter-react-16.1/.eslintrc @@ -3,9 +3,6 @@ "root": true, "rules": { "max-len": 0, - "import/no-extraneous-dependencies": 0, - "import/no-unresolved": 0, - "import/extensions": 0, "react/no-deprecated": 0, "react/no-find-dom-node": 0, "react/no-multi-comp": 0, diff --git a/packages/enzyme-adapter-react-16.2/.eslintrc b/packages/enzyme-adapter-react-16.2/.eslintrc index 8335b1acc..b964afed1 100644 --- a/packages/enzyme-adapter-react-16.2/.eslintrc +++ b/packages/enzyme-adapter-react-16.2/.eslintrc @@ -3,9 +3,6 @@ "root": true, "rules": { "max-len": 0, - "import/no-extraneous-dependencies": 0, - "import/no-unresolved": 0, - "import/extensions": 0, "react/no-deprecated": 0, "react/no-find-dom-node": 0, "react/no-multi-comp": 0, diff --git a/packages/enzyme-adapter-react-16.3/.eslintrc b/packages/enzyme-adapter-react-16.3/.eslintrc index 06426b575..7d87f47b5 100644 --- a/packages/enzyme-adapter-react-16.3/.eslintrc +++ b/packages/enzyme-adapter-react-16.3/.eslintrc @@ -3,9 +3,6 @@ "root": true, "rules": { "max-len": 0, - "import/no-extraneous-dependencies": 0, - "import/no-unresolved": 0, - "import/extensions": 0, "react/no-deprecated": 0, "react/no-find-dom-node": 0, "react/no-multi-comp": 0, diff --git a/packages/enzyme-adapter-react-16/.eslintrc b/packages/enzyme-adapter-react-16/.eslintrc index 136d2264f..b75e0ee52 100644 --- a/packages/enzyme-adapter-react-16/.eslintrc +++ b/packages/enzyme-adapter-react-16/.eslintrc @@ -3,9 +3,9 @@ "root": true, "rules": { "max-len": 0, - "import/no-extraneous-dependencies": 0, - "import/no-unresolved": 0, - "import/extensions": 0, + "import/no-extraneous-dependencies": 2, + "import/no-unresolved": 2, + "import/extensions": 2, "react/no-deprecated": 0, "react/no-find-dom-node": 0, "react/no-multi-comp": 0, diff --git a/packages/enzyme-adapter-react-16/package.json b/packages/enzyme-adapter-react-16/package.json index 6ad7ee694..a89dfc7ed 100644 --- a/packages/enzyme-adapter-react-16/package.json +++ b/packages/enzyme-adapter-react-16/package.json @@ -36,6 +36,7 @@ "license": "MIT", "dependencies": { "enzyme-adapter-utils": "^1.12.0", + "has": "^1.0.3", "object.assign": "^4.1.0", "object.values": "^1.1.0", "prop-types": "^15.7.2",