Skip to content

Commit

Permalink
refactor: css import 정렬 rule 수정 module css만 가장 밑으로 오도록 변경 (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
saseungmin authored Sep 28, 2024
1 parent 1e7c1fe commit d8c5ae8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions apps/admin/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import '@dnd-academy/ui/style.css';
import 'src/styles/global.scss';

import { pretendardFont } from '@/app/_fonts';
import ClientProvider from '@/components/common/ClientLayout';

import '@dnd-academy/ui/style.css';
import 'src/styles/global.scss';
import styles from './index.module.scss';

function RootLayout({ children }: {
Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import '@dnd-academy/ui/style.css';
import 'src/styles/global.scss';

import { GoogleAnalytics } from '@next/third-parties/google';

import ClientProviders from '@/components/global/ClientProviders';
Expand All @@ -8,8 +11,6 @@ import { DEFAULT_METADATA } from '@/lib/constants/metadata';

import { pretendardFont } from './_fonts';

import '@dnd-academy/ui/style.css';
import 'src/styles/global.scss';
import styles from './index.module.scss';

export const metadata = DEFAULT_METADATA;
Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/components/molecules/PDFViewer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'use client';

import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';

import { useRef, useState } from 'react';
import {
Document, DocumentProps, Page, pdfjs,
Expand All @@ -11,8 +14,6 @@ import { useDebounceCallback, useResizeObserver } from 'usehooks-ts';

import { ArrowExpandIcon, ArrowRightIcon } from '@/lib/assets/icons';

import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';
import styles from './index.module.scss';

pdfjs.GlobalWorkerOptions.workerSrc = new URL(
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = {
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
['^.+\\.svg$'],
['^.+\\.s?css$'],
['^.+\\.module.s?css$'],
],
}],
'simple-import-sort/exports': 'error',
Expand Down

0 comments on commit d8c5ae8

Please sign in to comment.