diff --git a/README.md b/README.md index 970d304117..4f17b363a9 100644 --- a/README.md +++ b/README.md @@ -588,7 +588,7 @@ Other Style Guides ## Functions - - [7.1](#functions--declarations) Use function declarations instead of function expressions. jscs: [`requireFunctionDeclarations`](http://jscs.info/rule/requireFunctionDeclarations) + - [7.1](#functions--declarations) Use function declarations instead of function expressions. eslint: [`func-style`](http://eslint.org/docs/rules/func-style) jscs: [`requireFunctionDeclarations`](http://jscs.info/rule/requireFunctionDeclarations) > Why? Function declarations are named, so they're easier to identify in call stacks. Also, the whole body of a function declaration is hoisted, whereas only the reference of a function expression is hoisted. This rule makes it possible to always use [Arrow Functions](#arrow-functions) in place of function expressions. @@ -730,7 +730,7 @@ Other Style Guides ``` - - [7.10](#functions--constructor) Never use the Function constructor to create a new function. + - [7.10](#functions--constructor) Never use the Function constructor to create a new function. eslint: [`no-new-func`](http://eslint.org/docs/rules/no-new-func) > Why? Creating a function in this way evaluates a string similarly to eval(), which opens vulnerabilities.