Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add Animated.Text to allowed rules list
  • Loading branch information
ahartzog committed Apr 14, 2019
commit fc13427bd809c73a3a7ef0b881af738059bb4c52
2 changes: 1 addition & 1 deletion lib/rules/no-raw-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = (context) => {
};

const skippedElements = options.skip ? options.skip : [];
const allowedElements = ['Text', 'TSpan', 'StyledText'].concat(skippedElements);
const allowedElements = ['Text', 'TSpan', 'StyledText', 'Animated.Text'].concat(skippedElements);

const hasOnlyLineBreak = value => /^[\r\n\t\f\v]+$/.test(value.replace(/ /g, ''));

Expand Down