-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Lint files affected by the Jupyter work #16462
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
Lint files affected by the Jupyter work #16462
Conversation
| "eslint": "^7.2.0", | ||
| "eslint-config-airbnb": "^18.2.0", | ||
| "eslint-config-prettier": "^6.15.0", | ||
| "eslint-config-prettier": "^8.3.0", |
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.
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 😆
| onKeyPress={this.openBlankNotebook} | ||
| role="button" | ||
| tabIndex={0} |
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.
onKeyPress and tabIndex are accessibility-related.
| } | ||
|
|
||
| public openFolder = () => { | ||
| public openFolder = (): void => { |
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.
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 { |
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.
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)
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.