{"id":48526124,"url":"https://github.com/devyubi/til_npm","last_synced_at":"2026-04-07T22:32:39.245Z","repository":{"id":307210564,"uuid":"1023326584","full_name":"devyubi/til_npm","owner":"devyubi","description":"각종 라이브러리 설치 및 활용","archived":false,"fork":false,"pushed_at":"2025-08-07T00:40:28.000Z","size":870,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-07T02:33:50.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devyubi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-21T02:00:56.000Z","updated_at":"2025-07-21T03:36:52.000Z","dependencies_parsed_at":"2025-08-04T09:35:54.043Z","dependency_job_id":null,"html_url":"https://github.com/devyubi/til_npm","commit_stats":null,"previous_names":["devyubi/til_npm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devyubi/til_npm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devyubi%2Ftil_npm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devyubi%2Ftil_npm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devyubi%2Ftil_npm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devyubi%2Ftil_npm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devyubi","download_url":"https://codeload.github.com/devyubi/til_npm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devyubi%2Ftil_npm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31532327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-07T22:32:38.942Z","updated_at":"2026-04-07T22:32:39.237Z","avatar_url":"https://github.com/devyubi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 프로젝트 셋팅\n\n- public/index.html 정리\n- package.json 정리\n- index.js 정리\n- App.js 정리\n- index.css 정리\n- App.css 제거\n- css 폴더 생성/layout.css 생성\n- npm 관련 제거(test 등등)\n\n# 기본 ESLint, Prettier 설정\n\n## 1. ESLint\n\n```bash\nnpm install eslint@latest -D\n```\n\n```bash\nnpm install eslint-config-react-app --save-dev --force\n```\n\n- 지금은 최신 버전 mjs 로 진행함.\n\n```bash\nnpx eslint --init\n```\n\n## 2. prettier\n\n```bash\nnpm i prettier -D\n```\n\n- .prettierrc.json 파일 생성\n\n```json\n{\n  \"singleQuote\": false,\n  \"semi\": true,\n  \"useTabs\": false,\n  \"tabWidth\": 2,\n  \"trailingComma\": \"all\",\n  \"printWidth\": 80,\n  \"arrowParens\": \"avoid\",\n  \"endOfLine\": \"auto\"\n}\n```\n\n## 3. ESLint 와 prettier 연결\n\n```bash\nnpm i  eslint-config-prettier -D\nnpm i  eslint-plugin-prettier -D\n```\n\n- `eslint.config.mjs` 설정 수정\n\n```mjs\nimport js from \"@eslint/js\";\nimport pluginReact from \"eslint-plugin-react\";\nimport pluginPrettier from \"eslint-plugin-prettier\";\nimport globals from \"globals\";\nimport { defineConfig } from \"eslint/config\";\n\nexport default defineConfig([\n  {\n    files: [\"**/*.{js,jsx}\"],\n    languageOptions: {\n      ecmaVersion: \"latest\",\n      sourceType: \"module\",\n      parserOptions: {\n        ecmaFeatures: {\n          jsx: true,\n        },\n      },\n      globals: globals.browser,\n    },\n    plugins: {\n      react: pluginReact,\n      prettier: pluginPrettier,\n    },\n    rules: {\n      ...pluginReact.configs.recommended.rules,\n      \"prettier/prettier\": \"warn\",\n      \"no-var\": \"warn\",\n      \"no-unused-vars\": \"warn\",\n    },\n    settings: {\n      react: {\n        version: \"detect\",\n      },\n    },\n  },\n]);\n```\n\n- VSCode 의 settings.json 에 내용 추가(`Ctrl + ,`)\n\n```json\n  \"eslint.useFlatConfig\": true\n```\n\n## 4. 기본 npm 설치하기\n\n- emotion 설치\n\n```bash\nnpm i @emotion/react\nnpm i @emotion/styled\n```\n\n- scss 설치\n\n```bash\nnpm i sass -D\n```\n\n- react-router-dom 설치\n\n```bash\nnpm i react-router-dom\n```\n\n## 5. react-router-dom 의 라우터 셋팅\n\n- App.jsx 에 작성(Router \u003e Routes \u003e Route)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevyubi%2Ftil_npm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevyubi%2Ftil_npm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevyubi%2Ftil_npm/lists"}