Browse Source

Enable arrow-spacing

Require spaces around arrow in arrow functions, like they are
required around keywords if, else, in, do, etc.

http://eslint.org/docs/rules/arrow-spacing

Change-Id: I1b8f2b4ed3619f0e8565a79ddcd439fa7851b5ad
tags/2.0.0
Vitaly Kramskikh 3 years ago
parent
commit
80c4ef29b0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

@@ -859,7 +859,7 @@ rules:
859 859
 
860 860
   # require space before/after arrow function's arrow
861 861
   # http://eslint.org/docs/rules/arrow-spacing
862
-  arrow-spacing: 0
862
+  arrow-spacing: 2
863 863
 
864 864
   # verify calls of super() in constructors
865 865
   # http://eslint.org/docs/rules/constructor-super

Loading…
Cancel
Save