Skip to content

Commit

Permalink
fix: eslint (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
0plan authored Jan 10, 2024
1 parent 7282938 commit b77d3f6
Show file tree
Hide file tree
Showing 8 changed files with 297 additions and 315 deletions.
19 changes: 14 additions & 5 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:storybook/recommended'
'plugin:storybook/recommended',
'eslint-config-airbnb'
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
Expand All @@ -14,16 +15,24 @@ module.exports = {
'jsx': true
}
},
"settings": {
"import/resolver": {
"alias": {
map: [
[ "@components", "./src/components" ],
[ "~", "./src" ],
]
}
}
},
plugins: ['react-refresh'],
rules: {
'import/prefer-default-export': ['off'], // export const ๋ฌธ์„ ์“ธ๋•Œ ์—๋Ÿฌ๋ฅผ ๋‚ด๋Š” ๊ทœ์น™ ํ•ด์ œ
'no-console': ['off'], // ์ฝ˜์†”์„ ์“ฐ๋ฉด ์—๋Ÿฌ๊ฐ€ ๋‚˜๋˜ ๊ทœ์น™ ํ•ด์ œ
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'react/jsx-filename-extension': 0,
'react/react-in-jsx-scope': 0,
'no-shadow': 0,
'no-unresolved': 0,
"react/prefer-stateless-function": 0,
"react/jsx-one-expression-per-line": 0
'react/prefer-stateless-function': 0,
'react/jsx-one-expression-per-line': 0
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"react-day-picker": "^8.10.0",
"react-dom": "^18.2.0",
"react-helmet-async": "^2.0.4",
"react-hook-form": "^7.49.2",
"react-hook-form": "^7.49.3",
"react-i18next": "^13.5.0",
"react-router-dom": "^6.21.1",
"tailwind-merge": "^2.2.0",
Expand All @@ -87,13 +87,14 @@
"@types/js-yaml": "^4.0.9",
"@types/react": "^18.2.47",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"@typescript-eslint/parser": "^6.18.0",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"@unocss/preset-icons": "^0.58.3",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.56.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"eslint-plugin-storybook": "^0.6.15",
Expand Down
Loading

0 comments on commit b77d3f6

Please sign in to comment.