浏览代码

Remove prop-types in favor of typescript typings

Andrew Swistak 6 年之前
父节点
当前提交
6359bd4a71
共有 3 个文件被更改,包括 1 次插入8 次删除
  1. 1 1
      .eslintrc.js
  2. 0 2
      package.json
  3. 0 5
      yarn.lock

+ 1 - 1
.eslintrc.js

@@ -103,7 +103,7 @@ module.exports = {
     'react/no-typos': 1,
     'react/no-unknown-property': 1,
     'react/prefer-stateless-function': 1,
-    'react/prop-types': 1,
+    'react/prop-types': 0,
     'react/react-in-jsx-scope': 2,
     'react/require-default-props': 1,
     'react/require-render-return': 1,

+ 0 - 2
package.json

@@ -57,7 +57,6 @@
     "found": "^0.4.9",
     "found-relay": "^0.5.0",
     "graphql-ruby-client": "^1.6.8",
-    "prop-types": "^15.7.2",
     "react": "^16.10.2",
     "react-bootstrap": "^1.0.0-beta.14",
     "react-dom": "yarn:@hot-loader/react-dom",
@@ -86,7 +85,6 @@
     "babel-jest": "^24.9.0",
     "babel-loader": "^8.0.6",
     "babel-plugin-relay": "^6.0.0",
-    "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
     "enzyme": "^3.10.0",
     "enzyme-adapter-react-16": "^1.15.1",
     "enzyme-to-json": "^3.4.2",

+ 0 - 5
yarn.lock

@@ -1872,11 +1872,6 @@ babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0:
   resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf"
   integrity sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==
 
-babel-plugin-transform-react-remove-prop-types@^0.4.24:
-  version "0.4.24"
-  resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a"
-  integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==
-
 babel-polyfill@^6.26.0:
   version "6.26.0"
   resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"