From 77e1b35802676529817c99dde5a0238aae6da8e0 Mon Sep 17 00:00:00 2001 From: Trevin Hofmann Date: Sat, 26 Dec 2020 11:21:22 -1000 Subject: [PATCH] [Fix] `no-danger-with-children`/`style-prop-object`/`no-adjacent-inline-elements`: add category, URL --- lib/rules/no-adjacent-inline-elements.js | 5 ++++- lib/rules/no-danger-with-children.js | 2 +- lib/rules/style-prop-object.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/rules/no-adjacent-inline-elements.js b/lib/rules/no-adjacent-inline-elements.js index bdddd79bef..76a65845b8 100644 --- a/lib/rules/no-adjacent-inline-elements.js +++ b/lib/rules/no-adjacent-inline-elements.js @@ -5,6 +5,8 @@ 'use strict'; +const docsUrl = require('../util/docsUrl'); + // ------------------------------------------------------------------------------ // Helpers // ------------------------------------------------------------------------------ @@ -76,7 +78,8 @@ module.exports = { docs: { description: 'Prevent adjacent inline elements not separated by whitespace.', category: 'Best Practices', - recommended: false + recommended: false, + url: docsUrl('no-adjacent-inline-elements') }, schema: [] }, diff --git a/lib/rules/no-danger-with-children.js b/lib/rules/no-danger-with-children.js index 95c15e460e..a58dc7d365 100644 --- a/lib/rules/no-danger-with-children.js +++ b/lib/rules/no-danger-with-children.js @@ -16,7 +16,7 @@ module.exports = { meta: { docs: { description: 'Report when a DOM element is using both children and dangerouslySetInnerHTML', - category: '', + category: 'Possible Errors', recommended: true, url: docsUrl('no-danger-with-children') }, diff --git a/lib/rules/style-prop-object.js b/lib/rules/style-prop-object.js index e963f50398..1330b04272 100644 --- a/lib/rules/style-prop-object.js +++ b/lib/rules/style-prop-object.js @@ -16,7 +16,7 @@ module.exports = { meta: { docs: { description: 'Enforce style prop value is an object', - category: '', + category: 'Possible Errors', recommended: false, url: docsUrl('style-prop-object') },