Skip to content

Commit

Permalink
eslint ์„ค์ • (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: แ„‹แ…ฒแ„’แ…งแ†ผแ„‹แ…ฎ/แ„‹แ…ขแ„‡แ…ฅแ„แ…ฅแ„‰แ…ณ <db6194@iabacus.co.kr>
  • Loading branch information
yoohyungwoo and แ„‹แ…ฒแ„’แ…งแ†ผแ„‹แ…ฎ/แ„‹แ…ขแ„‡แ…ฅแ„แ…ฅแ„‰แ…ณ authored Dec 14, 2023
1 parent 9d75d31 commit 904f7ae
Show file tree
Hide file tree
Showing 3 changed files with 364 additions and 67 deletions.
15 changes: 14 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,24 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"plugin:prettier/recommended",
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
parserOptions: {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
plugins: ['react-refresh', 'prettier'],
rules: {
'no-unused-vars': ['off'], // ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๋ณ€์ˆ˜๊ฐ€ ์žˆ์„๋•Œ ๋นŒ๋“œ์—๋Ÿฌ๊ฐ€ ๋‚˜๋˜ ๊ทœ์น™ ํ•ด์ œ
'arrow-parens': ['warn', 'as-needed'], // ํ™”์‚ดํ‘œ ํ•จ์ˆ˜์˜ ํŒŒ๋ผ๋ฏธํ„ฐ๊ฐ€ ํ•˜๋‚˜์ผ๋•Œ ๊ด„ํ˜ธ ์ƒ๋žต
'import/prefer-default-export': ['off'], // export const ๋ฌธ์„ ์“ธ๋•Œ ์—๋Ÿฌ๋ฅผ ๋‚ด๋Š” ๊ทœ์น™ ํ•ด์ œ
'no-console': ['off'], // ์ฝ˜์†”์„ ์“ฐ๋ฉด ์—๋Ÿฌ๊ฐ€ ๋‚˜๋˜ ๊ทœ์น™ ํ•ด์ œ
'prettier/prettier': 0,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,14 @@
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.16",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"nprogress": "^0.2.0",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.9",
"tailwindcss": "^3.3.6",
"typescript": "^5.3.3",
"unocss": "^0.58.0",
Expand Down
Loading

0 comments on commit 904f7ae

Please sign in to comment.