-
Notifications
You must be signed in to change notification settings - Fork 2k
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
🎨 add linter/prettier and fix errors #98
Conversation
src/index.ts
Outdated
@@ -120,15 +133,15 @@ export function registerMicroApps<T extends object = {}>(apps: Array<Registrable | |||
async () => render({ appContent, loading: false }), | |||
async () => execHooksChain(toArray(afterMount), app), | |||
// initialize the unmount defer after app mounted and resolve the defer after it unmounted | |||
async () => await validateSingularMode(singularMode, app) ? prevAppUnmountedDeferred = new Deferred<void>() : void 0, | |||
// eslint-disable-next-line no-return-assign |
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.
no-return-assign 这个规则直接从 lint 里移除吧
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.
👌
src/sandbox.ts
Outdated
@@ -108,14 +102,15 @@ export function genSandbox(appName: string) { | |||
|
|||
const boundValue = value.bind(target); | |||
// some callable function has custom fields, we need to copy the enumerable props to boundValue. such as moment function. | |||
Object.keys(value).forEach(key => boundValue[key] = value[key]); | |||
Object.keys(value).forEach(key => { |
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.
no-return-assign 规则去了后这个也回滚吧
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.
done
Checklist
npm test
passesDescription of change