diff options
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/.eslintrc | 7 | ||||
-rw-r--r-- | vnext/package.json | 8 | ||||
-rw-r--r-- | vnext/yarn.lock | 65 |
3 files changed, 51 insertions, 29 deletions
diff --git a/vnext/.eslintrc b/vnext/.eslintrc index a887dfb2..2555e757 100644 --- a/vnext/.eslintrc +++ b/vnext/.eslintrc @@ -2,7 +2,8 @@ "extends": [ "eslint:recommended", "plugin:react/recommended", - "plugin:jest/recommended" + "plugin:jest/recommended", + "react-hooks" ], "parser": "babel-eslint", "parserOptions": { @@ -60,6 +61,8 @@ "jest/no-focused-tests": "error", "jest/no-identical-title": "error", "jest/prefer-to-have-length": "warn", - "jest/valid-expect": "error" + "jest/valid-expect": "error", + + "react-hooks/rules-of-hooks": "error" } } diff --git a/vnext/package.json b/vnext/package.json index 302f8cae..d1584f59 100644 --- a/vnext/package.json +++ b/vnext/package.json @@ -28,6 +28,7 @@ "eslint-plugin-jest": "^22.3.0", "eslint-plugin-only-ascii": "^0.0.0", "eslint-plugin-react": "^7.12.4", + "eslint-plugin-react-hooks": "^1.2.0", "file-loader": "^3.0.1", "html-loader": "^0.5.5", "html-webpack-plugin": "^3.2.0", @@ -38,7 +39,7 @@ "postcss-preset-env": "^6.5.0", "prop-types": "^15.7.2", "react-router-prop-types": "^1.0.4", - "react-test-renderer": "^16.8.2", + "react-test-renderer": "^16.8.3", "style-loader": "^0.23.1", "stylelint": "^9.10.1", "stylelint-config-standard": "^18.2.0", @@ -82,11 +83,12 @@ "immutability-helper": "^3.0.0", "moment": "^2.24.0", "qs": "^6.6.0", - "react": "16.8.2", + "react": "16.8.3", "react-content-loader": "^4.0.1", "react-cookies": "^0.1.0", - "react-dom": "16.8.2", + "react-dom": "16.8.3", "react-router-dom": "^4.3.1", + "react-use-form-state": "^0.6.0", "url-polyfill": "^1.1.3" } } diff --git a/vnext/yarn.lock b/vnext/yarn.lock index 65d144e5..e79ce520 100644 --- a/vnext/yarn.lock +++ b/vnext/yarn.lock @@ -1569,6 +1569,13 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== +axios-mock-adapter@^1.16.0: + version "1.16.0" + resolved "https://registry.yarnpkg.com/axios-mock-adapter/-/axios-mock-adapter-1.16.0.tgz#cdd55bb60d8cb3fcd77fdb9cbb269e47b8b95180" + integrity sha512-m2D8ngMTQ5p4zZNBsPKoENgwz5rDfd0pZmXI/spdE2eeeKIcR3jquk+NRiBVFtb9UJlciBYplNzSUmgQ6X385Q== + dependencies: + deep-equal "^1.0.1" + axios@^0.18.0: version "0.18.0" resolved "https://registry.yarnpkg.com/axios/-/axios-0.18.0.tgz#32d53e4851efdc0a11993b6cd000789d70c05102" @@ -3367,6 +3374,11 @@ eslint-plugin-only-ascii@^0.0.0: dependencies: requireindex "~1.1.0" +eslint-plugin-react-hooks@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.2.0.tgz#a1c78e792b8d7d3e9c2a2aad28df80b9b5cd1101" + integrity sha512-pb/pwyHg0K3Ss/8loSwCGRSXIsvPBHWfzcP/6jeei0SgWBOyXRbcKFpGxolg0xSmph0jQKLyM27B74clbZM/YQ== + eslint-plugin-react@^7.12.4: version "7.12.4" resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.12.4.tgz#b1ecf26479d61aee650da612e425c53a99f48c8c" @@ -8071,15 +8083,15 @@ react-dev-utils@^7.0.1: strip-ansi "4.0.0" text-table "0.2.0" -react-dom@16.8.2: - version "16.8.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.2.tgz#7c8a69545dd554d45d66442230ba04a6a0a3c3d3" - integrity sha512-cPGfgFfwi+VCZjk73buu14pYkYBR1b/SRMSYqkLDdhSEHnSwcuYTPu6/Bh6ZphJFIk80XLvbSe2azfcRzNF+Xg== +react-dom@16.8.3: + version "16.8.3" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.3.tgz#ae236029e66210783ac81999d3015dfc475b9c32" + integrity sha512-ttMem9yJL4/lpItZAQ2NTFAbV7frotHk5DZEHXUOws2rMmrsvh1Na7ThGT0dTzUIl6pqTOi5tYREfL8AEna3lA== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" prop-types "^15.6.2" - scheduler "^0.13.2" + scheduler "^0.13.3" react-error-overlay@^5.1.2: version "5.1.2" @@ -8101,10 +8113,10 @@ react-is@^16.8.1: resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.1.tgz#a80141e246eb894824fb4f2901c0c50ef31d4cdb" integrity sha512-ioMCzVDWvCvKD8eeT+iukyWrBGrA3DiFYkXfBsVYIRdaREZuBjENG+KjrikavCLasozqRWTwFUagU/O4vPpRMA== -react-is@^16.8.2: - version "16.8.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.2.tgz#09891d324cad1cb0c1f2d91f70a71a4bee34df0f" - integrity sha512-D+NxhSR2HUCjYky1q1DwpNUD44cDpUXzSmmFyC3ug1bClcU/iDNy0YNn1iwme28fn+NFhpA13IndOd42CrFb+Q== +react-is@^16.8.3: + version "16.8.3" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.3.tgz#4ad8b029c2a718fc0cfc746c8d4e1b7221e5387d" + integrity sha512-Y4rC1ZJmsxxkkPuMLwvKvlL1Zfpbcu+Bf4ZigkHup3v9EfdYhAlWAaVyA19olXq2o2mGn0w+dFKvk3pVVlYcIA== react-router-dom@^4.3.1: version "4.3.1" @@ -8149,25 +8161,30 @@ react-test-renderer@^16.0.0-0: react-is "^16.6.0" scheduler "^0.10.0" -react-test-renderer@^16.8.2: - version "16.8.2" - resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.8.2.tgz#3ce0bf12aa211116612fda01a886d6163c9c459b" - integrity sha512-gsd4NoOaYrZD2R8zi+CBV9wTGMsGhE2bRe4wvenGy0WcLJgdPscRZDDz+kmLjY+/5XpYC8yRR/v4CScgYfGyoQ== +react-test-renderer@^16.8.3: + version "16.8.3" + resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.8.3.tgz#230006af264cc46aeef94392e04747c21839e05e" + integrity sha512-rjJGYebduKNZH0k1bUivVrRLX04JfIQ0FKJLPK10TAb06XWhfi4gTobooF9K/DEFNW98iGac3OSxkfIJUN9Mdg== dependencies: object-assign "^4.1.1" prop-types "^15.6.2" - react-is "^16.8.2" - scheduler "^0.13.2" + react-is "^16.8.3" + scheduler "^0.13.3" + +react-use-form-state@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/react-use-form-state/-/react-use-form-state-0.6.0.tgz#451a4713b76bb2affc8b15d12d0e0de89e49b1db" + integrity sha512-mC0tFy2S6BCuZ4lSAhxNPjnSL+g+uS5c+kabKyT9brrEwH5Lcq+ZFnuzL4lhS8/B4uSl5192TTSN0oLbfWtYbA== -react@16.8.2: - version "16.8.2" - resolved "https://registry.yarnpkg.com/react/-/react-16.8.2.tgz#83064596feaa98d9c2857c4deae1848b542c9c0c" - integrity sha512-aB2ctx9uQ9vo09HVknqv3DGRpI7OIGJhCx3Bt0QqoRluEjHSaObJl+nG12GDdYH6sTgE7YiPJ6ZUyMx9kICdXw== +react@16.8.3: + version "16.8.3" + resolved "https://registry.yarnpkg.com/react/-/react-16.8.3.tgz#c6f988a2ce895375de216edcfaedd6b9a76451d9" + integrity sha512-3UoSIsEq8yTJuSu0luO1QQWYbgGEILm+eJl2QN/VLDi7hL+EN18M3q3oVZwmVzzBJ3DkM7RMdRwBmZZ+b4IzSA== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" prop-types "^15.6.2" - scheduler "^0.13.2" + scheduler "^0.13.3" read-pkg-up@^3.0.0: version "3.0.0" @@ -8698,10 +8715,10 @@ scheduler@^0.10.0: loose-envify "^1.1.0" object-assign "^4.1.1" -scheduler@^0.13.2: - version "0.13.2" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.2.tgz#969eaee2764a51d2e97b20a60963b2546beff8fa" - integrity sha512-qK5P8tHS7vdEMCW5IPyt8v9MJOHqTrOUgPXib7tqm9vh834ibBX5BNhwkplX/0iOzHW5sXyluehYfS9yrkz9+w== +scheduler@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.3.tgz#bed3c5850f62ea9c716a4d781f9daeb9b2a58896" + integrity sha512-UxN5QRYWtpR1egNWzJcVLk8jlegxAugswQc984lD3kU7NuobsO37/sRfbpTdBjtnD5TBNFA2Q2oLV5+UmPSmEQ== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" |