Skip to content

Commit

Permalink
website: spell check js code, add twitterImage
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 22, 2020
1 parent 0e26eae commit e23e5cc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
31 changes: 26 additions & 5 deletions cspell.json
Expand Up @@ -2,8 +2,10 @@
"version": "0.1",
"words": [
"ACMR",
"algolia",
"Amjad",
"Andrey",
"animationend",
"apos",
"aquibm",
"arduner",
Expand Down Expand Up @@ -96,6 +98,7 @@
"ENOENT",
"ericsakmar",
"Ericsburgh",
"errored",
"Esben",
"esbenp",
"eslint's",
Expand Down Expand Up @@ -149,6 +152,7 @@
"Horky",
"hotpink",
"hsla",
"htmlblock",
"htmlhint",
"hugomrdias",
"hwba",
Expand Down Expand Up @@ -242,20 +246,24 @@
"noncharacters",
"nonenumerable",
"nonspacing",
"noopener",
"noreferrer",
"normalise",
"normalised",
"nrvtbfux",
"nullability",
"nullish",
"Nuno",
"nvim",
"octicon",
"Okazaki",
"Okonetchnikov",
"oneth",
"onurtemizkan",
"onwarn",
"Oopsy",
"overparenthesization",
"overscroll",
"packagejson",
"Panasenko",
"Pangsakulyanont",
Expand All @@ -270,6 +278,7 @@
"pomber",
"postprocess",
"postprocessor",
"precache",
"precommit",
"prefetch",
"preorder",
Expand Down Expand Up @@ -299,8 +308,8 @@
"refmt",
"regexes",
"reimplement",
"repo's",
"repo",
"repo's",
"repos",
"reselect",
"rhengles",
Expand All @@ -309,11 +318,13 @@
"rreverser",
"ruleset",
"rulesets",
"sandhose",
"Sapegin",
"sbdchd",
"scandir",
"schemastore",
"serializer",
"serviceworker",
"setlocal",
"shellscape",
"shellsession",
Expand Down Expand Up @@ -349,8 +360,9 @@
"templating",
"tempy",
"tgriesser",
"tidelift’s",
"tidelift",
"tidelift’s",
"tldr",
"Tomasek",
"Tradeshift",
"Transloadit",
Expand All @@ -359,6 +371,7 @@
"TSJS",
"Typeahead",
"typecasted",
"typecheck",
"typeof",
"udbff",
"udfff",
Expand All @@ -370,6 +383,7 @@
"uncook",
"uniqby",
"unist",
"unmount",
"unparenthesised",
"unparenthesized",
"unparseable",
Expand All @@ -384,13 +398,13 @@
"vanguarding",
"versary",
"vimrc",
"vjeux's",
"vjeux",
"vjeux's",
"vnopts",
"Voyer",
"Vue's",
"Wadler's",
"Wadler",
"Wadler's",
"warrenseine",
"webstorm",
"whitespaces",
Expand All @@ -410,5 +424,12 @@
"\\[`\\w+`\\]",
"ve{2,}r{2,}y",
"ve+r+y+long\\w*"
],
"ignorePaths": [
"**/node_modules/**",
"website/build/**",
"website/playground/codeSamples.js",
"website/static/lib/**",
"website/static/playground.js"
]
}
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -125,7 +125,7 @@
"lint:changelog": "node ./scripts/lint-changelog.js",
"lint:prettier": "prettier \"**/*.{md,json,yml,html,css}\" --check",
"lint:dist": "eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 \"dist/!(bin-prettier|index|third-party).js\"",
"lint:spellcheck": "cspell {bin,scripts,src}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md",
"lint:spellcheck": "cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md",
"lint:deps": "node ./scripts/check-deps.js",
"build": "node --max-old-space-size=3072 ./scripts/build/build.js",
"build-docs": "node ./scripts/build-docs.js"
Expand Down
2 changes: 1 addition & 1 deletion website/playground/Playground.js
Expand Up @@ -236,7 +236,7 @@ class Playground extends React.Component {
<ClipboardButton
copy={JSON.stringify(
// Remove `parser` since people usually paste this
// into their .prettierrc and specifying a toplevel
// into their .prettierrc and specifying a top-level
// parser there is an anti-pattern. Note:
// `JSON.stringify` omits keys whose values are
// `undefined`.
Expand Down
3 changes: 3 additions & 0 deletions website/siteConfig.js
Expand Up @@ -86,6 +86,9 @@ const siteConfig = {
separateCss: ["static/separate-css"],
gaTrackingId: "UA-111350464-1",
twitter: true,
twitterUsername: "PrettierCode",
twitterImage: "icon.png",
ogImage: "icon.png",
onPageNav: "separate",
};

Expand Down

0 comments on commit e23e5cc

Please sign in to comment.