Skip to content

Commit e5c7b21

Browse files
Rollup merge of #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 1210b50 + 116c5a2 commit e5c7b21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

+8
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)