X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=eslint%2Fdocs%2Frules%2Fsymbol-description.md;h=7743867d29078e7c712d896a8c04fdc7a3d60238;hb=34eeec05c48d011f9a080215e348245aed3c0db1;hp=61be8767ed5765a86b7d26a679bf77ca0a236bc0;hpb=7a730cb60189b4b2b4c0e167797d9aa1ccf15ea6;p=pve-eslint.git diff --git a/eslint/docs/rules/symbol-description.md b/eslint/docs/rules/symbol-description.md index 61be876..7743867 100644 --- a/eslint/docs/rules/symbol-description.md +++ b/eslint/docs/rules/symbol-description.md @@ -9,7 +9,6 @@ var someString = "some description"; var bar = Symbol(someString); ``` - Using `description` promotes easier debugging: when a symbol is logged the description is used: ```js @@ -21,12 +20,10 @@ var foo = Symbol("some description"); It may facilitate identifying symbols when one is observed during debugging. - ## Rule Details This rules requires a description when creating symbols. - ## Examples Examples of **incorrect** code for this rule: @@ -50,7 +47,6 @@ var someString = "some description"; var bar = Symbol(someString); ``` - ## When Not To Use It This rule should not be used in ES3/5 environments.