From 51be232a7d60b181cda87c17b70e94b582538b55 Mon Sep 17 00:00:00 2001 From: Jack Harrhy Date: Fri, 27 Jul 2018 03:11:38 -0230 Subject: [PATCH] Docs: fix url-search-params documentation (#132) --- docs/rules/prefer-global/url-search-params.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/rules/prefer-global/url-search-params.md b/docs/rules/prefer-global/url-search-params.md index 51212490..5ec0c086 100644 --- a/docs/rules/prefer-global/url-search-params.md +++ b/docs/rules/prefer-global/url-search-params.md @@ -1,4 +1,4 @@ -# enforce either `URLSearchParams` or `require("url").URLSearchParams` (prefer-global/url) +# enforce either `URLSearchParams` or `require("url").URLSearchParams` (prefer-global/url-search-params) The `URLSearchParams` class of `url` module is defined as a global variable. @@ -18,7 +18,7 @@ This rule has a string option. ```json { - "node/prefer-global/url": ["error", "always" | "never"] + "node/prefer-global/url-search-params": ["error", "always" | "never"] } ``` @@ -30,7 +30,7 @@ This rule has a string option. Examples of :-1: **incorrect** code for this rule: ```js -/*eslint node/prefer-global/url: [error]*/ +/*eslint node/prefer-global/url-search-params: [error]*/ const { URLSearchParams } = require("url") const u = new URLSearchParams(s) @@ -39,7 +39,7 @@ const u = new URLSearchParams(s) Examples of :+1: **correct** code for this rule: ```js -/*eslint node/prefer-global/url: [error]*/ +/*eslint node/prefer-global/url-search-params: [error]*/ const u = new URLSearchParams(s) ``` @@ -49,7 +49,7 @@ const u = new URLSearchParams(s) Examples of :-1: **incorrect** code for the `"never"` option: ```js -/*eslint node/prefer-global/url: [error, never]*/ +/*eslint node/prefer-global/url-search-params: [error, never]*/ const u = new URLSearchParams(s) ``` @@ -57,7 +57,7 @@ const u = new URLSearchParams(s) Examples of :+1: **correct** code for the `"never"` option: ```js -/*eslint node/prefer-global/url: [error, never]*/ +/*eslint node/prefer-global/url-search-params: [error, never]*/ const { URLSearchParams } = require("url") const u = new URLSearchParams(s)