diff options
author | Lukas Eipert <leipert@gitlab.com> | 2018-05-28 11:24:00 +0200 |
---|---|---|
committer | Lukas Eipert <leipert@gitlab.com> | 2018-05-29 18:42:21 +0200 |
commit | ef849c6ce7165dd7a9ac10b72eebbd273b8f92e3 (patch) | |
tree | 832810b7fbff9e92aac5e724681288f350e04335 | |
parent | 0692be4c3b235e9affa09e03965431f92f3f62f6 (diff) | |
download | gitlab-ce-ef849c6ce7165dd7a9ac10b72eebbd273b8f92e3.tar.gz |
use the old indent-rule for now
-rw-r--r-- | .eslintrc.yml | 14 |
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 |