feat!: eslint-plugin-smarthr と eslint-config-smarthr を統合する#716
Draft
s-sasaki-0529 wants to merge 1 commit intomasterfrom
Draft
feat!: eslint-plugin-smarthr と eslint-config-smarthr を統合する#716s-sasaki-0529 wants to merge 1 commit intomasterfrom
s-sasaki-0529 wants to merge 1 commit intomasterfrom
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WHAT
eslint-plugin-smarthr (以下 plugin) と eslint-config-smarthr (以下 config) のパッケージを、 config 側に統合します。
社内向け関連リンク
https://smarthr-inc.docbase.io/posts/3750537#eslint-plugin-smarthr-%E3%81%A8-eslint-config-smarthr-%E3%81%A3%E3%81%A6%E7%B5%B1%E5%90%88%E3%81%97%E3%81%A1%E3%82%83%E8%89%AF%E3%81%8F%E3%81%AA%E3%81%84%E3%82%93%E3%81%A7%E3%81%99%E3%81%A3%E3%81%91-sasakish
WHY
plugin とconfig はパッケージこそ別れているが、プロダクト側では基本的に plugin を単独で使用することはなく、plugin を含んだ config のみを利用している。
基本的にコードの追加修正は plugin 側に行われ、config 側は使用する plugin のバージョンと、各ルールの有効無効の切り替え程度でしか使用されていない。
という状況でありながらパッケージが別れていることから、カスタムルールの追加修正作業を行う際の動作確認やリリース作業、バージョン管理の手間が余分にかかってしまっており、メンテナンスのハードルも高まってしまうため、これを解消したい。
HOW
ベースはAIのおまかせして一気に移植する
やらなかったこと
plugin 側のコードの削除やパッケージの非推奨化作業はまだ行いません。
本PRマージ後、config 側の最新バージョンをリリースし、無事に使えることが確認できたら続けて行います。
確認方法
本PRのバージョンと、リリース済みの最新バージョンで、 eslint 設定の出力がまったく変わらず利用できることを確認すればOKとします。
手順と確認結果
WIP