UNPKG

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

Version:

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

18 lines (17 loc) • 463 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isSafeStyleObject = isSafeStyleObject; var _isSafeProperty = require("./is-safe-property"); function isSafeStyleValue(value) { if (value.type === 'Literal') { return true; } return false; } function isSafeStyleObject(object) { return object.properties.every(function (property) { return (0, _isSafeProperty.isSafeProperty)(property, isSafeStyleValue); }); }