这是indexloc提供的服务,不要输入任何密码
Skip to content

Better ESLint configuration examples #1172

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

Merged
merged 6 commits into from
May 3, 2022

Conversation

nathanhammond
Copy link
Contributor

Our eslint configurations in examples were not actually relying on the eslint-recommended approach to sharing configurations and were instead directly requiring files. This switches the approach to what ESLint would recommend.

Originally detected by @darrylblake in #1151, this corrects all of our examples.

@vercel
Copy link

vercel bot commented May 3, 2022

@nathanhammond is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented May 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
turbo-site ✅ Ready (Inspect) Visit Preview May 3, 2022 at 11:17AM (UTC)

@nathanhammond nathanhammond force-pushed the better-eslint-config branch 4 times, most recently from 3895d4e to cbc4d65 Compare May 3, 2022 10:29
@nathanhammond nathanhammond force-pushed the better-eslint-config branch from cbc4d65 to 54b1fa2 Compare May 3, 2022 10:57
@kodiakhq kodiakhq bot merged commit 3ff28fd into vercel:main May 3, 2022
nathanhammond added a commit that referenced this pull request May 3, 2022
Followup to #1172 (tweak all the ESLint things!) and #1174 (much better name) we have one spot that needs re-linking.
jaredpalmer pushed a commit that referenced this pull request May 3, 2022
Followup to #1172 (tweak all the ESLint things!) and #1174 (much better name) we have one spot that needs re-linking.
@nathanhammond nathanhammond deleted the better-eslint-config branch May 4, 2022 00:50
@AbdallahAbis
Copy link
Contributor

@nathanhammond Can you please explain how does extends: ["acme"] links to eslint-config-acme? cause I couldn't find any package named acme.

@nathanhammond
Copy link
Contributor Author

@AbdallahAbis Check out ESLint's docs on shareable configurations: https://eslint.org/docs/developer-guide/shareable-configs

@AbdallahAbis
Copy link
Contributor

@nathanhammond Thank you! just figured that out and was going to update my comment, but you already answer. thanks for the fast reply.

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.

3 participants