-
Notifications
You must be signed in to change notification settings - Fork 988
fix broken typings for the non modular RTDB package #4858
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
Conversation
|
|
@hiranya911 FYI |
hsubox76
left a comment
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.
Seems like some lint comments are needed on the any lines.
Binary Size ReportAffected SDKs
Test Logs |
schmidt-sebastian
left a comment
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.
Sad panda (for now). Also ship it!
| export async function addBlankLines(outputLocation: string): Promise<void> { | ||
| const eslint = new ESLint({ | ||
| fix: true, | ||
| overrideConfig: { | ||
| parserOptions: { | ||
| ecmaVersion: 2017, | ||
| sourceType: 'module', | ||
| tsconfigRootDir: __dirname, | ||
| project: ['./tsconfig.eslint.json'] | ||
| }, | ||
| env: { | ||
| es6: true | ||
| }, | ||
| plugins: ['@typescript-eslint'], | ||
| parser: '@typescript-eslint/parser', | ||
| rules: { | ||
| 'unused-imports/no-unused-imports-ts': ['off'], | ||
| // add blank lines after imports. Otherwise removeUnusedImports() will remove the comment | ||
| // of the first item after the import block | ||
| 'padding-line-between-statements': [ | ||
| 'error', | ||
| { 'blankLine': 'always', 'prev': 'import', 'next': '*' } | ||
| ] | ||
| } | ||
| } | ||
| }); | ||
| const results = await eslint.lintFiles(outputLocation); | ||
| await ESLint.outputFixes(results); | ||
| } |
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.
YAY. I was not able to figure this out.
* fix broken typings for the non modular sdk * fix lint errors * preserve comment
Admin SDK couldn't upgrade to the latest version because our typings are broken. They reference typings from
@firebase/app-exp. This ugly workaround fixes it.These changes are internal, so no public types are affected.