From 4d5517b1d3f70ce9a4e03e3a94147316fb88df88 Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Sun, 13 Jun 2021 21:41:18 -0700 Subject: [PATCH] docs: add links for deprecated and new styles in `prefer-object-rule` rule --- docs/rules/prefer-object-rule.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/prefer-object-rule.md b/docs/rules/prefer-object-rule.md index 5ddd6def..9013a5d3 100644 --- a/docs/rules/prefer-object-rule.md +++ b/docs/rules/prefer-object-rule.md @@ -4,7 +4,7 @@ ## Rule Details -The rule reports an error if it encounters a rule that's defined using the old style of just a `create` function. +The rule reports an error if it encounters a rule that's defined using the [deprecated style](https://eslint.org/docs/developer-guide/working-with-rules-deprecated) of just a `create` function instead of the newer [object style](https://eslint.org/docs/developer-guide/working-with-rules). Examples of **incorrect** code for this rule: