Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 0b317a0

Browse files
committed
Add cspell checker
1 parent 4745f60 commit 0b317a0

File tree

9 files changed

+525
-72
lines changed

9 files changed

+525
-72
lines changed

.babelrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]],
33
"plugins": [
4-
"./resources/load-staticly-from-npm.js",
4+
"./resources/load-statically-from-npm.js",
55
"@babel/plugin-transform-flow-strip-types"
66
]
77
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ the parameters:
157157
provided raw JSON will always be returned instead of GraphiQL even when
158158
loaded from a browser.
159159

160-
GraphQL will first look for each parameter in the URL's query-string:
160+
GraphQL will first look for each parameter in the query string of a URL:
161161

162162
```
163163
/graphql?query=query+getUser($id:ID){user(id:$id){name}}&variables={"id":"4"}
@@ -286,7 +286,7 @@ for example:
286286

287287
GraphQL's [validation phase](https://graphql.github.io/graphql-spec/#sec-Validation) checks the query to ensure that it can be successfully executed against the schema. The `validationRules` option allows for additional rules to be run during this phase. Rules are applied to each node in an AST representing the query using the Visitor pattern.
288288

289-
A validation rule is a function which returns a visitor for one or more node Types. Below is an example of a validation preventing the specific fieldname `metadata` from being queried. For more examples see the [`specifiedRules`](https://github.com/graphql/graphql-js/tree/master/src/validation/rules) in the [graphql-js](https://github.com/graphql/graphql-js) package.
289+
A validation rule is a function which returns a visitor for one or more node Types. Below is an example of a validation preventing the specific field name `metadata` from being queried. For more examples see the [`specifiedRules`](https://github.com/graphql/graphql-js/tree/master/src/validation/rules) in the [graphql-js](https://github.com/graphql/graphql-js) package.
290290

291291
```js
292292
import { GraphQLError } from 'graphql';

cspell.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"language": "en",
3+
"ignorePaths": [
4+
// Copied from '.gitignore', please keep it in sync.
5+
".eslintcache",
6+
"node_modules",
7+
"coverage",
8+
"dist",
9+
"integrationTmp",
10+
11+
// Excluded from spelling check
12+
"cspell.json",
13+
"package.json",
14+
"package-lock.json",
15+
"tsconfig.json"
16+
],
17+
"words": [
18+
"graphiql",
19+
"unfetch",
20+
"noindex",
21+
"codecov",
22+
"recognise",
23+
"serializable",
24+
"subcommand",
25+
"charsets",
26+
27+
// TODO: remove bellow words
28+
"Graphi", // GraphiQL
29+
"QL's" // GraphQL's
30+
]
31+
}

0 commit comments

Comments
 (0)