Skip to content

Commit af50a0a

Browse files
committed
lint for spaces before colon
1 parent fb11825 commit af50a0a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

spec/Section 2 -- Language.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -566,14 +566,14 @@ will be present and `friends` will not.
566566

567567
```js
568568
{
569-
"profiles" : [
569+
"profiles": [
570570
{
571-
"handle" : "zuck",
572-
"friends" : { "count" : 1234 }
571+
"handle": "zuck",
572+
"friends": { "count" : 1234 }
573573
},
574574
{
575-
"handle" : "cocacola",
576-
"likers" : { "count" : 90234512 }
575+
"handle": "cocacola",
576+
"likers": { "count" : 90234512 }
577577
}
578578
]
579579
}

spec/Section 4 -- Introspection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ would return
3737
```js
3838
{
3939
"__type": {
40-
"name" : "User",
40+
"name": "User",
4141
"fields": [
4242
{
4343
"name": "id",
@@ -109,8 +109,8 @@ and `__type` which are accessible from the type of the root of a query
109109
operation.
110110

111111
```
112-
__schema : __Schema!
113-
__type(name: String!) : __Type
112+
__schema: __Schema!
113+
__type(name: String!): __Type
114114
```
115115

116116
These fields are implicit and do not appear in the fields list in the root type

spec/Section 5 -- Validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Dog implements Pet {
4242
name: String!
4343
nickname: String
4444
barkVolume: Int
45-
doesKnowCommand(dogCommand: DogCommand!) : Boolean!
45+
doesKnowCommand(dogCommand: DogCommand!): Boolean!
4646
isHousetrained(atOtherHomes: Boolean): Boolean!
4747
owner: Human
4848
}
@@ -69,7 +69,7 @@ enum CatCommand { JUMP }
6969
type Cat implements Pet {
7070
name: String!
7171
nickname: String
72-
doesKnowCommand(catCommand: CatCommand!) : Boolean!
72+
doesKnowCommand(catCommand: CatCommand!): Boolean!
7373
meowVolume: Int
7474
}
7575

0 commit comments

Comments
 (0)