<aside> 💡 본인이 경험한 문제와 해결과정을 기록하고 공유해주세요.
</aside>
// eslint-disable-next-line
import { Container } from '@/components'; // 이 부분 eslint에서 걸림
export default {
title: 'Components/Atoms/Container',
component: Container,
};
export const Default = () => {
return <Container>Hello World!</Container>;
};
vscode prettier 설정 확인
App.tsx
// eslint-disable-next-line
import { Container } from '@/components'; // 이 부분 eslint에서 걸림
const App = function () {
return (
<Container>
<h1>hello, YAS!</h1>
</Container>
);
};
export default App;
조지
yarn start
시 warnigs 해결 필요
src/App.tsx
Line 4:13: Missing return type on function @typescript-eslint/explicit-module-boundary-types
src/components/atoms/Container/Container.tsx
Line 5:19: Missing return type on function @typescript-eslint/explicit-module-boundary-types
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.