Skip to content

update typescript version to 5.1.6#4612

Merged
Tyriar merged 4 commits intoxtermjs:masterfrom
SimonSiefke:update-typescript-version
Jul 27, 2023
Merged

update typescript version to 5.1.6#4612
Tyriar merged 4 commits intoxtermjs:masterfrom
SimonSiefke:update-typescript-version

Conversation

@SimonSiefke
Copy link
Copy Markdown
Contributor

required for CssStyleSheet typings needed in #4611

@IRenderService private readonly _renderService: IRenderService,
@ICoreBrowserService private readonly _coreBrowserService: ICoreBrowserService,
@IThemeService themeService: IThemeService
@IThemeService public themeService: IThemeService
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why were these publics added? They aren't needed as properties, only ctor args

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason ESLint was showing a warning Missing accessibility modifier on parameter property themeService, so I just added public and it kind of worked.

What do you think would be the best way to fix this?

missing-modified

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's weird as we explicitly say don't consider constructors:

xterm.js/.eslintrc.json

Lines 62 to 70 in b4aeb1b

"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit",
"overrides": {
"constructors": "off"
}
}
],

We might need to update eslint, @typescript-eslint and/or that rule to be compatible with the new TS version?

Copy link
Copy Markdown
Contributor Author

@SimonSiefke SimonSiefke Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That worked! I updated eslint, @typescript-eslint/eslint-plugin and @typescript-eslint/parser to the latest version.

Copy link
Copy Markdown
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm if CI passes, thanks

@Tyriar Tyriar self-assigned this Jul 27, 2023
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.

3 participants