-
Notifications
You must be signed in to change notification settings - Fork 90
chore(code-lint): Add lint to check (VSCODE-215) #230
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
|
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.
Nice! Maybe Alena wants to review this too.
return vscode.FileType.SymbolicLink; | ||
} | ||
|
||
return vscode.FileType.Unknown; |
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.
Thx :)
})) | ||
label: item.name, | ||
kind: CompletionItemKind.Value | ||
})) |
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.
Will this endless adding/deleting spaces be fixed by this PR with lint improvements?
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.
With #231 yes
@mcasimir Removed the |
package.json
Outdated
"@types/ws": "^7.2.4", | ||
"@typescript-eslint/eslint-plugin": "^2.19.2", | ||
"@typescript-eslint/parser": "^2.19.2", | ||
"@typescript-eslint/eslint-plugin": "^4.11.1", |
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.
This and "@typescript-eslint/parser" are already 4.12.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.
👍 will rebase once the editing playground results pr goes through and then we can look at this again and merge.
27d2cb1
to
036801b
Compare
@alenakhineika @mcasimir rebased off master, fixed those issues. Also added Something I noticed in a number of our tests is we're importing |
This PR adds a
lint
check for ourcheck
script, which runs in the precommit. Updated our eslint to search all the files, and added all of our entries to the dependency check which mongodb-js-precommit runs.This PR includes fixes for the existing lint errors, and some of the errors. There are still a couple warnings (see screenshot below). Also updates a couple of our dependencies and our eslint config generation to be a bit cleaner and work with the new deps.
Here's what the commit output now looks like:

Looks like mongodb-js-precommit is throwing en error when trying to lint now. I think we want to add an optional parameter to skip the lint check. Haven't looked into what's causing it to fail yet.
