From 9cd9eaac7434dcb884803137783f2bef08b4d589 Mon Sep 17 00:00:00 2001 From: Hossein Dehnokhalaji Date: Sun, 8 Mar 2020 17:39:56 +0000 Subject: [PATCH] Remove prop-types dependency --- .babelrc | 14 +------------- .eslintrc | 1 - package-lock.json | 14 ++++++-------- package.json | 2 -- 4 files changed, 7 insertions(+), 24 deletions(-) diff --git a/.babelrc b/.babelrc index 496c73e0..eac95500 100644 --- a/.babelrc +++ b/.babelrc @@ -8,17 +8,5 @@ "@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-object-rest-spread" ], - "ignore": ["src/index.d.ts"], - "env": { - "production": { - "plugins": [ - [ - "babel-plugin-transform-react-remove-prop-types", - { - "mode": "unsafe-wrap" - } - ] - ] - } - } + "ignore": ["src/index.d.ts"] } \ No newline at end of file diff --git a/.eslintrc b/.eslintrc index cf5f1ea5..0cbbcc2c 100644 --- a/.eslintrc +++ b/.eslintrc @@ -26,7 +26,6 @@ "import/extensions": 0, "react/prop-types": 0, "react/destructuring-assignment": 0, - "react/forbid-prop-types": 0, "react/jsx-closing-bracket-location": 0, "react/sort-comp": 0, "react/require-default-props": 0, diff --git a/package-lock.json b/package-lock.json index 2df0d28d..56a49000 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4210,12 +4210,6 @@ "object.assign": "^4.1.0" } }, - "babel-plugin-transform-react-remove-prop-types": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", - "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==", - "dev": true - }, "babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", @@ -6260,7 +6254,8 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "js-yaml": { "version": "3.13.1", @@ -6459,6 +6454,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" } @@ -6639,7 +6635,8 @@ "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true }, "object-copy": { "version": "0.1.0", @@ -6899,6 +6896,7 @@ "version": "15.7.2", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", + "dev": true, "requires": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", diff --git a/package.json b/package.json index 0f2f6208..67d7cad3 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,6 @@ "@typescript-eslint/eslint-plugin": "^2.22.0", "@typescript-eslint/parser": "^2.22.0", "babel-eslint": "^8.2.6", - "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "babel-runtime": "^6.26.0", "eslint": "^6.1.0", "eslint-config-airbnb": "~16.1.0", @@ -59,7 +58,6 @@ "dependencies": { "classnames": "^2.2.6", "hoist-non-react-statics": "^3.3.0", - "prop-types": "^15.7.2", "react-is": "^16.8.6" }, "bugs": {