Skip to content

Commit b1f2b6f

Browse files
flyerhzmljharb
authored andcommitted
[Docs] add missing urls
1 parent 4e26092 commit b1f2b6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/rules/jsx-max-depth.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
const has = require('has');
88
const variableUtil = require('../util/variable');
9+
const docsUrl = require('../util/docsUrl');
910

1011
// ------------------------------------------------------------------------------
1112
// Rule Definition
@@ -15,7 +16,8 @@ module.exports = {
1516
docs: {
1617
description: 'Validate JSX maximum depth',
1718
category: 'Stylistic Issues',
18-
recommended: false
19+
recommended: false,
20+
url: docsUrl('jsx-max-depth')
1921
},
2022
schema: [
2123
{

lib/rules/jsx-sort-default-props.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'use strict';
66

77
const variableUtil = require('../util/variable');
8+
const docsUrl = require('../util/docsUrl');
89

910
// ------------------------------------------------------------------------------
1011
// Rule Definition
@@ -15,7 +16,8 @@ module.exports = {
1516
docs: {
1617
description: 'Enforce default props alphabetical sorting',
1718
category: 'Stylistic Issues',
18-
recommended: false
19+
recommended: false,
20+
url: docsUrl('jsx-sort-default-props')
1921
},
2022

2123
schema: [{

0 commit comments

Comments
 (0)