Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 초기 세팅 및 dependency 버전 업데이트 #1

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
59 changes: 22 additions & 37 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
module.exports = {
root: true,
env: {
es6: true,
browser: true,
jest: true,
},
ignorePatterns: [
'node_modules/',
'.pnp.cjs',
'.pnp.loader.cjs',
'public/',
],
extends: [
'airbnb',
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'plugin:react/jsx-runtime',
'@nf-team/eslint-config',
'plugin:@next/next/recommended',
],
plugins: [
Expand All @@ -30,36 +17,16 @@ module.exports = {
ecmaVersion: 12,
sourceType: 'module',
},
settings: {
'import/resolver': {
alias: {
map: [['@', './src']],
extensions: ['.ts', '.js', '.tsx', '.json'],
},
},
},
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: [
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:flowtype/recommended',
],
plugins: [
'@typescript-eslint',
'flowtype',
],
rules: {
// set your typescript rules
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
},
},
{
files: ['src/hooks/**/**/*.test.ts?(x)'],
files: ['hooks/**/**/*.test.ts?(x)'],
rules: {
'react-hooks/rules-of-hooks': 'off',
},
Expand All @@ -68,7 +35,9 @@ module.exports = {
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react', 'plugin:jest/recommended'],
rules: {
// set your test eslint rules
'jest/no-identical-title': 'off',
'react-hooks/rules-of-hooks': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
Expand All @@ -81,6 +50,22 @@ module.exports = {
},
],
rules: {
// set your rules
'react/require-default-props': 'off',
'import/order': 'off',
'@next/next/no-html-link-for-pages': ['error', 'app/'],
'simple-import-sort/imports': ['error', {
groups: [
['^\\u0000'],
['^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)'],
['^react'],
['^next'],
['^@?\\w'],
['^(@|lib|components|utils|hooks|stores)(/.*|$)'],
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
['^.+\\.svg$'],
['^.+\\.s?css$'],
],
}],
},
};
20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,8 @@ jobs:
- name: Check Unit Test
run: yarn test:coverage

- name: Set unit test coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

- name: Check e2e Test
uses: cypress-io/github-action@v5
with:
install-command: yarn install
command: yarn test:e2e
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# - name: Set unit test coverage
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true
42 changes: 0 additions & 42 deletions .github/workflows/release.yml

This file was deleted.

Loading