How to use the @reshadow/utils.tags function in @reshadow/utils

To help you get started, we’ve selected a few @reshadow/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lttb / reshadow / packages / eslint / rules / as-attribute / index.js View on Github external
) {
                        value = attrValue.expression.quasis[0].value.raw;
                    } else if (options.onlyString) {
                        context.report({
                            node: asAttr.value,
                            message:
                                '`as` attribute should be the static string',
                        });

                        return;
                    }
                } else {
                    value = attrValue.value;
                }

                if (options.onlyExisting && !utils.tags.has(value)) {
                    context.report({
                        node: asAttr.value,
                        message: 'Nonexistent html tag',
                    });
                }
            },
        };

@reshadow/utils

reshadow utils package

MIT
Latest version published 2 years ago

Package Health Score

49 / 100
Full package analysis

Similar packages