Skip to content

Commit

Permalink
fix typescript eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartaithan committed May 25, 2023
1 parent 8e9c26d commit f18c970
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"no-console": ["error", { "allow": ["info", "error"] }],
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"react/prop-types": "off",
"react/display-name": "off"
}
Expand Down
2 changes: 1 addition & 1 deletion components/TrophyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box, createStyles, Stack } from "@mantine/core";
import TrophyGroup from "./TrophyGroup";
import { useGame } from "@/providers/GameProvider";

const useStyles = createStyles(({ colors, radius, spacing }) => ({
const useStyles = createStyles(({ colors, radius }) => ({
container: { width: "100%" },
list: {
background: colors.primary[7],
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"types": "tsc --noemit",
"check": "npm run lint && npm run types"
},
"dependencies": {
"@dnd-kit/core": "^6.0.8",
Expand Down
4 changes: 2 additions & 2 deletions pages/signUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ const useStyles = createStyles(({ spacing }) => ({
},
}));

const SelectStyles: SelectProps["styles"] = ({ spacing }) => ({
const SelectStyles: SelectProps["styles"] = () => ({
input: {
paddingLeft: 46,
},
});

const SelectItem = forwardRef<HTMLDivElement, ILocale>(
({ id, label, icon_url, ...rest }: ILocale, ref) => (
({ id: _, label, icon_url, ...rest }: ILocale, ref) => (
<div ref={ref} {...rest}>
<Group noWrap>
<Avatar size={24} src={icon_url} />
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noUnusedLocals": true,
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
}
Expand Down

0 comments on commit f18c970

Please sign in to comment.