From 2e9518468d6564a3604c2ee3edf0bb6057bfe46c Mon Sep 17 00:00:00 2001 From: seoAreum <1971236@hansung.ac.kr> Date: Thu, 4 Jul 2024 04:29:51 +0900 Subject: [PATCH] =?UTF-8?q?style:=20eslint=20=EA=B7=9C=EC=B9=99=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 0d926f1f..870652b6 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,20 +1,29 @@ -module.exports = { - root: true, - env: { browser: true, es2020: true }, - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:react-hooks/recommended', - 'plugin:react/recommended', - 'prettier', - ], - ignorePatterns: ['dist', '.eslintrc.cjs'], - parser: '@typescript-eslint/parser', - plugins: ['react-refresh','prettier'], - rules: { - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, +module.exports = [ + { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', + 'plugin:react/recommended', + 'prettier', ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh', 'prettier'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { + 'react/jsx-props-no-spreading': 'off', + 'eol-last': ['error', 'always'], + 'react/react-in-jsx-scope': 'off', + 'no-multi-spaces': 'error', + 'simple-import-sort/imports': 'error', + allowConstantExport: true, + }, + ], + }, }, -} +];