Skip to content

Commit

Permalink
Improve eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
silversonicaxel committed Jul 1, 2024
1 parent 79eaf62 commit 3302dbf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"start:services": "docker-compose up",
"build": "yarn typecheck && vite build",
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"lint": "eslint src/ cypress/",
"lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\" \"./cypress/**/*.{js,jsx,ts,tsx}\"",
"fix": "yarn prettier && yarn lint --fix",
"test": "yarn test:unit && yarn test:e2e",
"test:e2e": "TZ=Etc/GMT-3 start-test 'yarn start:server --port 3030' 3030 'cypress run'",
Expand Down
1 change: 0 additions & 1 deletion src/components/SearchForm/SearchForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useState, useEffect, ChangeEvent, useRef } from 'react';
import { useLocation } from 'react-router-dom';
import { Trans } from 'react-i18next';

import {
Expand Down
1 change: 0 additions & 1 deletion src/domains/scrobbleSong/ScrobbleSong.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { clearListOfScrobbles, scrobbleCounterEnabled } from 'store/actions/scro

import EmptyScrobbleListFiller from 'components/EmptyScrobbleListFiller';
import ScrobbleList from 'components/ScrobbleList';
import Spinner from 'components/Spinner';
import { SongForm } from './SongForm';

import { LastFmProfileHistory } from './partials/LastFmProfileHistory';
Expand Down
8 changes: 2 additions & 6 deletions src/domains/scrobbleUser/partials/UserResultsHeading.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { useEffect, useState } from 'react';
import { useSelector } from 'react-redux';
import { useParams, useNavigate } from 'react-router-dom';
import ReactGA from 'react-ga-neo';
import { keepPreviousData, useQuery, QueryClient, useQueryClient } from '@tanstack/react-query';
import { get } from 'lodash-es';
import { useNavigate } from 'react-router-dom';
import { useQueryClient } from '@tanstack/react-query';

import { Row, Button } from 'reactstrap';
import { Trans, useTranslation } from 'react-i18next';
Expand Down
4 changes: 1 addition & 3 deletions src/utils/types/avatar.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export type AvatarSizes = 'xl' | 'lg' | 'md' | 'sm';

export type Avatar =
| {
[key in AvatarSizes]: string;
}
| Record<AvatarSizes, string>
| null;

0 comments on commit 3302dbf

Please sign in to comment.