Enforce stricter rules for Typescript files (#24910)

This commit is contained in:
Renaud Chaput 2023-05-09 03:11:56 +02:00 committed by GitHub
parent 64ec41d89c
commit c8181eb0a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
123 changed files with 175 additions and 186 deletions

View file

@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import Check from 'mastodon/components/check';
import { Check } from 'mastodon/components/check';
import classNames from 'classnames';
const ProgressIndicator = ({ steps, completed }) => (
@ -22,4 +22,4 @@ ProgressIndicator.propTypes = {
completed: PropTypes.number,
};
export default ProgressIndicator;
export default ProgressIndicator;

View file

@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
import Check from 'mastodon/components/check';
import { Icon } from 'mastodon/components/icon';
import { Check } from 'mastodon/components/check';
const Step = ({ label, description, icon, completed, onClick, href }) => {
const content = (
@ -47,4 +47,4 @@ Step.propTypes = {
onClick: PropTypes.func,
};
export default Step;
export default Step;

View file

@ -7,7 +7,7 @@ import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import { Icon } from 'mastodon/components/icon';
import ArrowSmallRight from './components/arrow_small_right';
import { Link } from 'react-router-dom';
import SwipeableViews from 'react-swipeable-views';
@ -190,4 +190,4 @@ class Share extends React.PureComponent {
}
export default connect(mapStateToProps)(injectIntl(Share));
export default connect(mapStateToProps)(injectIntl(Share));