From b1f2b6fb45f6e22eb1996af40d040ec20c8b7a39 Mon Sep 17 00:00:00 2001 From: Richard Huang Date: Fri, 6 Jul 2018 08:47:06 +0800 Subject: [PATCH] [Docs] add missing urls --- lib/rules/jsx-max-depth.js | 4 +++- lib/rules/jsx-sort-default-props.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/rules/jsx-max-depth.js b/lib/rules/jsx-max-depth.js index b5b3723733..9341a6d970 100644 --- a/lib/rules/jsx-max-depth.js +++ b/lib/rules/jsx-max-depth.js @@ -6,6 +6,7 @@ const has = require('has'); const variableUtil = require('../util/variable'); +const docsUrl = require('../util/docsUrl'); // ------------------------------------------------------------------------------ // Rule Definition @@ -15,7 +16,8 @@ module.exports = { docs: { description: 'Validate JSX maximum depth', category: 'Stylistic Issues', - recommended: false + recommended: false, + url: docsUrl('jsx-max-depth') }, schema: [ { diff --git a/lib/rules/jsx-sort-default-props.js b/lib/rules/jsx-sort-default-props.js index 967e0e419f..cb917dd0ac 100644 --- a/lib/rules/jsx-sort-default-props.js +++ b/lib/rules/jsx-sort-default-props.js @@ -5,6 +5,7 @@ 'use strict'; const variableUtil = require('../util/variable'); +const docsUrl = require('../util/docsUrl'); // ------------------------------------------------------------------------------ // Rule Definition @@ -15,7 +16,8 @@ module.exports = { docs: { description: 'Enforce default props alphabetical sorting', category: 'Stylistic Issues', - recommended: false + recommended: false, + url: docsUrl('jsx-sort-default-props') }, schema: [{