Skip to content

Commit

Permalink
fix : 빌드 에러 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jun 28, 2024
1 parent eff8879 commit def5b69
Show file tree
Hide file tree
Showing 19 changed files with 1,042 additions and 159 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended"
"plugin:react-hooks/recommended",
"next", "next/core-web-vitals"
],
"ignorePatterns": ["dist", ".eslintrc.json"],
"parser": "@typescript-eslint/parser",
"plugins": ["react", "react-refresh"],
"rules": {
"@next/next/no-img-element": "off",
"@typescript-eslint/no-explicit-any": "off",
"react-refresh/only-export-components": [
"warn",
Expand Down
15 changes: 15 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": false,
"dynamicImport": false
},
"transform": {
"react": {
"runtime": "automatic"
}
}
}
}
5 changes: 0 additions & 5 deletions babel.config.js

This file was deleted.

3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* eslint-disable no-undef */
module.exports = {
transform: {
'^.+\\.(t|j)sx?$': ['@swc/jest']
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1', // '@' 접두사를 'src' 디렉토리로 매핑
'^@utils/(.*)$': '<rootDir>/src/utils/$1'
Expand Down
3 changes: 2 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const nextConfig = {
dest: 'public',
register: true,
skipWaiting: true
})
}),
swcMinify: true
};

export default nextConfig;
Loading

0 comments on commit def5b69

Please sign in to comment.