-
Notifications
You must be signed in to change notification settings - Fork 33
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
feat!: update dependency to eslint v9 @W-17445058 #176
Conversation
BREAKING CHANGE: dropping support for ESLint v7 and v8. The only supported option is ESLint v9
@@ -175,29 +175,6 @@ testRule('no-node-env-in-ssr', { | |||
}, | |||
], | |||
}, | |||
{ |
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.
Duplicate test
@@ -175,29 +175,6 @@ testRule('ssr/no-node-env', { | |||
}, | |||
], | |||
}, | |||
{ |
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.
Duplicate test
@@ -66,17 +66,6 @@ testRule('valid-wire', { | |||
code: `import { wire } from 'lwc'; | |||
import getFoo from 'adapter'; | |||
|
|||
class Test { |
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.
Duplicate tests here as well
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.
What is it about these changes that breaks eslint v7/v8?
lib/rules/no-async-operation.js
Outdated
return { | ||
CallExpression(node) { | ||
const { callee } = node; | ||
const scope = context.getScope(); | ||
const scope = sourceCode.getScope ? sourceCode.getScope(node) : context.getScope(); |
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.
const scope = sourceCode.getScope ? sourceCode.getScope(node) : context.getScope(); | |
const scope = getScope(context, node); |
Since we've got the helper for it. 🤷
f481857
to
6eec0f1
Compare
@wjhsf Decided to drop support for v7 and v8 for the following reasons:
|
* feat!: update dependency to eslint v9 @W-17445058 BREAKING CHANGE: dropping support for ESLint v7 and v8. The only supported option is ESLint v9 * fix: lock file update * fix: update ci config * feat: migrate rule to ESLint v9 * fix: address PR feedback
* feat!: update dependency to eslint v9 @W-17445058 BREAKING CHANGE: dropping support for ESLint v7 and v8. The only supported option is ESLint v9 * fix: lock file update * fix: update ci config * feat: migrate rule to ESLint v9 * fix: address PR feedback
BREAKING CHANGE: dropping support for ESLint v7 and v8. Supported option is ESLint v9 only. Use older versions of this plugin to use ESLint v7 and v8.
fixes #150