Skip to content

Commit 77e1b35

Browse files
trevinhofmannljharb
authored andcommitted
[Fix] no-danger-with-children/style-prop-object/no-adjacent-inline-elements: add category, URL
1 parent a137a04 commit 77e1b35

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/rules/no-adjacent-inline-elements.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
'use strict';
77

8+
const docsUrl = require('../util/docsUrl');
9+
810
// ------------------------------------------------------------------------------
911
// Helpers
1012
// ------------------------------------------------------------------------------
@@ -76,7 +78,8 @@ module.exports = {
7678
docs: {
7779
description: 'Prevent adjacent inline elements not separated by whitespace.',
7880
category: 'Best Practices',
79-
recommended: false
81+
recommended: false,
82+
url: docsUrl('no-adjacent-inline-elements')
8083
},
8184
schema: []
8285
},

lib/rules/no-danger-with-children.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
meta: {
1717
docs: {
1818
description: 'Report when a DOM element is using both children and dangerouslySetInnerHTML',
19-
category: '',
19+
category: 'Possible Errors',
2020
recommended: true,
2121
url: docsUrl('no-danger-with-children')
2222
},

lib/rules/style-prop-object.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
meta: {
1717
docs: {
1818
description: 'Enforce style prop value is an object',
19-
category: '',
19+
category: 'Possible Errors',
2020
recommended: false,
2121
url: docsUrl('style-prop-object')
2222
},

0 commit comments

Comments
 (0)