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``
This commit is contained in:
Guillaume Gomez 2022-05-21 11:39:49 +02:00 committed by GitHub
commit e5c7b21f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,5 +38,13 @@ module.exports = {
"error",
{ "before": true, "after": true }
],
"arrow-spacing": [
"error",
{ "before": true, "after": true }
],
"key-spacing": [
"error",
{ "beforeColon": false, "afterColon": true, "mode": "strict" }
],
}
};