Browse Source

Enable keyword-spacing

This enforces a space before and after keywords such as else, if,
switch, case, catch, try, and import.

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

Change-Id: I71a9b0d3527ba7612b9af75a3a0e14eaf8b3665e
Michael Krotscheck 3 years ago
parent
commit
9ece5ec21d
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

@@ -640,7 +640,7 @@ rules:
640 640
 
641 641
   # enforce spacing before and after keywords
642 642
   # http://eslint.org/docs/rules/keyword-spacing
643
-  keyword-spacing: 0
643
+  keyword-spacing: 2
644 644
 
645 645
   # Enforces empty lines around comments
646 646
   # http://eslint.org/docs/rules/lines-around-comment

Loading…
Cancel
Save