From d81ed3c22322cd6c3072a91bd8f945e44a347dda Mon Sep 17 00:00:00 2001 From: Douglas Wade Date: Tue, 5 Dec 2023 16:35:50 -0800 Subject: [PATCH] fix(NOBUG): I forgot to include the rule in the plugin --- packages/eslint-plugin/src/rules/index.ts | 2 ++ packages/website/pages/eslint-plugin.md | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/rules/index.ts b/packages/eslint-plugin/src/rules/index.ts index 9856324c..3d5087eb 100644 --- a/packages/eslint-plugin/src/rules/index.ts +++ b/packages/eslint-plugin/src/rules/index.ts @@ -1,5 +1,7 @@ const componentNamesAreMultiWord = require('./component-names-are-multi-word.js'); +const renderVariablesAreExported = require('./render-variables-are-exported'); module.exports = { 'component-names-are-multi-word': componentNamesAreMultiWord, + 'render-variables-are-exported': renderVariablesAreExported }; diff --git a/packages/website/pages/eslint-plugin.md b/packages/website/pages/eslint-plugin.md index a04a5dfd..0bc78e54 100644 --- a/packages/website/pages/eslint-plugin.md +++ b/packages/website/pages/eslint-plugin.md @@ -27,8 +27,12 @@ module.exports = { ## Available rules -We currently only have one rule, but we plan to add more! +We currently only have two rules, but we plan to add more! ### Component names are multi-word Checks to make sure that your component has a multi-word name (a name that contains an en-dash `-`). This is a requirement [from the spec](https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name). + +## Render variables are exported + +Checks to make sure that the variables you are using in your render function were exported, either as a prop or from a `setup` function.