UNPKG

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

Version:

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

12 lines • 322 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(function (property) { return isSafeProperty(property, isSafeStyleValue); }); }