Skip to content

Conversation

@Simek
Copy link
Collaborator

@Simek Simek commented Jan 12, 2026

Why

Tried to run lint command inside one of plugins and spotted that the setup is broken and outputs errors.

Screenshot 2026-01-12 225427 Screenshot 2026-01-12 225418 Screenshot 2026-01-12 225402

Refs:

How

Replace unresolved TS config for React Native apps with manually defined one for Node + DOM. Fix incorrect paths in tests imports, migrate remark-lint-no-dead-urls to ts-jest, so it can parse correctly the plugin file. Add missing data-snack-device-appearance attribute in Snack plugin tape output.

I have also added the plugin checks to the CI pre-merge workflow to make sure we catch any issues with plugins earlier in the future.

Test plan

I have run yarn lint and yarn test in all plugin files, and made sure that all commands are not erroring out, and tests are passing.

@netlify
Copy link

netlify bot commented Jan 12, 2026

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 40b4004
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/69663f45e7f2ba00084b3dde
😎 Deploy Preview https://deploy-preview-4962--react-native.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 project configuration.

@Simek Simek changed the title plugins: fix TS setup and tests fix plugins TS setup and tests, update workflow Jan 12, 2026
@Simek Simek requested a review from cortinico January 12, 2026 22:32
Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +39 to +49
- name: Run remark-codeblock-language-as-title plugin checks
working-directory: plugins/remark-codeblock-language-as-title
run: yarn tsc

- name: Run remark-lint-no-dead-urls plugin checks
working-directory: plugins/remark-lint-no-dead-urls
run: yarn tsc && yarn test

- name: Run remark-snackplayer plugin checks
working-directory: plugins/remark-snackplayer
run: yarn tsc && yarn test
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: ideally we should have a script in the workspace package.json that takes care of tihs, rather than having to explicitely call yarn tsc and yarn test from the GH workflow

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea, will follow up on that!

@Simek Simek merged commit d06ae53 into main Jan 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants