forked from Donggrina/Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
132 changed files
with
3,461 additions
and
817 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
parser: '@typescript-eslint/parser', // ESLint 파서를 지정합니다. | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, // JSX를 파싱할 수 있습니다. | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
ecmaVersion: 12, // Modern ECMAScript를 파싱할 수 있습니다. | ||
sourceType: 'module', // import, export를 사용할 수 있습니다. | ||
}, | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
|
||
rules: { | ||
// ESLint 규칙을 지정합니다. extends에서 지정된 규칙을 덮어 쓸수도 있습니다. | ||
'react/react-in-jsx-scope': 'off', | ||
'react/prop-types': 'off', | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
endOfLine: 'auto', | ||
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
parser: '@typescript-eslint/parser', // ESLint 파서를 지정합니다. | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, // JSX를 파싱할 수 있습니다. | ||
}, | ||
], | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', // 현재 사용하고 있는 react 버전을 eslint-plugin-react가 자동으로 감지합니다. | ||
ecmaVersion: 12, // Modern ECMAScript를 파싱할 수 있습니다. | ||
sourceType: 'module', // import, export를 사용할 수 있습니다. | ||
}, | ||
}, | ||
}; | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
|
||
rules: { | ||
// ESLint 규칙을 지정합니다. extends에서 지정된 규칙을 덮어 쓸수도 있습니다. | ||
'react/react-in-jsx-scope': 'off', | ||
'react/prop-types': 'off', | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', // 현재 사용하고 있는 react 버전을 eslint-plugin-react가 자동으로 감지합니다. | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "typescript", | ||
"tsconfig": "tsconfig.json", | ||
"problemMatcher": ["$tsc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"label": "tsc: 빌드 - tsconfig.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import { axiosFileInstance } from '..'; | ||
|
||
interface ImageType { | ||
files: File; | ||
files?: File; | ||
images?: File; | ||
} | ||
|
||
export const imageUpload = async (data: ImageType) => { | ||
return await axiosFileInstance.post('/images', data); | ||
}; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export const diaryImageUpload = async (data: ImageType) => { | ||
return await axiosFileInstance.post('/images/diaries', data); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.