Skip to content

Commit

Permalink
Update expensify.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis authored Mar 12, 2023
1 parent d3126ce commit 5b216cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rules/expensify.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ module.exports = {
'no-restricted-imports': ['error', {
paths: [{
name: 'react-native',
importNames: ['Button', 'Text', 'TextInput', 'Picker', 'SafeAreaView'],
importNames: ['Button', 'Text', 'TextInput', 'Picker'],
message: 'Please use an Expensify component from src/components/ instead.',
}, {
name: 'react-native',
importNames: ['SafeAreaView'],
message: 'Please use SafeAreaView from react-native-safe-area-context',
}],
}],
},
Expand Down

0 comments on commit 5b216cc

Please sign in to comment.