diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-09-19 17:42:20 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-09-20 02:38:38 -0500 |
commit | 4242122a4782fdefe4805529e3a41ad0cdb4665b (patch) | |
tree | 2847ad287d88028b00544209fe9f01e9d5bd5bf1 /.eslintrc.yml | |
parent | 3f51ec2124037177b446d620c41441673f17f161 (diff) | |
download | gitlab-ce-4242122a4782fdefe4805529e3a41ad0cdb4665b.tar.gz |
Upgrade eslint to v5
We needed to disable a few eslint-config-airbnb-base rules in order
to keep the number of line changes under control. These should be
re-enabled asap.
Diffstat (limited to '.eslintrc.yml')
-rw-r--r-- | .eslintrc.yml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml index ebf8048f19c..ba637649409 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -56,6 +56,10 @@ rules: component: always svg: always math: always + camelcase: + - error + - properties: never + ignoreDestructuring: true ## Conflicting rules with prettier: space-before-function-paren: off curly: off @@ -63,7 +67,7 @@ rules: function-paren-newline: off object-curly-newline: off padded-blocks: off - # Disabled for now, to make the eslint 3 -> eslint 4 update smoother + # Disabled for now, to make the eslint 3 -> eslint 5 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: @@ -78,3 +82,11 @@ rules: FunctionExpression: parameters: 1 body: 1 + # Disabled for now, to make the airbnb-base 12.1.0 -> 13.1.0 update smoother + operator-linebreak: off + implicit-arrow-linebreak: off + no-else-return: + - error + - allowElseIf: true + import/no-useless-path-segments: off + lines-between-class-members: off |