-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
chore: upgrade eslint and fix the warnings #6420
Changes from 2 commits
ebef903
f72d4e9
280032a
8759569
16175de
1316089
09cd7e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,10 @@ module.exports = { | |
}, | ||
//ignore rules on destructured params | ||
{selector: "variable", modifiers: ["destructured"], format: null}, | ||
{ | ||
selector: "import", | ||
format: ["camelCase", "PascalCase"] | ||
}, | ||
], | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-floating-promises": "error", | ||
|
@@ -159,6 +163,7 @@ module.exports = { | |
"prettier/prettier": "error", | ||
quotes: ["error", "double"], | ||
semi: "off", | ||
"import/namespace": "off", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/namespace.md This rule is taking most of the linting time, 33% of the overall time. This rule check each package usages at import time, but is not trivial to us as the non-existing methods can also be detected by
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should probably add a short comment in eslintrc to document it there as well |
||
}, | ||
settings: { | ||
"import/core-modules": [ | ||
|
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 will allow to import packages like below without warnings.