Skip to content

Commit 6e03d33

Browse files
committed
Add cspell checker
1 parent d6a6262 commit 6e03d33

9 files changed

+1304
-774
lines changed

.babelrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
presets: [['@babel/preset-env', { targets: { node: '12' } }]],
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
overrides: [

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ the parameters:
165165
provided raw JSON will always be returned instead of GraphiQL even when
166166
loaded from a browser.
167167

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

170170
```
171171
/graphql?query=query+getUser($id:ID){user(id:$id){name}}&variables={"id":"4"}
@@ -205,7 +205,7 @@ const session = require('koa-session');
205205
const graphqlHTTP = require('koa-graphql');
206206

207207
const app = new Koa();
208-
app.keys = ['some secret hurr'];
208+
app.keys = ['some secret'];
209209
app.use(session(app));
210210
app.use(function* (next) {
211211
this.session.id = 'me';
@@ -259,7 +259,7 @@ const graphqlHTTP = require('koa-graphql');
259259

260260
const app = new Koa();
261261

262-
app.keys = ['some secret hurr'];
262+
app.keys = ['some secret'];
263263
app.use(session(app));
264264

265265
const extensions = ({
@@ -365,7 +365,7 @@ router.all(
365365
);
366366
```
367367

368-
[List of available CodeMirror themas](https://codemirror.net/demo/theme.html)
368+
[List of available CodeMirror themes](https://codemirror.net/demo/theme.html)
369369

370370
or an object with `url` and `name` properties where `url` should lead to
371371
your custom theme and `name` would be passed to the `GraphiQL`
@@ -392,7 +392,7 @@ For details see the [GraphiQL spec](https://github.com/graphql/graphiql/tree/mas
392392

393393
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.
394394

395-
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/main/src/validation/rules) in the [graphql-js](https://github.com/graphql/graphql-js) package.
395+
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/main/src/validation/rules) in the [graphql-js](https://github.com/graphql/graphql-js) package.
396396

397397
```js
398398
import { GraphQLError } from 'graphql';

cspell.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
"flow-typed",
10+
"__tests__",
11+
12+
// Excluded from spelling check
13+
"cspell.json",
14+
"package.json",
15+
"package-lock.json",
16+
"tsconfig.json"
17+
],
18+
"words": [
19+
"graphiql",
20+
"unfetch",
21+
"noindex",
22+
"codecov",
23+
"recognise",
24+
"serializable",
25+
"subcommand",
26+
"charsets",
27+
"downlevel",
28+
29+
// TODO: remove bellow words
30+
"Graphi", // GraphiQL
31+
"QL's", // GraphQL's
32+
"graphql's" // express-graphql's
33+
]
34+
}

0 commit comments

Comments
 (0)