X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=eslint%2Fdocs%2Frules%2Fno-empty-function.md;h=19110312a64aaedd6bb91fb7379246ac1d57fdc5;hb=34eeec05c48d011f9a080215e348245aed3c0db1;hp=0f8691c82d3b1243289c13753b96288c06eaa35b;hpb=7a730cb60189b4b2b4c0e167797d9aa1ccf15ea6;p=pve-eslint.git diff --git a/eslint/docs/rules/no-empty-function.md b/eslint/docs/rules/no-empty-function.md index 0f8691c..1911031 100644 --- a/eslint/docs/rules/no-empty-function.md +++ b/eslint/docs/rules/no-empty-function.md @@ -180,7 +180,7 @@ This rule has an option to allow specific kinds of functions to be empty. * `"asyncFunctions"` - Async functions. * `"asyncMethods"` - Async class methods and method shorthands of object literals. -#### allow: functions +### allow: functions Examples of **correct** code for the `{ "allow": ["functions"] }` option: @@ -196,7 +196,7 @@ var obj = { }; ``` -#### allow: arrowFunctions +### allow: arrowFunctions Examples of **correct** code for the `{ "allow": ["arrowFunctions"] }` option: @@ -207,7 +207,7 @@ Examples of **correct** code for the `{ "allow": ["arrowFunctions"] }` option: var foo = () => {}; ``` -#### allow: generatorFunctions +### allow: generatorFunctions Examples of **correct** code for the `{ "allow": ["generatorFunctions"] }` option: @@ -224,7 +224,7 @@ var obj = { }; ``` -#### allow: methods +### allow: methods Examples of **correct** code for the `{ "allow": ["methods"] }` option: @@ -242,7 +242,7 @@ class A { } ``` -#### allow: generatorMethods +### allow: generatorMethods Examples of **correct** code for the `{ "allow": ["generatorMethods"] }` option: @@ -260,7 +260,7 @@ class A { } ``` -#### allow: getters +### allow: getters Examples of **correct** code for the `{ "allow": ["getters"] }` option: @@ -278,7 +278,7 @@ class A { } ``` -#### allow: setters +### allow: setters Examples of **correct** code for the `{ "allow": ["setters"] }` option: @@ -296,7 +296,7 @@ class A { } ``` -#### allow: constructors +### allow: constructors Examples of **correct** code for the `{ "allow": ["constructors"] }` option: @@ -309,7 +309,7 @@ class A { } ``` -#### allow: asyncFunctions +### allow: asyncFunctions Examples of **correct** code for the `{ "allow": ["asyncFunctions"] }` options: @@ -320,7 +320,7 @@ Examples of **correct** code for the `{ "allow": ["asyncFunctions"] }` options: async function a(){} ``` -#### allow: asyncMethods +### allow: asyncMethods Examples of **correct** code for the `{ "allow": ["asyncMethods"] }` options: