From df8bc62bb1673c39aa5b178836133d4557c86971 Mon Sep 17 00:00:00 2001 From: Peter Velkov Date: Mon, 21 Nov 2016 19:36:11 +0200 Subject: [PATCH] chore(eslintrc): allow usage of function Allow usage of functions before their declaration Improves code readability eslint reference: http://eslint.org/docs/rules/no-use-before-define#options --- .eslintrc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 868329d..fb59de4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -182,7 +182,7 @@ module.exports = { "no-unmodified-loop-condition": "error", "no-unneeded-ternary": "error", "no-unused-expressions": "error", - "no-use-before-define": "error", + "no-use-before-define": ["error", "nofunc"], "no-useless-call": "error", "no-useless-computed-key": "error", "no-useless-concat": "error", @@ -273,4 +273,4 @@ module.exports = { "never" ] } -}; \ No newline at end of file +};