Skip to content

Commit

Permalink
chore(deps): update dependency eslint-config-adslot to ^2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and bchew committed Feb 5, 2025
1 parent ae91373 commit 9a5501b
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 31 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"eslint": "^9.19.0",
"eslint-config-adslot": "^2.0.0",
"eslint-config-adslot": "^2.0.1",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-jest-dom": "^5.5.0",
Expand Down
14 changes: 2 additions & 12 deletions src/components/Card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,8 @@ const Card = ({ children, className, accent, dts }) => {
const baseClass = 'card-component';
const containerClassNames = classnames(baseClass, { [`accent accent-${accent}`]: accent }, className);

const nestedChildren = React.Children.map(
children,
(
child // eslint-disable-line lodash/prefer-lodash-method
) => (!_.get(child, 'props.append') ? child : null)
);
const appendedChildren = React.Children.map(
children,
(
child // eslint-disable-line lodash/prefer-lodash-method
) => (_.get(child, 'props.append') ? child : null)
);
const nestedChildren = React.Children.map(children, (child) => (!_.get(child, 'props.append') ? child : null));
const appendedChildren = React.Children.map(children, (child) => (_.get(child, 'props.append') ? child : null));

return (
<div data-testid="card-container-wrapper" className={containerClassNames} {...expandDts(dts)}>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Popover/Popper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,17 @@ const Popper = ({
};

Popper.propTypes = {
arrowStyles: PropTypes.object, // eslint-disable-line react/forbid-prop-types
arrowStyles: PropTypes.object,
dts: PropTypes.string,
modifiers: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]), // eslint-disable-line react/forbid-prop-types
modifiers: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
placement: PropTypes.oneOf(popoverPlacements),
strategy: PropTypes.oneOf(popoverStrategies),
popoverClass: PropTypes.string,
popoverContent: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
refElement: PropTypes.instanceOf(Element),
boundariesElement: PropTypes.instanceOf(Element),
title: PropTypes.string,
wrapperStyles: PropTypes.object, // eslint-disable-line react/forbid-prop-types
wrapperStyles: PropTypes.object,
popperRef: PropTypes.func,
};

Expand Down
6 changes: 3 additions & 3 deletions src/components/Popover/WithRef.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ WithRef.propTypes = {
theme: PropTypes.oneOf(themes),
popoverClassNames: PropTypes.string,
getContainer: PropTypes.func,
arrowStyles: PropTypes.object, // eslint-disable-line react/forbid-prop-types
wrapperStyles: PropTypes.object, // eslint-disable-line react/forbid-prop-types
modifiers: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]), // eslint-disable-line react/forbid-prop-types
arrowStyles: PropTypes.object,
wrapperStyles: PropTypes.object,
modifiers: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
placement: PropTypes.oneOf(popoverPlacements),
strategy: PropTypes.oneOf(popoverStrategies),
popoverContent: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
Expand Down
7 changes: 3 additions & 4 deletions src/components/Popover/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/jsx-indent */
import _ from 'lodash';
import classnames from 'classnames';
import PropTypes from 'prop-types';
Expand Down Expand Up @@ -83,9 +82,9 @@ Popover.propTypes = {
/**
* arrow css styles, mainly for positioning the arrow
*/
arrowStyles: PropTypes.object, // eslint-disable-line react/forbid-prop-types
wrapperStyles: PropTypes.object, // eslint-disable-line react/forbid-prop-types
modifiers: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]), // eslint-disable-line react/forbid-prop-types
arrowStyles: PropTypes.object,
wrapperStyles: PropTypes.object,
modifiers: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
placement: PropTypes.oneOf(popoverPlacements),
strategy: PropTypes.oneOf(popoverStrategies),
popoverContent: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
Expand Down
1 change: 0 additions & 1 deletion src/components/Tab/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/no-unused-prop-types */
import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
Expand Down
1 change: 0 additions & 1 deletion src/components/Totals/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable react/no-array-index-key */
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
Expand Down
2 changes: 0 additions & 2 deletions src/components/VerticalNav/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class VerticalNav extends React.Component {
const activeTabIndex = this.getActiveTabIndex(children);
const contentList = React.Children.map(children, (child, index) => {
if (!child.props.content) {
// eslint-disable-next-line no-console
console.warn('Navigation does not render MenuItem that have no content prop.');
return null;
}
Expand All @@ -60,7 +59,6 @@ class VerticalNav extends React.Component {

React.Children.forEach(children, (child, index) => {
if (!child.props.content) {
// eslint-disable-next-line no-console
console.warn('Navigation does not render MenuItem that have no content prop.');
return;
}
Expand Down

0 comments on commit 9a5501b

Please sign in to comment.