UNPKG

eslint-plugin-logical-properties

Version:
5 lines (4 loc) 190 B
export const isValidProperty = (property) => (property.type === 'Property' && ((property.key.type === 'Identifier') || (property.key.type === 'Literal')) && property.value);