Skip to content

Conversation

@hyu-dev
Copy link
Contributor

@hyu-dev hyu-dev commented Sep 21, 2025

husky, pre-commit 적용했습니다.

제가 의도한 바는 md 또는 mdx 문서 내 codeblock 에 작성된 코드도 devup-eslint 룰을 따라야한다고 생각했는데, md,mdx 문서 내 codeblock을 제어하려면 별도의 eslint-plugin-mdx 패키지를 설치해야하는 문제가 있었습니다.
devup-eslint 라이브러리에는 해당 룰이 적용되어 있지 않아서 제가 임의로 필요한 패키지들을 설치하긴했는데, 만약 husky를 적용하실 생각이 있으시다면 devup-eslint 룰 내에 반영이 필요할 것 같습니다.
또한, mdx rule을 적용하게되면 <Box /> 와 같은 태그를 사용할 땐 tsx로 codeblock을 생성해야 parsing 에러가 없어서 임의로 수정하여 올렸습니다.

아울러, json 관련된 rule도 없다보니 제 ide에 적용된 룰이 저장시 자꾸 반영되는 문제가 있었는데,
임의로 끄기는 싫고 강제하고자 json도 룰을 적용해보았습니다.

관련해서 코멘트 부탁드립니다!

@changeset-bot
Copy link

changeset-bot bot commented Sep 21, 2025

⚠️ No Changeset found

Latest commit: d90b94a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@owjs3901
Copy link
Contributor

너무 좋은 것 같습니다, mdx 관련 사용이 서투른 상태라서 관련 내용을 놓치고 있었습니다

이후 braillify에도 적용이 필요하다고 생각합니다

devup ui에 우선 뱡합하겠습니다

많은 이들이 lint 관련 이슈에 수고를 덜게 될 것 같습니다

@owjs3901
Copy link
Contributor

타 린트 이슈도 수정을 부탁드립니다

husky
lint-staged
eslint-plugin-jsonc
eslint-plugin-mdx
jsonc-eslint-parser
@typescript-eslint/parser
@hyu-dev
Copy link
Contributor Author

hyu-dev commented Sep 27, 2025

@owjs3901 린트에러 확인해서 올렸습니다. 늦게 올려서 죄송합니다.

  • md, mdx 문서에 있던 typescript를 tsx로 변환
  • origin devup-ui 레포지토리를 full 받아 rebase 하게되면서 pnpm install 실행이 필요했고, 그 과정에서 고정되지 않은 버전이 일부 업데이트 된것 같습니다.
  • json 관련 lint를 에러처리하면서 tsconfig.json 에서 lint 설정이 오류가 발생해 수정이 일부있었습니다.
    (json 관련 Lint를 error로 처리하는게 맞나 의문이지만 우선 강제 적용을 위해 반영해봤습니다)

@hyu-dev
Copy link
Contributor Author

hyu-dev commented Sep 28, 2025

@owjs3901 build 문제 원인은 eslint scope을 잘못 설정해서 전체 파일을 모두 lint 체크를 하던 것이었습니다. src 폴더 하위로 모두 적용해두었습니다.

@codecov
Copy link

codecov bot commented Sep 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hyu-dev
Copy link
Contributor Author

hyu-dev commented Sep 28, 2025

@owjs3901
제가 착각한 부분이 있었습니다.
작업하신 eslint-plugin-devup 은 이미 전역으로 잘 반영되고 있었습니다.

착각했던 부분에 대해 설명드리면

  1. eslint-plugin-eslint-plugin의 역할을 오해하고 있었습니다. files에 반영한 src 영역에 한해서만 설치한 plugin이 적용된다고 잘못이해하고 있었습니다.
  2. eslint . --fix 로 devup ui 폴더 내 전체 파일에 대해 lint를 돌려보면 꽤 많은 부분에서 lint 에러가 발생했으나 여태까지 ci/cd에서 문제없이 통과되는 것을 보고 src 파일에 한해서만 관리된다고 착각했습니다. (완전 잘못 추론)
  • 실제 .github actions 실행목록을 보면 devup-ui-wasm과 landing만 build를 진행하고 있고, devup-ui-wasm의 경우 lint 에러가 발생해도 build failed가 발생하지 않지만, landing 하위 폴더는 next로 build를 진행하기때문에 lint 에러시 실패하는 문제가 있습니다. next 기본 기능

src로 범위를 좁혔을때 문제없이 통과된 이유는 files 경로를 잘못 적용한 부분입니다.

아울러 landing 폴더 하위 파일들에 있는 lint에러도 모두 수정하여 올립니다.
전역으로 eslint . --fix를 돌려서 나머지도 수정하게 되면 추가로 merge 올리도록 하겠습니다.

@hyu-dev
Copy link
Contributor Author

hyu-dev commented Sep 28, 2025

난잡하게 적용되었던 rules 정리하고, 불필요한 parser들도 모두 정리했습니다.
그리고 전체 파일 대상으로 eslint 돌려서 모두 수정작업 했습니다.
확인 부탁드립니다

@owjs3901 owjs3901 merged commit b47693f into dev-five-git:main Sep 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants