Skip to content

Commit

Permalink
fix(deps): update all non-major linting dependencies (master) (verdac…
Browse files Browse the repository at this point in the history
…cio#2879)

* fix(deps): update all non-major linting dependencies

* fix format

* format, remove unused steps

* format, remove unused steps

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Juan Picado <[email protected]>
  • Loading branch information
3 people authored Jan 9, 2022
1 parent 9b8d0bb commit 136a251
Show file tree
Hide file tree
Showing 32 changed files with 319 additions and 259 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ jobs:
args: [--frozen-lockfile]
- name: Build Plugins
run: pnpm build --filter "docusaurus-plugin-contributors"
- name: Lint And Pretty
run: |
pnpm eslint:check --filter ...@verdaccio/website
pnpm prettier:check --filter ...@verdaccio/website
- name: Cache Docusaurus Build
uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"node-fetch": "cjs",
"nodemon": "2.0.15",
"npm-run-all": "4.1.5",
"prettier": "2.3.2",
"prettier": "2.5.1",
"rimraf": "3.0.2",
"selfsigned": "1.10.11",
"supertest": "6.1.6",
Expand Down
9 changes: 6 additions & 3 deletions packages/plugins/ui-theme/src/App/Header/HeaderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const HeaderMenu: React.FC<Props> = ({
data-testid="logInDialogIcon"
id="header--button-account"
onClick={onLoggedInMenu}
size="large">
size="large"
>
<AccountCircle />
</IconButton>
<Menu
Expand All @@ -46,15 +47,17 @@ const HeaderMenu: React.FC<Props> = ({
transformOrigin={{
vertical: 'top',
horizontal: 'right',
}}>
}}
>
<MenuItem>
<HeaderGreetings username={username} />
</MenuItem>
<MenuItem
button={true}
data-testid="logOutDialogIcon"
id="logOutDialogIcon"
onClick={onLogout}>
onClick={onLogout}
>
{t('button.logout')}
</MenuItem>
</Menu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
<StyledLink
data-testid={'header--tooltip-documentation'}
external={true}
to={'https://verdaccio.org/docs/en/installation'}>
to={'https://verdaccio.org/docs/en/installation'}
>
<IconButton color={'inherit'} size="large">
<Help />
</IconButton>
Expand All @@ -42,7 +43,8 @@ const HeaderToolTipIcon = forwardRef<HeaderToolTipIconRef, Props>(function Heade
id="header--button-registryInfo"
onClick={onClick}
ref={ref}
size="large">
size="large"
>
<Info />
</IconButton>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ const LoginDialog: React.FC<Props> = ({ onClose, open = false }) => {
id="login--dialog"
maxWidth="sm"
onClose={onClose}
open={open}>
open={open}
>
<LoginDialogCloseButton onClose={onClose} />
<DialogContent data-testid="dialogContentLogin">
<LoginDialogHeader />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ const LoginDialogForm = memo(({ onSubmit, error }: Props) => {
id="login--dialog-button-submit"
size="large"
type="submit"
variant="contained">
variant="contained"
>
{t('button.login')}
</StyledButton>
</StyledForm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ const RegistryInfoContent: FC<Props> = ({ scope, registryUrl }) => {
<AccordionSummary
aria-controls="panel1a-content"
expandIcon={<ExpandMoreIcon />}
id="panel1a-header">
id="panel1a-header"
>
<Typography className={classes.heading}>{'npm'}</Typography>
</AccordionSummary>
<AccordionDetails>
Expand All @@ -117,7 +118,8 @@ const RegistryInfoContent: FC<Props> = ({ scope, registryUrl }) => {
<AccordionSummary
aria-controls="panel2a-content"
expandIcon={<ExpandMoreIcon />}
id="panel2a-header">
id="panel2a-header"
>
<Typography className={classes.heading}>{'yarn'}</Typography>
</AccordionSummary>
<AccordionDetails>
Expand All @@ -132,7 +134,8 @@ const RegistryInfoContent: FC<Props> = ({ scope, registryUrl }) => {
<AccordionSummary
aria-controls="panel3a-content"
expandIcon={<ExpandMoreIcon />}
id="panel3a-header">
id="panel3a-header"
>
{'pnpm'}
</AccordionSummary>
<AccordionDetails>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const RegistryInfoDialog: React.FC<Props> = ({ open = false, children, onClose }
data-testid={'registryInfo--dialog'}
id="registryInfo--dialog-container"
onClose={onClose}
open={open}>
open={open}
>
<Title disableTypography={true}>{t('dialog.registry-info.title')}</Title>
<Content>{children}</Content>
<DialogActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ const AutoComplete = <Option extends {}>({
isSelected={index === activeOption}
key={index}
onClick={handleClickOption(option)}
tabIndex={0}>
tabIndex={0}
>
{renderOptionProp(option)}
</Option>
));
Expand All @@ -183,7 +184,8 @@ const AutoComplete = <Option extends {}>({
key={index}
onClick={handleClickOption(option)}
selected={index === activeOption}
tabIndex={0}>
tabIndex={0}
>
{getOptionLabel(option)}
</MenuItem>
));
Expand All @@ -202,7 +204,8 @@ const AutoComplete = <Option extends {}>({
color="inherit"
onClick={handleClear}
size="small"
title={t('autoComplete.clear')}>
title={t('autoComplete.clear')}
>
<CloseIcon fontSize="small" />
</IconButton>
)}
Expand All @@ -211,7 +214,8 @@ const AutoComplete = <Option extends {}>({
onClick={handleToggleShowOptions}
showOptions={showOptions}
size="small"
title={showOptions ? t('autoComplete.collapse') : t('autoComplete.expand')}>
title={showOptions ? t('autoComplete.collapse') : t('autoComplete.expand')}
>
<ExpandMoreIcon fontSize="small" />
</ExpandButton>
</EndAdornment>
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/ui-theme/src/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const Link = React.forwardRef<LinkRef, Props>(function Link(
ref={ref}
rel="noopener noreferrer"
target="_blank"
{...props}>
{...props}
>
{LinkTextContent}
</a>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const NotFound: React.FC = () => {
flexDirection="column"
flexGrow={1}
justifyContent="center"
p={2}>
p={2}
>
<EmptyPackage alt={t('error.404.page-not-found')} src={PackageImg} />
<StyledHeading className="not-found-text" variant="h4">
{t('error.404.sorry-we-could-not-find-it')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const DetailContainerTabs: React.FC<Props> = ({ tabPosition, onChange }) => {
indicatorColor={'primary'}
onChange={onChange}
value={tabPosition}
variant={'fullWidth'}>
variant={'fullWidth'}
>
<Tab data-testid={'readme-tab'} id={'readme-tab'} label={t('tab.readme')} />
<Tab data-testid={'dependencies-tab'} id={'dependencies-tab'} label={t('tab.dependencies')} />
<Tab data-testid={'versions-tab'} id={'versions-tab'} label={t('tab.versions')} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const DetailSidebarFundButton: React.FC = () => {
color="primary"
fullWidth={true}
startIcon={<StyledFavoriteIcon />}
variant="outlined">
variant="outlined"
>
<Trans components={[<StyledFundStrong key="fund" />]} i18nKey="button.fund-this-package" />
</Button>
</StyledLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const Dist: FC = () => {

return (
<List
subheader={<StyledText variant="subtitle1">{t('sidebar.distribution.title')}</StyledText>}>
subheader={<StyledText variant="subtitle1">{t('sidebar.distribution.title')}</StyledText>}
>
<DistListItem button={true}>
<DistChip name={t('sidebar.distribution.file-count')}>{dist.fileCount}</DistChip>
<DistChip name={t('sidebar.distribution.size')}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const Engine: React.FC = () => {
<List
subheader={
<StyledText variant={'subtitle1'}>{t('sidebar.engines.node-js')}</StyledText>
}>
}
>
<EngineListItem button={true}>
<Avatar src={node} />
<ListItemText primary={engines.node} />
Expand All @@ -41,7 +42,8 @@ const Engine: React.FC = () => {
<List
subheader={
<StyledText variant={'subtitle1'}>{t('sidebar.engines.npm-version')}</StyledText>
}>
}
>
<EngineListItem button={true}>
<Avatar src={npm} />
<ListItemText primary={engines.npm} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const Install: React.FC = () => {
return hasPkgManagers ? (
<List
data-testid={'installList'}
subheader={<StyledText variant={'subtitle1'}>{t('sidebar.installation.title')}</StyledText>}>
subheader={<StyledText variant={'subtitle1'}>{t('sidebar.installation.title')}</StyledText>}
>
{hasNpm && (
<InstallListItem dependencyManager={DependencyManager.NPM} packageName={packageName} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ const Repository: React.FC = () => {
return (
<List
dense={true}
subheader={<StyledText variant="subtitle1">{t('sidebar.repository.title')}</StyledText>}>
subheader={<StyledText variant="subtitle1">{t('sidebar.repository.title')}</StyledText>}
>
<RepositoryListItem button={true}>
<RepositoryAvatar src={git} />
<RepositoryListItemText
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/ui-theme/src/pages/Version/Version.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ describe.skip('test Version page', () => {
value={{
...detailContextValue,
hasNotBeenFound: true,
}}>
}}
>
<Version />
</DetailContext.Provider>
</MemoryRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const VersionContextProvider: React.FC = ({ children }) => {
packageName,
isLoading,
hasNotBeenFound,
}}>
}}
>
{children}
</DetailContext.Provider>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ const Package: React.FC<PackageInterface> = ({
onClick={() => {
handleDownload(dist.tarball);
}}
to="#">
to="#"
>
<Tooltip
aria-label={t('package.download', { what: t('package.the-tar-file') })}
title={t('package.tarball')}>
title={t('package.tarball')}
>
<IconButton aria-label={t('package.download')} size="large">
<DownloadIcon />
</IconButton>
Expand All @@ -183,7 +185,8 @@ const Package: React.FC<PackageInterface> = ({
container={true}
item={true}
justify="flex-end"
xs={true}>
xs={true}
>
{renderHomePageLink()}
{renderBugsLink()}
{renderDownloadLink()}
Expand Down
10 changes: 5 additions & 5 deletions packages/tools/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"eslint-config-google": "0.14.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jest": "24.4.0",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jest": "24.7.0",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.25.1",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-react": "7.28.0",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-plugin-simple-import-sort": "7.0.0",
"eslint-plugin-verdaccio": "10.0.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/verdaccio/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ Then import the feature and run the function within the main `describe` block.
```js
// index.spec.ts

import newFeature from './newFeature';

describe('functional test verdaccio', function () {
Expand Down
Loading

0 comments on commit 136a251

Please sign in to comment.