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

chore: bump ESLint and migrate to new config format #1033

Merged
merged 4 commits into from
Nov 24, 2023
Merged

Conversation

tido64
Copy link
Member

@tido64 tido64 commented Nov 22, 2023

Summary

Bump ESLint and migrate to new config format

Test Plan

CI should pass.

@tido64 tido64 requested a review from krizzu as a code owner November 22, 2023 16:31
package.json Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Member

@krizzu krizzu left a comment

Choose a reason for hiding this comment

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

Thanks for that 🙏

@tido64 tido64 enabled auto-merge (squash) November 23, 2023 12:13
@tido64 tido64 disabled auto-merge November 23, 2023 12:31
},
},
...compat.config(wdio.configs.recommended),
...compat.extends("plugin:@rnx-kit/recommended", "plugin:wdio/recommended"),
Copy link
Member

Choose a reason for hiding this comment

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

nit: Is there a way to separate those two actually? we only need WDIO in default-storage, so maybe we can extend our config with wdio there?

Copy link
Member Author

@tido64 tido64 Nov 23, 2023

Choose a reason for hiding this comment

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

This is a separate config file:

// packages/api/eslint.config.js
module.exports = require("@react-native-async-storage/eslint-config");

// packages/default-storage/eslint.config.js
module.exports = require("@react-native-async-storage/eslint-config/recommended-wdio");

Edit: I was going to make recommended-wdio import from the default one, but it would require us to create two FlatCompat objects instead. Once this PR lands, I will come back and make this more obvious: microsoft/rnx-kit#2813

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good

@tido64 tido64 merged commit becbe96 into main Nov 24, 2023
9 checks passed
@tido64 tido64 deleted the tido/bump-eslint branch November 24, 2023 07:38
@AsyncStorageBot
Copy link
Collaborator

🎉 This PR is included in version 1.20.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.

3 participants