Skip to content

Commit ae83f8b

Browse files
authored
Rollup merge of rust-lang#97218 - GuillaumeGomez:eslint-checks, r=notriddle
Add eslint checks The first check is to ensure that `=>` is always surrounded with whitespaces. The second is to ensure that the dict objects looks like this: `{"a": 2}` and not `{"a" : 2}` or `{"a":2}`. r? `@notriddle`
2 parents f3cfe33 + 116c5a2 commit ae83f8b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustdoc/html/static/.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,13 @@ module.exports = {
3838
"error",
3939
{ "before": true, "after": true }
4040
],
41+
"arrow-spacing": [
42+
"error",
43+
{ "before": true, "after": true }
44+
],
45+
"key-spacing": [
46+
"error",
47+
{ "beforeColon": false, "afterColon": true, "mode": "strict" }
48+
],
4149
}
4250
};

0 commit comments

Comments
 (0)