Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
block.forEach('declaration', function (dec) {
var prop = dec.first('property'),
name = prop.first('ident');
if (name) {
if (parser.options['ignore-custom-properties']) {
// lazy load our css property list
const propertyList = require('known-css-properties').all;
if (propertyList.indexOf(name.content) !== -1) {
properties[name.content] = prop;
}
}
else {
properties[name.content] = prop;
}
}
});
'use strict';
var helpers = require('../helpers');
var properties = require('known-css-properties').all;
// Keep track of our properties we need to skip from the gonzales loop
var skipProps = 0;
/**
* Combine the valid property array and the array of extras into a new array
*
* @param {Array} props - The list of default valid properties
* @param {Array} extras - The user specified list of valid properties
* @returns {Array} Combined list
*/
var getCombinedList = function (props, extras) {
return props.concat(extras);
};
/**
* Combines the base property name with the current property name to correct a full property name
*
export const OokConfig = ({
breakpoints = {},
cssProperties = knownCssProperties.all,
children,
}) => (
{ctx => {
return children
}}
)
"use strict";
const _ = require("lodash");
const isCustomProperty = require("../../utils/isCustomProperty");
const isStandardSyntaxDeclaration = require("../../utils/isStandardSyntaxDeclaration");
const isStandardSyntaxProperty = require("../../utils/isStandardSyntaxProperty");
const optionsMatches = require("../../utils/optionsMatches");
const postcss = require("postcss");
const properties = require("known-css-properties").all;
const report = require("../../utils/report");
const ruleMessages = require("../../utils/ruleMessages");
const validateOptions = require("../../utils/validateOptions");
const ruleName = "property-no-unknown";
const messages = ruleMessages(ruleName, {
rejected: property => `Unexpected unknown property "${property}"`
});
const rule = function(actual, options) {
return (root, result) => {
const validOptions = validateOptions(
result,
ruleName,
{ actual },