From 5ea5873b77092cc99971e97b2c5ef78ad19cf0ff Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Mon, 8 Jan 2018 16:35:22 -0800 Subject: [PATCH] Add URL to rule documentation to the metadata ESLint v4.15.0 added an official location for rules to store a URL to their documentation in the rule metadata in eslint/eslint#9788. This adds the URL to all the existing rules so anything consuming them can know where their documentation is without having to resort to external packages to guess. --- lib/rules/attribute-hyphenation.js | 3 ++- lib/rules/comment-directive.js | 3 ++- lib/rules/html-closing-bracket-newline.js | 3 ++- lib/rules/html-closing-bracket-spacing.js | 3 ++- lib/rules/html-end-tags.js | 3 ++- lib/rules/html-indent.js | 3 ++- lib/rules/html-quotes.js | 3 ++- lib/rules/html-self-closing.js | 3 ++- lib/rules/jsx-uses-vars.js | 3 ++- lib/rules/max-attributes-per-line.js | 3 ++- lib/rules/mustache-interpolation-spacing.js | 3 ++- lib/rules/name-property-casing.js | 3 ++- lib/rules/no-async-in-computed-properties.js | 3 ++- lib/rules/no-confusing-v-for-v-if.js | 3 ++- lib/rules/no-dupe-keys.js | 3 ++- lib/rules/no-duplicate-attributes.js | 3 ++- lib/rules/no-multi-spaces.js | 3 ++- lib/rules/no-parsing-error.js | 3 ++- lib/rules/no-reserved-keys.js | 3 ++- lib/rules/no-shared-component-data.js | 3 ++- lib/rules/no-side-effects-in-computed-properties.js | 3 ++- lib/rules/no-template-key.js | 3 ++- lib/rules/no-textarea-mustache.js | 3 ++- lib/rules/no-unused-vars.js | 3 ++- lib/rules/order-in-components.js | 3 ++- lib/rules/require-component-is.js | 3 ++- lib/rules/require-default-prop.js | 3 ++- lib/rules/require-prop-types.js | 3 ++- lib/rules/require-render-return.js | 3 ++- lib/rules/require-v-for-key.js | 3 ++- lib/rules/require-valid-default-prop.js | 3 ++- lib/rules/return-in-computed-property.js | 3 ++- lib/rules/script-indent.js | 3 ++- lib/rules/this-in-template.js | 3 ++- lib/rules/v-bind-style.js | 3 ++- lib/rules/v-on-style.js | 3 ++- lib/rules/valid-template-root.js | 3 ++- lib/rules/valid-v-bind.js | 3 ++- lib/rules/valid-v-cloak.js | 3 ++- lib/rules/valid-v-else-if.js | 3 ++- lib/rules/valid-v-else.js | 3 ++- lib/rules/valid-v-for.js | 3 ++- lib/rules/valid-v-html.js | 3 ++- lib/rules/valid-v-if.js | 3 ++- lib/rules/valid-v-model.js | 3 ++- lib/rules/valid-v-on.js | 3 ++- lib/rules/valid-v-once.js | 3 ++- lib/rules/valid-v-pre.js | 3 ++- lib/rules/valid-v-show.js | 3 ++- lib/rules/valid-v-text.js | 3 ++- 50 files changed, 100 insertions(+), 50 deletions(-) diff --git a/lib/rules/attribute-hyphenation.js b/lib/rules/attribute-hyphenation.js index 94ddf2f2d..5dec55b99 100644 --- a/lib/rules/attribute-hyphenation.js +++ b/lib/rules/attribute-hyphenation.js @@ -59,7 +59,8 @@ module.exports = { meta: { docs: { description: 'enforce attribute naming style in template', - category: 'strongly-recommended' + category: 'strongly-recommended', + url: 'https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/attribute-hyphenation.md' }, fixable: 'code', schema: [ diff --git a/lib/rules/comment-directive.js b/lib/rules/comment-directive.js index 1e53749d4..d9a890d0e 100644 --- a/lib/rules/comment-directive.js +++ b/lib/rules/comment-directive.js @@ -124,7 +124,8 @@ module.exports = { meta: { docs: { description: 'support comment-directives in `