Skip to content
Snippets Groups Projects
Commit 13a40df6 authored by Minseo Lee's avatar Minseo Lee
Browse files

style: type always starts with biggercase

parent d9ff5900
Branches
No related tags found
No related merge requests found
......@@ -62,6 +62,21 @@ module.exports = {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false
}
},
{
"selector": "typeAlias",
"format": ["PascalCase"],
},
],
// plugins
"import/order": ["error", {
......
......@@ -28,7 +28,6 @@ import Wrapper from "./modules/wrapper/Wrapper";
import type { MutableRefObject } from 'react';
function App() {
const [headerName, setHeaderName] = useState('');
const [login, setLogin] = useState(true);
......@@ -56,11 +55,8 @@ function App() {
<Toast />
<div className={"App"}>
<Wrapper connector={connector}>
{login &&
<>
<Header headerName={headerName} connector={connector} />
{/*<Navigator />*/}
</>
{
login && <Header headerName={headerName} connector={connector} />
}
<article className={S['page-container']}>
<Routes>
......
......@@ -13,6 +13,7 @@ import type { ReactNode , MutableRefObject } from "react";
interface Props { children: ReactNode; }
// NEEDED TO USE CONTEXTS
const Wrapper: GFCWithProp<Props> = ({ connector, children }) => {
const { bSElement } = useContext(BSContext);
......
......@@ -6,11 +6,11 @@ import S from './ExitButton.module.css';
import type { FC } from "react";
interface props {
interface Props {
text: string;
}
const ExitButton: FC<props> = ({ text }) => {
const ExitButton: FC<Props> = ({ text }) => {
const navigate = useNavigate();
const handleGotoMain = () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment