Skip to content

Commit

Permalink
Add cspell (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrearden authored Jul 15, 2020
1 parent eb2d9e9 commit c343ff6
Show file tree
Hide file tree
Showing 3 changed files with 464 additions and 6 deletions.
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

0 comments on commit c343ff6

Please sign in to comment.