-
Notifications
You must be signed in to change notification settings - Fork 312
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
Electronのmain processで直接動作するコード以外からelectronに関する型を排除する #1278
Conversation
MessageBoxも実際はどのボタンを押されたかのindexだけ欲しいはずなので、定義したinterfaceはもう少し小さくても良い
.eslintrc.js
Outdated
@@ -52,6 +52,18 @@ module.exports = { | |||
}, | |||
], | |||
"import/order": "error", | |||
"no-restricted-imports": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ほぼLGTMです!!
shouldとwantの間くらいの提案なので、いまいちだったら言って頂ければ・・・!
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
特に問題ないと思うのでマージします!
内容
Electron非依存でEditorUIを動作させるのに、型的にも非依存であることが示されていると進めやすいため、型の調整を行いました。
また今後electronのモジュールをimportしてしまわぬようにlintでも弾くようにしています。
関連 Issue
ref: #1204
スクリーンショット・動画など
その他