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