UNPKG

@atlaskit/eslint-plugin-ui-styling-standard

Version:

The eslint plugin to enforce and educate on Atlassian's UI Styling Standard

10 lines • 296 B
import { isSafeProperty } from './is-safe-property'; function isSafeStyleValue(value) { if (value.type === 'Literal') { return true; } return false; } export function isSafeStyleObject(object) { return object.properties.every(property => isSafeProperty(property, isSafeStyleValue)); }