Skip to content

Commit

Permalink
eslint updated
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyzlei committed Oct 29, 2023
1 parent efbb295 commit 49f0fb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
module.exports = {
extends: ["@calblueprint/eslint-config-react"],
extends: ["@calblueprint/eslint-config-react"],
rules: {
// Add any custom rules here
// Disable the rule that requires React to be in scope -- we don't need this with React 18
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
},
settings: {
'import/resolver': {
typescript: {}
}
}
};
5 changes: 1 addition & 4 deletions src/app/checkout/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
import { useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';
import supabase from '@/api/supabase/createClient';
import { Button } from '../login/styles';
import { User } from '@/schema/schema';
import { fetchUserByUUID } from '@/api/supabase/queries/user_queries';
import { Button } from '../login/styles';

import NavBar from '../../components/NavBar';

('use client');

export default function Checkout() {
const [deliveryEnabled, setDeliveryEnabled] = useState<boolean>(false);
useEffect(() => {
Expand Down

0 comments on commit 49f0fb7

Please sign in to comment.