diff --git a/.eslintrc.js b/.eslintrc.js index b8f76a4f4..1f7f299aa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,5 @@ 'use strict' -const version = require('./package.json').version - module.exports = { root: true, parserOptions: { @@ -31,7 +29,7 @@ module.exports = { "consistent-docs-description": "error", "no-invalid-meta": "error", "require-meta-docs-url": ["error", { - "pattern": `https://github.com/vuejs/eslint-plugin-vue/blob/v${version}/docs/rules/{{name}}.md` + "pattern": `https://vuejs.github.io/eslint-plugin-vue/rules/{{name}}.html` }] } }] diff --git a/lib/rules/attribute-hyphenation.js b/lib/rules/attribute-hyphenation.js index f7acd68b4..36da22b5f 100644 --- a/lib/rules/attribute-hyphenation.js +++ b/lib/rules/attribute-hyphenation.js @@ -17,7 +17,7 @@ module.exports = { docs: { description: 'enforce attribute naming style on custom components in template', category: 'strongly-recommended', - url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0/docs/rules/attribute-hyphenation.md' + url: 'https://vuejs.github.io/eslint-plugin-vue/rules/attribute-hyphenation.html' }, fixable: 'code', schema: [ diff --git a/lib/rules/attributes-order.js b/lib/rules/attributes-order.js index 3d2a11f0e..31e2a21c4 100644 --- a/lib/rules/attributes-order.js +++ b/lib/rules/attributes-order.js @@ -107,7 +107,7 @@ module.exports = { docs: { description: 'enforce order of attributes', category: 'recommended', - url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0/docs/rules/attributes-order.md' + url: 'https://vuejs.github.io/eslint-plugin-vue/rules/attributes-order.html' }, fixable: 'code', schema: { diff --git a/lib/rules/comment-directive.js b/lib/rules/comment-directive.js index ac08ed0d8..1219aa894 100644 --- a/lib/rules/comment-directive.js +++ b/lib/rules/comment-directive.js @@ -110,7 +110,7 @@ module.exports = { docs: { description: 'support comment-directives in `