summaryrefslogtreecommitdiff
path: root/.eslintrc.yml
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.yml')
-rw-r--r--.eslintrc.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 486e9b0195e..794afe0cf32 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -55,6 +55,20 @@ rules:
object-curly-newline: off
padded-blocks: off
# Disabled for now, to make the eslint 3 -> eslint 4 update smoother
+ ## Indent rule. We are using the old for now: https://eslint.org/docs/user-guide/migrating-to-4.0.0#indent-rewrite
+ indent: off
+ indent-legacy:
+ - error
+ - 2
+ - SwitchCase: 1
+ VariableDeclarator: 1
+ outerIIFEBody: 1
+ FunctionDeclaration:
+ parameters: 1
+ body: 1
+ FunctionExpression:
+ parameters: 1
+ body: 1
## Destructuring: https://eslint.org/docs/rules/prefer-destructuring
prefer-destructuring: off
## no-restricted-globals: https://eslint.org/docs/3.0.0/rules/no-restricted-globals