Skip to content

Commit

Permalink
chore: lint에 대한 packageExtentions 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gominzip committed Nov 12, 2024
1 parent a68b477 commit 7cd4aff
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
yarnPath: .yarn/releases/yarn-4.5.1.cjs
nodeLinker: pnp

packageExtensions:
'@typescript-eslint/utils@*':
peerDependencies:
eslint: '*'
typescript: '*'
'@typescript-eslint/type-utils@*':
peerDependencies:
eslint: '*'
typescript: '*'
'typescript-eslint@*':
peerDependencies:
eslint: '*'
4 changes: 3 additions & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ dist-ssr
*.sln
*.sw?

.vite
.vite

.dist
3 changes: 2 additions & 1 deletion frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import reactRecommended from 'eslint-plugin-react/configs/recommended.js';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';

export default tseslint.config({ ignores: ['dist'] }, js.configs.recommended, ...tseslint.configs.recommended, {
export default tseslint.config({ ignores: ['.*'] }, js.configs.recommended, ...tseslint.configs.recommended, {
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
Expand Down Expand Up @@ -34,6 +34,7 @@ export default tseslint.config({ ignores: ['dist'] }, js.configs.recommended, ..
allowConstantExport: true
}
],
'react/react-in-jsx-scope': 'off',
eqeqeq: ['error', 'always'],
indent: ['error', 2],
quotes: ['error', 'single'],
Expand Down
7 changes: 5 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview",
"test": "vitest",
Expand All @@ -14,6 +14,7 @@
"msw:init": "msw init public/"
},
"dependencies": {
"eslint-plugin-react": "^7.37.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.27.0",
Expand All @@ -26,12 +27,14 @@
"@types/react-dom": "^18.3.1",
"@types/react-router-dom": "^5.3.3",
"@types/styled-components": "^5.1.34",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"@vitejs/plugin-react": "^4.3.3",
"eslint": "^9.13.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.11.0",
"typescript": "4.4.3",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0",
"vite": "^5.4.10",
"vite-plugin-svgr": "^4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/client/PlayerInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import styled from 'styled-components';

const PlayerInfo = () => {
const [videoStatus, setVideoStatus] = useState(true);
const [videoStatus] = useState(true);

return (
<PlayerInfoContainer>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/declarations.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare module '*.svg' {
import React = require('react');
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
const src: string;
export default src;
Expand Down
3 changes: 3 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ export default defineConfig({
include: '**/*.svg'
})
],
build: {
outDir: '.dist'
},
cacheDir: '.vite'
});

0 comments on commit 7cd4aff

Please sign in to comment.