From 0772b778b4506947c17ecdd438b0bec78a9d32ba Mon Sep 17 00:00:00 2001
From: Jordan Harband <ljharb@gmail.com>
Date: Fri, 21 Jan 2022 18:14:34 -0800
Subject: [PATCH] [Dev Deps] update `eslint`, `eslint-config-airbnb`,
 `eslint-plugin-import`, `eslint-plugin-jsx-a11y`, `eslint-plugin-react`,
 `eslint-plugin-react-hooks`, `eslint-plugin-react-with-styles`

---
 .eslintrc                                        |  3 +++
 package.json                                     | 14 +++++++-------
 src/components/DayPickerRangeController.jsx      |  4 +---
 src/components/DayPickerSingleDateController.jsx |  4 +---
 4 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/.eslintrc b/.eslintrc
index 5961c32b..d5780077 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -25,6 +25,8 @@
   "parser": "@babel/eslint-parser",
 
   "rules": {
+    "max-len": "off",
+
     "react/forbid-foreign-prop-types": 2, // For babel-plugin-transform-react-remove-prop-types
 
     "jsx-a11y/click-events-have-key-events": 1, // TODO: enable
@@ -53,6 +55,7 @@
         "indent": [2, 2, {
           "MemberExpression": "off",
         }],
+        "react/function-component-definition": "off",
       },
     },
   ],
diff --git a/package.json b/package.json
index 530d17ef..1d6f8a97 100644
--- a/package.json
+++ b/package.json
@@ -74,13 +74,13 @@
     "cross-env": "^5.2.1",
     "enzyme": "^3.11.0",
     "enzyme-adapter-react-helper": "^1.3.9",
-    "eslint": "^7.18.0",
-    "eslint-config-airbnb": "^18.2.1",
-    "eslint-plugin-import": "^2.22.1",
-    "eslint-plugin-jsx-a11y": "^6.4.1",
-    "eslint-plugin-react": "^7.22.0",
-    "eslint-plugin-react-hooks": "^4.2.0",
-    "eslint-plugin-react-with-styles": "^2.3.0",
+    "eslint": "^8.7.0",
+    "eslint-config-airbnb": "^19.0.4",
+    "eslint-plugin-import": "^2.25.4",
+    "eslint-plugin-jsx-a11y": "^6.5.1",
+    "eslint-plugin-react": "^7.28.0",
+    "eslint-plugin-react-hooks": "^4.3.0",
+    "eslint-plugin-react-with-styles": "^2.4.0",
     "git-directory-deploy": "^1.5.1",
     "imports-loader": "^0.8.0",
     "in-publish": "^2.0.1",
diff --git a/src/components/DayPickerRangeController.jsx b/src/components/DayPickerRangeController.jsx
index 881c4e75..6b5cb732 100644
--- a/src/components/DayPickerRangeController.jsx
+++ b/src/components/DayPickerRangeController.jsx
@@ -1023,9 +1023,7 @@ export default class DayPickerRangeController extends React.PureComponent {
     const { currentMonth, visibleDays } = this.state;
 
     const firstPreviousMonth = currentMonth.clone().subtract(numberOfMonths, 'month');
-    const newVisibleDays = getVisibleDays(
-      firstPreviousMonth, numberOfMonths, enableOutsideDays, true,
-    );
+    const newVisibleDays = getVisibleDays(firstPreviousMonth, numberOfMonths, enableOutsideDays, true);
 
     this.setState({
       currentMonth: firstPreviousMonth.clone(),
diff --git a/src/components/DayPickerSingleDateController.jsx b/src/components/DayPickerSingleDateController.jsx
index d4fae536..1bf1a1d7 100644
--- a/src/components/DayPickerSingleDateController.jsx
+++ b/src/components/DayPickerSingleDateController.jsx
@@ -529,9 +529,7 @@ export default class DayPickerSingleDateController extends React.PureComponent {
     const { currentMonth, visibleDays } = this.state;
 
     const firstPreviousMonth = currentMonth.clone().subtract(numberOfMonths, 'month');
-    const newVisibleDays = getVisibleDays(
-      firstPreviousMonth, numberOfMonths, enableOutsideDays, true,
-    );
+    const newVisibleDays = getVisibleDays(firstPreviousMonth, numberOfMonths, enableOutsideDays, true);
 
     this.setState({
       currentMonth: firstPreviousMonth.clone(),
-- 
GitLab