From 030598db094c56b67cf9627cce836b0a0381f883 Mon Sep 17 00:00:00 2001 From: felipethome Date: Thu, 4 Aug 2016 14:13:12 -0300 Subject: [PATCH] [guide] Add ESlint rules to 'always use const' and 'decriptive variable names' topics --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7faa68e2..909cbbf0 100644 --- a/README.md +++ b/README.md @@ -1299,7 +1299,7 @@ Other Style Guides ## Variables - - [13.1](#variables--const) Always use `const` to declare variables. Not doing so will result in global variables. We want to avoid polluting the global namespace. Captain Planet warned us of that. + - [13.1](#variables--const) Always use `const` to declare variables. Not doing so will result in global variables. We want to avoid polluting the global namespace. Captain Planet warned us of that. eslint: [`no-undef`](http://eslint.org/docs/rules/no-undef) [`prefer-const`](http://eslint.org/docs/rules/prefer-const) ```javascript // bad @@ -2327,7 +2327,7 @@ Other Style Guides ## Naming Conventions - - [22.1](#naming--descriptive) Avoid single letter names. Be descriptive with your naming. + - [22.1](#naming--descriptive) Avoid single letter names. Be descriptive with your naming. eslint: [`id-length`](http://eslint.org/docs/rules/id-length) ```javascript // bad