[Glitch] Enforce stricter rules for Typescript files

Port c8181eb0a4 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2493/head
Renaud Chaput 2023-05-09 03:11:56 +02:00 committed by Claire
parent 542f2fb1e0
commit 0b1556b7f7
3 changed files with 7 additions and 7 deletions

View File

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

View File

@ -1,6 +1,6 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import Icon from 'flavours/glitch/components/icon'; import { Icon } from 'flavours/glitch/components/icon';
import Check from 'flavours/glitch/components/check'; import { Check } from 'flavours/glitch/components/check';
const Step = ({ label, description, icon, completed, onClick, href }) => { const Step = ({ label, description, icon, completed, onClick, href }) => {
const content = ( const content = (
@ -46,4 +46,4 @@ Step.propTypes = {
onClick: PropTypes.func, 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 ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl'; import { defineMessages, injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl';
import classNames from 'classnames'; import classNames from 'classnames';
import Icon from 'flavours/glitch/components/icon'; import { Icon } from 'flavours/glitch/components/icon';
import ArrowSmallRight from './components/arrow_small_right'; import ArrowSmallRight from './components/arrow_small_right';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import SwipeableViews from 'react-swipeable-views'; 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));