From dd18de86f85ce03b39f72c9a0b80c11842111f51 Mon Sep 17 00:00:00 2001 From: Rodrigo Antinarelli Date: Wed, 11 Mar 2020 12:26:23 -0300 Subject: [PATCH] chore: Add new eslint rule -- props-no-spreading (#1509) --- .eslintrc.json | 3 +++ package.json | 2 +- yarn.lock | 11 ++--------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 55db8c491..329eb380b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,6 +14,9 @@ "version": "detect" } }, + "rules": { + "react/jsx-props-no-spreading": "error" + }, "globals": { "cy": true, "before": true, diff --git a/package.json b/package.json index 11598a2d8..4b8cad0f9 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "dotenv": "^8.1.0", "eslint": "5.16.0", "eslint-config-prettier": "^6.4.0", - "eslint-config-react-app": "^4.0.1", + "eslint-config-react-app": "^5.2.0", "eslint-plugin-flowtype": "2.x", "eslint-plugin-import": "2.x", "eslint-plugin-jsx-a11y": "6.x", diff --git a/yarn.lock b/yarn.lock index 56d194937..0a0332f1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5454,7 +5454,7 @@ configstore@^5.0.0: write-file-atomic "^3.0.0" xdg-basedir "^4.0.0" -confusing-browser-globals@^1.0.7, confusing-browser-globals@^1.0.9: +confusing-browser-globals@^1.0.9: version "1.0.9" resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.9.tgz#72bc13b483c0276801681871d4898516f8f54fdd" integrity sha512-KbS1Y0jMtyPgIxjO7ZzMAuUpAKMt1SzCL9fsrKsX6b0zJPTaT0SiSPmewwVZg9UAO83HVIlEhZF84LIjZ0lmAw== @@ -7334,14 +7334,7 @@ eslint-config-prettier@^6.4.0: dependencies: get-stdin "^6.0.0" -eslint-config-react-app@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-4.0.1.tgz#23fd0fd7ea89442ef1e733f66a7207674b23c8db" - integrity sha512-ZsaoXUIGsK8FCi/x4lT2bZR5mMkL/Kgj+Lnw690rbvvUr/uiwgFiD8FcfAhkCycm7Xte6O5lYz4EqMx2vX7jgw== - dependencies: - confusing-browser-globals "^1.0.7" - -eslint-config-react-app@^5.1.0: +eslint-config-react-app@^5.1.0, eslint-config-react-app@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-5.2.0.tgz#135110ba56a9e378f7acfe5f36e2ae76a2317899" integrity sha512-WrHjoGpKr1kLLiWDD81tme9jMM0hk5cMxasLSdyno6DdPt+IfLOrDJBVo6jN7tn4y1nzhs43TmUaZWO6Sf0blw==