Skip to content

Commit

Permalink
refactor: update linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
hiporox committed May 23, 2024
1 parent 7b39d4c commit 12b2fa0
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 16 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
"react"
],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
"varsIgnorePattern": "^_",
"args": "none"
}],
"@typescript-eslint/no-explicit-any": "off",
"react/prop-types": "off",
"@next/next/no-img-element": "off"
"react/prop-types": "off"
},
"settings": {
"react": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/data/stores/accounts/indentityStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isArray, find, map, isUndefined, isNull } from 'lodash';
import { isArray, find, isUndefined, isNull } from 'lodash';
import { Wallet } from '@privy-io/react-auth';
import { secp256k1 } from '@noble/curves/secp256k1';
import { xchacha20poly1305 } from '@noble/ciphers/chacha';
Expand Down
2 changes: 1 addition & 1 deletion src/common/data/stores/accounts/privyStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConnectedWallet, PrivyInterface, User as PrivyUser, usePrivy, useWallets } from '@privy-io/react-auth';
import { ConnectedWallet, User as PrivyUser, usePrivy, useWallets } from '@privy-io/react-auth';
import type { AccountStore } from '.';
import { StoreSet } from '..';
import { find, isUndefined } from 'lodash';
Expand Down
3 changes: 1 addition & 2 deletions src/common/data/stores/accounts/providerStore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

interface Provider {
export interface Provider {
methods: {
[key: string]: (unknown) => Promise<unknown>;
};
Expand Down
2 changes: 1 addition & 1 deletion src/common/fidgets/FidgetWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type FidgetWrapperProps = {
};

export function FidgetWrapper({ fidget, config, saveConfig }: FidgetWrapperProps) {
const [saving, setSaving] = useState(false);
const [_saving, setSaving] = useState(false);
const [editing, setEditing] = useState(false);
const [viewEditor, setViewEditor] = useState(false);
const [localConfig, setLocalConfig] = useState<FidgetConfig<FidgetSettings>>({
Expand Down
2 changes: 1 addition & 1 deletion src/common/fidgets/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface LayoutFigetProps {
isEditable: boolean;
}

const LayoutFidgetDefaultProps = {
type LayoutFidgetDefaultProps = {
fidgets: object,
layoutConfig: object,
isEditable: false,
Expand Down
10 changes: 5 additions & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useEffect } from "react";
import { useRouter } from "next/router";
import { createClient } from "@/common/data/database/supabase/clients/component";
import React from "react";
// import { useRouter } from "next/router";
// import { createClient } from "@/common/data/database/supabase/clients/component";

const Index = () => {
const router = useRouter();
const supabaseClient = createClient();
// const router = useRouter();
// const supabaseClient = createClient();

// useEffect(() => {
// supabaseClient.auth.getSession().then(({ data: { session } }) => {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Button } from "@/common/ui/atoms/button";
import Spinner from "@/common/ui/atoms/spinner";
import { useLogin, usePrivy } from "@privy-io/react-auth";
import { isUndefined } from "lodash";
import Image from "next/image";
import { useRouter } from "next/router";
import React, { useState } from "react";

Expand Down Expand Up @@ -106,7 +107,7 @@ export default function Login() {
<div className="mx-auto mt-20 flex max-w-2xl lg:mr-10 lg:ml-0 lg:mt-12 lg:max-w-none lg:flex-none xl:mr-32">
<div className="mx-auto max-w-3xl flex-none sm:max-w-5xl lg:max-w-none">
<div className="-m-2 rounded-xl bg-gray-900/5 p-2 ring-1 ring-inset ring-gray-900/10 lg:-m-4 lg:rounded-2xl lg:p-4">
<img
<Image
src="/images/app-screenshot.png"
alt="App screenshot"
width={2432}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/setup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Setup() {
currentSpaceIdentityPublicKey: state.currentSpaceIdentityPublicKey,
}));
const [currentStep, setCurrentStep] = useState(SETUP_STATES.wallet);
const [selectedIdentity, setSelectedIdentity] = useState("");
// const [selectedIdentity, setSelectedIdentity] = useState("");

// Redirect if not logged in with Privy
useEffect(() => {
Expand Down

0 comments on commit 12b2fa0

Please sign in to comment.