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

chore(linter): Add some more rules to the no-restricted-import rule #2955

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 1 commit into from
May 21, 2025

Conversation

markrickert
Copy link
Member

Description

Adds two useful rules to the eslint config for no-restricted-imports:

  1. We include react-native-safe-area-view and should always use the SafeAreaView from that library instead of from react-native
  2. We have our own custom Text, TextField (TextInput), and Button components. Add rules to disallow these from react-native to ensure developers are using the components that ship with ignite and not importing from react-native.

Checklist

  • I have manually tested this, including by generating a new app locally (see docs).

@markrickert markrickert force-pushed the mrickert/no-restricted-imports branch from 8d4ef67 to 9cef074 Compare May 21, 2025 16:56
@markrickert markrickert force-pushed the mrickert/no-restricted-imports branch from 9cef074 to 120c685 Compare May 21, 2025 17:09
@markrickert markrickert merged commit 7c21b91 into master May 21, 2025
3 checks passed
@markrickert markrickert deleted the mrickert/no-restricted-imports branch May 21, 2025 17:14
@infinitered-circleci
Copy link
Contributor

🎉 This PR is included in version 10.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants