Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isExportBlock,
isStandardSyntaxDeclaration,
isStandardSyntaxProperty,
isString,
kebabCase,
namespace,
optionsMatches
} from "../../utils";
export const ruleName = namespace("css-property-no-unknown");
export const messages = utils.ruleMessages(ruleName, {
rejected: property => `无效的 React Native 样式属性 "${property}"`
});
const props = allCSS2RNProps.map(kebabCase);
export default function(actual, options) {
return function(root, result) {
const validOptions = utils.validateOptions(
result,
ruleName,
{
actual
},
{
actual: options,
possible: {
ignoreProperties: [isString]
},
optional: true
}
isExportBlock,
isStandardSyntaxDeclaration,
isStandardSyntaxProperty,
isString,
kebabCase,
namespace,
optionsMatches
} from "../../utils";
export const ruleName = namespace("css-property-no-unknown");
export const messages = utils.ruleMessages(ruleName, {
rejected: property => `Unexpected unknown property "${property}"`
});
const props = allCSS2RNProps.map(kebabCase);
export default function(actual, options) {
return function(root, result) {
const validOptions = utils.validateOptions(
result,
ruleName,
{
actual
},
{
actual: options,
possible: {
ignoreProperties: [isString]
},
optional: true
}