Commit ab0a6ca
committed
eslint: Add missing
All examples in README.md seem to agree on avoiding missing whitespaces
before keywords such as:
if (cond) {
}else { // no space before 'else'
}
try {
}catch (e) { // no space before 'catch'
}
This patchs adds the `space-before-keywords` rule as an error (as is
`space-after-keywords` already).space-before-keywords rule1 parent 89d1e07 commit ab0a6ca
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
0 commit comments