Skip to content

Add spellchecker #2297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ GraphQL.js is [MIT-licensed](https://github.com/graphql/graphql-js/blob/master/L

The `*.d.ts` files in this project are based on [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/54712a7e28090c5b1253b746d1878003c954f3ff/types/graphql) definitions written by:

<!--- spell-checker:disable -->

- TonyYang https://github.com/TonyPythoneer
- Caleb Meredith https://github.com/calebmer
- Dominic Watson https://github.com/intellix
Expand Down
85 changes: 85 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"language": "en",
"ignorePaths": [
"src/__fixtures__/github-schema.graphql",
"src/__fixtures__/github-schema.json"
],
"words": [
"jsutils",
"tsutils",
"iterall",
"noflow",

// Different names used inside tests
"Skywalker",
"Leia",
"Wilhuff",
"Tarkin",
"Artoo",
"Threepio",
"Odie",
"Odie's",
"Damerau",
"Alderaan",
"Tatooine",
"astromech",
"yuzhi",

// TODO: remove bellow words
"Graphi", // GraphiQL
"QL's", // GraphQL's
"QLIs", // GraphQLIs*
"QLID", // GraphQLID
"iface",
"Reqs",
"ORing",
"FXXX",
"XXXF",
"bfnrt",

// TODO: contribute to upstream dictionaries
"ASTs",
"adjacencies",
"bigint",
"bugfixes",
"contravariant",
"dedent",
"deserialized",
"dirent",
"docstring",
"erroring",
"filepath",
"filepaths",
"hardcoded",
"heredoc",
"lexable",
"lexed",
"lexes",
"lexing",
"memoed",
"memoization",
"memoized",
"memoizes",
"memoizing",
"nullability",
"nullish",
"passthrough",
"polyfill",
"promisify",
"pubsub",
"punctuator",
"punctuators",
"recurse",
"recursing",
"refetch",
"stateful",
"stringifies",
"subfields",
"subgraphs",
"subtrees",
"subtyped",
"superset",
"undefine",
"unparsed"
]
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"node": ">= 10.x"
},
"scripts": {
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly && npm run check:ts",
"test:ci": "yarn check --integrity && npm run prettier:check && npm run lint -- --no-cache && npm run check && npm run testonly:cover && npm run check:ts && npm run build",
"test": "npm run prettier:check && npm run lint && npm run check && npm run testonly && npm run check:ts && npm run check:spelling",
"test:ci": "yarn check --integrity && npm run prettier:check && npm run lint -- --no-cache && npm run check && npm run testonly:cover && npm run check:ts && npm run check:spelling && npm run build",
"testonly": "mocha --full-trace src/**/__tests__/**/*-test.js",
"testonly:cover": "nyc npm run testonly",
"lint": "eslint --cache src resources",
Expand All @@ -35,6 +35,7 @@
"check": "flow check",
"check:ts": "dtslint src",
"check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml",
"check:spelling": "cspell \"./{src/**/,resources**/,}*.{js,ts,md,graphql}\"",
"build": "node resources/build.js",
"changelog": "node resources/gen-changelog.js",
"preversion": ". ./resources/checkgit.sh",
Expand All @@ -52,6 +53,7 @@
"@babel/register": "7.6.2",
"babel-eslint": "10.0.3",
"chai": "4.2.0",
"cspell": "4.0.37",
"dtslint": "2.0.2",
"eslint": "6.7.2",
"eslint-plugin-flowtype": "4.5.2",
Expand Down
Loading