From 7b834b989c9829ba0693ff7e3c74eb5ec058c18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Fri, 30 Oct 2015 17:00:14 +0100 Subject: [PATCH] eslint: Fix `no-mixed-spaces-and-tabs` turn off Currently the way the rule is defined, mixing spaces and tabulations in indentation is allowed. However, the comments and documents seems to say the opposite. This patchs turns the rule on so mixing spaces and tabs is NOT allowed. Fixes: #539 --- packages/eslint-config-airbnb/rules/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-config-airbnb/rules/style.js b/packages/eslint-config-airbnb/rules/style.js index 68d76d4c..6fce4672 100644 --- a/packages/eslint-config-airbnb/rules/style.js +++ b/packages/eslint-config-airbnb/rules/style.js @@ -49,7 +49,7 @@ module.exports = { // disallow if as the only statement in an else block 'no-lonely-if': 0, // disallow mixed spaces and tabs for indentation - 'no-mixed-spaces-and-tabs': 0, + 'no-mixed-spaces-and-tabs': 2, // disallow multiple empty lines 'no-multiple-empty-lines': [2, {'max': 2}], // disallow nested ternary expressions