Skip to content
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

Merged
merged 5 commits into from
Dec 21, 2024

Conversation

ravijayaramappa
Copy link
Contributor

@ravijayaramappa ravijayaramappa commented Dec 19, 2024

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

@@ -175,29 +175,6 @@ testRule('no-node-env-in-ssr', {
},
],
},
{
Copy link
Contributor Author

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', {
},
],
},
{
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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

Copy link
Contributor

@wjhsf wjhsf left a 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?

return {
CallExpression(node) {
const { callee } = node;
const scope = context.getScope();
const scope = sourceCode.getScope ? sourceCode.getScope(node) : context.getScope();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const scope = sourceCode.getScope ? sourceCode.getScope(node) : context.getScope();
const scope = getScope(context, node);

Since we've got the helper for it. 🤷

@ravijayaramappa
Copy link
Contributor Author

@wjhsf Decided to drop support for v7 and v8 for the following reasons:

  1. Reduce tech debt: ESLint v8 is EOL, so we keep our eslint tooling updated with the latest and no suffer from supporting older versions.
  2. Having v8 and v9 will be a maintenance burden for this repo. Since the config format change, some of the tests need two different test configs.

@ravijayaramappa ravijayaramappa merged commit 105f7a8 into eslint-v9 Dec 21, 2024
6 checks passed
@ravijayaramappa ravijayaramappa deleted the ravi/master/eslint-v9 branch December 21, 2024 17:12
ravijayaramappa added a commit that referenced this pull request Jan 4, 2025
* 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
ravijayaramappa added a commit that referenced this pull request Jan 18, 2025
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants