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

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
Collaborator

🎉 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.

4 participants