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: override semicolon lint rule #1656

Merged
merged 1 commit into from
Oct 4, 2022
Merged

chore: override semicolon lint rule #1656

merged 1 commit into from
Oct 4, 2022

Conversation

orinokai
Copy link
Contributor

@orinokai orinokai commented Oct 4, 2022

There appears to be a conflict between @typescript-eslint/no-extra-semi (which is part of the @typescript-eslint/recommended config) and the prettier rule semi: false.

The prettier rule will add a semicolon in the following instance to protect from ASI failures.

https://github.com/netlify/next-runtime/blob/main/packages/runtime/src/helpers/config.ts#L95

However, the linter then complains because of the no-extra-semi rule.

Since we are removing semicolons anyway, I think we can safely disable the no-extra-semi rule.

@orinokai orinokai added the type: chore work needed to keep the product and development running smoothly label Oct 4, 2022
@orinokai orinokai requested a review from a team October 4, 2022 11:31
@orinokai orinokai self-assigned this Oct 4, 2022
@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/633c1976e7c55b000812a062
😎 Deploy Preview https://deploy-preview-1656--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/633c1976e7c55b000812a067
😎 Deploy Preview https://deploy-preview-1656--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/633c19762575c4000a92dc20
😎 Deploy Preview https://deploy-preview-1656--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for next-hp-edge-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/next-hp-edge-demo/deploys/633c197663907800086fdb5a
😎 Deploy Preview https://deploy-preview-1656--next-hp-edge-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/633c197635b422000919832f
😎 Deploy Preview https://deploy-preview-1656--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/633c197635b4220009198334
😎 Deploy Preview https://deploy-preview-1656--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for next-plugin-rsc-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-rsc-demo/deploys/633c19762575c4000a92dc25
😎 Deploy Preview https://deploy-preview-1656--next-plugin-rsc-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/633c19767a6ee60008d32de3
😎 Deploy Preview https://deploy-preview-1656--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/633c1976e92bf80008c8f20c
😎 Deploy Preview https://deploy-preview-1656--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/633c1976e92bf80008c8f211
😎 Deploy Preview https://deploy-preview-1656--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit fdb3fdc
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/633c197635b4220009198339
😎 Deploy Preview https://deploy-preview-1656--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

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

Should this also be disabled in the shared eslint package?

@orinokai
Copy link
Contributor Author

orinokai commented Oct 4, 2022

@ascorbic Yes indeed, I popped a PR in there earlier netlify/eslint-config-node#585

@kodiakhq kodiakhq bot merged commit f5b293c into main Oct 4, 2022
@kodiakhq kodiakhq bot deleted the rs/fix-lint-semi-tule branch October 4, 2022 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants