From bbd59f800b1d47adf5f93dfb05ef745451aaaa73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Tue, 4 Apr 2017 22:38:12 +0200 Subject: [PATCH] Catch undeclared vars with eslint. --- .eslintrc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index c99e79880..889b5477a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,7 +2,8 @@ module.exports = { 'extends': ['plugin:import/errors'], 'plugins': ['import'], 'env': { - 'es6': true + 'es6': true, + 'node': true }, 'parserOptions': { 'ecmaVersion': 6, @@ -47,6 +48,8 @@ module.exports = { 'no-trailing-spaces': ['error'], + 'no-undef': ['error'], + 'no-unused-vars': ['error', { 'args': 'none', 'vars': 'all'