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: use flat config & eslint v9 #152

Merged
merged 8 commits into from
Jun 1, 2024
Merged

chore: use flat config & eslint v9 #152

merged 8 commits into from
Jun 1, 2024

Conversation

ota-meshi
Copy link
Member

No description provided.

@ota-meshi ota-meshi requested a review from a team April 21, 2024 23:49
@@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install Packages
run: npm i
run: npm i -f
Copy link
Contributor

Choose a reason for hiding this comment

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

nits: you can add force=true to the .npmrc, to avoid repeating. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you! I didn't know that. That's useful.

},
},
globals: {
// ES2015 globals
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need to specify es globals - in flat mode, they should have been enabled by default.

"n/file-extension-in-import": [
"error",
"always",
{ ".js": "never", ".ts": "never", ".tsx": "never" },
Copy link
Contributor

Choose a reason for hiding this comment

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

if you are using esm, it's recommended to always write extensions.

languageOptions: {
ecmaVersion: 2015,
globals: {
ArrayBuffer: "readonly",
Copy link
Contributor

Choose a reason for hiding this comment

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

same here.

@ota-meshi
Copy link
Member Author

Thank you for the review! I've made some changes to this PR.

Copy link
Contributor

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@aladdin-add aladdin-add merged commit cb02ded into master Jun 1, 2024
13 checks passed
@aladdin-add aladdin-add deleted the flat-config branch June 1, 2024 05:37
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.

None yet

2 participants