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: support ESLint 8.x #465

Merged
merged 4 commits into from Oct 17, 2021
Merged

feat: support ESLint 8.x #465

merged 4 commits into from Oct 17, 2021

Conversation

MichaelDeBoey
Copy link
Member

@MichaelDeBoey MichaelDeBoey commented Sep 4, 2021

ESLint v8.0.0 is released 🎉

Dependencies should be compatible with ESLint 8 too before we can merge this one:

devDependency compatibility with ESLint 8:


Closes #462

Copy link
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

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

Some tweaks and we should get support for ESLint 8 ready.

.github/workflows/pipeline.yml Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
.eslintrc.json Outdated
Comment on lines 9 to 13
/** Temporary disable eslint-config-kentcdodds until it supports ESLint v8
* This package is a dependency of eslint-config-kentcdodds, so because it's
* a devDependency to our package, we need to support ESLint v8 first.
*/
// 'kentcdodds',
Copy link
Member

Choose a reason for hiding this comment

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

Ok so rather than this, since other plugins are failing with ESLint v8 too, it would be better to stick to ESLint v7 in our dev dependencies so we don't block the release of our v5 for some dev dependencies.

Let's downgrade ESLint to v7 in our dev dependencies then, re-enable kentcdodds plugin, and move the list of pending plugins to be compatible with ESLint v8 to a separate issue so when all are ready we can upgrade to v8 in our dev dependencies.

@@ -52,7 +52,7 @@ jobs:
strategy:
matrix:
node: [12.22.0, 12, 14.17.0, 14, '16.0', 16]
eslint: [7.5, 7]
eslint: [7.5, 7, 8]
Copy link
Member

Choose a reason for hiding this comment

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

By running this we make sure our plugin works for both ESLint v7 and v8 even if we use v7 in dev dependencies.

package.json Outdated
"cpy-cli": "^3.1.1",
"eslint": "^7.32.0",
"eslint-config-kentcdodds": "^19.1.1",
"eslint": "^8.0.0",
Copy link
Member

Choose a reason for hiding this comment

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

As mentioned in previous comment, let's put this back to v7 so we can go ahead with the release of our plugin v5:

Suggested change
"eslint": "^8.0.0",
"eslint": "^7.32.0",

@Belco90 Belco90 self-requested a review October 14, 2021 16:19
Copy link
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

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

Forgot to set the proper review status 😅

We need to separate ESLint the dev dependency from ESLint the peer dependency so we can go ahead with the plugin v5.

@Belco90 Belco90 marked this pull request as ready for review October 17, 2021 13:49
Copy link
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

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

I did the requested changes myself @MichaelDeBoey!

I'm moving to a different PR the upgrade of ESLint v8 in the dev dependencies, with all the list of pending plugins to get updated.

@Belco90 Belco90 merged commit 5b03edb into alpha Oct 17, 2021
@Belco90 Belco90 deleted the eslint-8 branch October 17, 2021 14:00
@github-actions
Copy link

🎉 This PR is included in version 5.0.0-alpha.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants