8000 feat: import the `check-help-links` ESLint rule by valerybugakov · Pull Request #117 · sourcegraph/codemod · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@valerybugakov
Copy link
Member

Context

This PR migrates the existing check-help-links ESLint rule from the Sourcegraph repo to this one. The purpose of this work is to test the ESLint plugin integration. After that, the new custom rule will be added to this repo that will warn on the usage of specific React elements. E.g., react/warn-elements.

It's not currently possible to reuse the react/forbid-elements rule for warnings because of the limitations of the ESLint API. It would allow us to warn on the usage of patterns that we want to deprecate. E.g., while the Input migration is not yet completed, we can ask engineers to use the Input component over the input element today.

Test plan

  1. cd packages/eslint-plugin && yarn link
  2. cd main-sourcegraph-repo && yarn link "@sourcegraph/eslint-plugin-sourcegraph"

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

0