-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] ci: 리액트 쿼리 및 msw 설치, eslint import rule 추가 및 적용 (#44)
* ci: eslint 오류 수정 및 import rule 추가 및 관련 플러그인 설치 - eslint-config-prettier - eslint-plugin-import Co-Authored-By: badahertz52 <badahertz52@gmail.com> Co-Authored-By: ImxYJL <111052302+ImxYJL@users.noreply.github.com> Co-Authored-By: Fe <64690761+chysis@users.noreply.github.com> * style: eslint 적용으로 인한 코드 포맷팅 변경 import 순서 적용 Co-Authored-By: badahertz52 <badahertz52@gmail.com> Co-Authored-By: ImxYJL <111052302+ImxYJL@users.noreply.github.com> Co-Authored-By: Fe <64690761+chysis@users.noreply.github.com> * ci: msw 설치 Co-Authored-By: badahertz52 <badahertz52@gmail.com> Co-Authored-By: ImxYJL <111052302+ImxYJL@users.noreply.github.com> Co-Authored-By: Fe <64690761+chysis@users.noreply.github.com> --------- Co-authored-by: badahertz52 <badahertz52@gmail.com> Co-authored-by: ImxYJL <111052302+ImxYJL@users.noreply.github.com> Co-authored-by: Fe <64690761+chysis@users.noreply.github.com>
- Loading branch information
1 parent
c001201
commit 3722245
Showing
7 changed files
with
479 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:import/recommended', | ||
'plugin:react/recommended', | ||
'prettier', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs', 'webpack.config.js'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react/react-in-jsx-scope': 'off', | ||
'react/no-unknown-property': ['error', { ignore: ['css'] }], | ||
'import/order': [ | ||
'error', | ||
{ | ||
'newlines-between': 'always', | ||
groups: [['builtin', 'external'], 'internal', 'parent', 'sibling', 'index'], | ||
pathGroups: [ | ||
{ | ||
pattern: 'next', | ||
group: 'builtin', | ||
}, | ||
{ | ||
pattern: 'react', | ||
group: 'builtin', | ||
}, | ||
{ | ||
pattern: '@MyDesignSystem/**', | ||
group: 'internal', | ||
}, | ||
{ | ||
pattern: 'src/**', | ||
group: 'internal', | ||
}, | ||
], | ||
pathGroupsExcludedImportTypes: ['src/**', '@MyDesignSystem/**'], | ||
alphabetize: { | ||
order: 'asc', | ||
caseInsensitive: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
}, | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
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
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.