Skip to content

Commit

Permalink
fix linter deps and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ArijitCloud committed Oct 4, 2024
1 parent aa09396 commit b378c5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
"plugin:react/recommended",
"plugin:react/jsx-runtime",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
ignorePatterns: ["dist", ".eslintrc.cjs", "*.test.tsx", "*.test.ts"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:watch": "jest --watchAll",
"test:coverage": "jest --coverage",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 10",
"preview": "vite preview"
},
"dependencies": {
Expand Down Expand Up @@ -37,6 +37,7 @@
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"eslint-plugin-react": "^7.37.1",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.12",
"typescript": "^5.2.2",
Expand Down
2 changes: 1 addition & 1 deletion src/data/response.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface FeedResponse {
}

export interface RawAlbumEntry {
[key: string]: any;
[key: string]: unknown;
}

export interface AlbumEntry {
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/FilterNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ type FilterNavProps = {

const FilterNav = ({ categories, loading }: FilterNavProps) => {
const { selectedFilter, setSelectedFilter } = useSearchContext();
if (loading) return <SkeletonFilters />;
const categoryButtons = useMemo(
() =>
categories &&
Expand All @@ -31,6 +30,7 @@ const FilterNav = ({ categories, loading }: FilterNavProps) => {
)),
[categories, selectedFilter]
);
if (loading) return <SkeletonFilters />;
return (
<nav className="flex gap-4 my-2 overflow-x-hidden">
<OverflowCarousel>{categoryButtons}</OverflowCarousel>
Expand Down

0 comments on commit b378c5f

Please sign in to comment.