Skip to content
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

Add cspell #282

Merged
merged 1 commit into from
Jul 15, 2020
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
52 changes: 52 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"language": "en",
"ignorePaths": [
// Copied from '.gitignore', please keep it in sync.
".eslintcache",
"node_modules",
"coverage",
"dist",

// Excluded from spelling check
"cspell.json",
"package.json",
"package-lock.json",
"tsconfig.json"
],
"words": [
"arrayconnection",
"connectiontypes",
"rederives",
"refetchability",
"refetches",
"unbase",
"unbased",

// Different words used inside tests

"millenium",
"corellian",
"bwing",
"xwing",
"ywing",
"dschafer",
"leebyron",
"schrockn",
"Ghvd",
"Glvbjox",
"Glvbjoy",
"Gxlczog",
"Nlcjox",
"Nlcjoy",
"Xljb",

// TODO: contribute upstream
"codecov",
"downlevel",
"transpilation",

// TODO: remove below words
"QL's", // GraphQL's
"QLID" // GraphQLID
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
"prepublish": "./resources/prepublish.sh",
"prettier": "prettier --write --list-different .",
"prettier:check": "prettier --check .",
"test": "npm run lint && npm run check && npm run testonly && npm run prettier:check",
"test": "npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling",
"testonly": "mocha src/**/__tests__/**/*.js",
"testonly:cover": "nyc npm run testonly",
"lint": "eslint .",
"check": "flow check",
"check:spelling": "cspell '**/*'",
"build": "node resources/build.js"
},
"peerDependencies": {
Expand All @@ -38,6 +39,7 @@
"@typescript-eslint/parser": "3.6.0",
"babel-eslint": "10.1.0",
"chai": "4.2.0",
"cspell": "4.0.63",
"eslint": "7.3.1",
"eslint-plugin-flowtype": "5.1.3",
"eslint-plugin-import": "2.21.2",
Expand Down
Loading