Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(website): auto-inject ban-types default options#7714

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@Josh-Cena
Copy link
Member

PR Checklist

Overview

Ideally I should use an actual parser to get thedefaultTypes, but there's no parser package readily installed in the website, so I thought this should do too.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@Josh-Cena!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedOct 1, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit3427afb
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/653162bd25cd9c0008f7ef4a
😎 Deploy Previewhttps://deploy-preview-7714--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to yourNetlify site configuration.

@Josh-CenaJosh-Cenaforce-pushed theinject-ban-types-default branch from03994ba tod6054faCompareOctober 1, 2023 19:26
@nx-cloud
Copy link

nx-cloudbot commentedOct 1, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit3427afb. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 19 targets

Sent with 💌 fromNxCloud.

}

// Insert default rule options for ban-types
if(file.stem==='ban-types'){

Choose a reason for hiding this comment

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

😬 I do dislike having such rule-specific things in this already kind of big file... what do you think about having an mdx component like<BanTypesDefaultOptions />?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

We already have file-specific handling for this page. This cannot be an MDX component because it has to work server-side and get statically injected instead of dynamically rendered.

Choose a reason for hiding this comment

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

Blurgh, I keep forgetting these things. MDX components don't work server-side? Is this mentioned in docs / one of the things blocked by MDX v2? (I searched and can't find it)

Copy link
MemberAuthor

@Josh-CenaJosh-CenaOct 9, 2023
edited
Loading

Choose a reason for hiding this comment

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

MDX components are basically React components. They can get server-rendered (through the same machinery that renders the rest of the page to HTML) but they can't access server data like files.

JoshuaKGoldberg reacted with thumbs up emoji
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Seems reasonable - I'll defer to you on Docusaurus things 😄

@JoshuaKGoldbergJoshuaKGoldberg changed the titlerefactor(website): auto-inject ban-types default optionsbuild(website): auto-inject ban-types default optionsOct 19, 2023
@JoshuaKGoldbergJoshuaKGoldberg changed the titlebuild(website): auto-inject ban-types default optionschore(website): auto-inject ban-types default optionsOct 19, 2023
@JoshuaKGoldbergJoshuaKGoldberg merged commit76ab373 intotypescript-eslint:mainOct 19, 2023
@Josh-CenaJosh-Cena deleted the inject-ban-types-default branchOctober 19, 2023 17:59
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsOct 27, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Docs: ban-types.md should pull in defaultTypes automatically

2 participants

@Josh-Cena@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp