Skip to content

Conversation

@kimadeline
Copy link

@kimadeline kimadeline commented Jun 12, 2021

Closes #16102 since it's the last PR directly related to it.

I tried fixing linting errors without modifying any functionality so as to not accidentally break what with the Jupyter extension expects, so I didn't change the start page too much. It will need to be revisited in #16453 anyway.

Windows venv test failures reported in #16454.
Smoke test failures handled in #16457.

@kimadeline kimadeline added no-changelog No news entry required skip tests Updates to tests unnecessary labels Jun 12, 2021
"eslint": "^7.2.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.15.0",
"eslint-config-prettier": "^8.3.0",
Copy link
Author

@kimadeline kimadeline Jun 12, 2021

Choose a reason for hiding this comment

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

Had to update it because ESLint and Prettier had conflicting formatting for React components, which exist in startPage.tsx. Turns out this caused many files to suddenly fail the linting check 😆

Comment on lines +82 to +84
onKeyPress={this.openBlankNotebook}
role="button"
tabIndex={0}
Copy link
Author

Choose a reason for hiding this comment

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

onKeyPress and tabIndex are accessibility-related.

}

public openFolder = () => {
public openFolder = (): void => {
Copy link
Author

Choose a reason for hiding this comment

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

openFolder is defined as an arrow function expression, while openFileBrowser is a method on the class. I don't know why it was done that way, but I didn't want to touch it and risk breaking things. Will have to be revisited in #16453.

}

private openBlankNotebook = () => {
private openBlankNotebook(): void {
Copy link
Author

@kimadeline kimadeline Jun 12, 2021

Choose a reason for hiding this comment

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

These methods are private, while openFileBrowser, openFileBrowser and openWorkspace are public, despite nothing referencing them. I don't know why it was done that way, but I didn't want to touch it and risk breaking things. Will have to be revisited in #16453. (also undid my change from arrow function expression to method)

@kimadeline kimadeline marked this pull request as ready for review June 14, 2021 18:01
@kimadeline kimadeline merged commit 67590fb into microsoft:main Jun 22, 2021
@kimadeline kimadeline deleted the 16102-linting-start-page branch June 22, 2021 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required skip tests Updates to tests unnecessary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Break the hard dependency on the Jupyter extension

3 participants