diff --git a/README.md b/README.md index a3ef6320d..b6c7e8049 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Devographics Monorepo -This is the codebase that runs the Devographics surveys, such as [State of JS](http://stateofjs.com/) and [State of CSS](https://stateofcss.com/). +This is the codebase that runs the Devographics surveys, such as [State of JS](https://stateofjs.com/) and [State of CSS](https://stateofcss.com/). ## Setup diff --git a/capture/README.md b/capture/README.md index d523d8848..861ed05c3 100644 --- a/capture/README.md +++ b/capture/README.md @@ -71,7 +71,7 @@ The file `config/config.yml` should have the following structure: ```yaml # the base URL to use, can be either local or remote, baseUrl: http://localhost:9000 -# optionnaly if you want to use a local sitemap +# optionally if you want to use a local sitemap sitemap: './sitemap.yml' # configuration for mosaic generation mosaic: diff --git a/results-astro/src/lib/sitemap/sitemap.ts b/results-astro/src/lib/sitemap/sitemap.ts index 15fcaf14c..15dd4811b 100644 --- a/results-astro/src/lib/sitemap/sitemap.ts +++ b/results-astro/src/lib/sitemap/sitemap.ts @@ -35,7 +35,7 @@ interface BaseBlockDefinition { /** * A processed sitemap section, to be used in the result app - * (@devographis/types only expose the raw sitemap type that can be used by other apps) + * (@devographics/types only expose the raw sitemap type that can be used by other apps) * * TODO: work in progress * It's actually the type of a raw sitemap @@ -79,7 +79,7 @@ export interface PageDefinition { } } filters: Array<{ - conditons: Array<{ + conditions: Array<{ fieldId: "string", sectionId: string, operator: "in", diff --git a/results/node_src/create_pages.ts b/results/node_src/create_pages.ts index 8dcef0daf..d8218cf54 100644 --- a/results/node_src/create_pages.ts +++ b/results/node_src/create_pages.ts @@ -255,7 +255,7 @@ export const createPagesSingleLoop = async ({ createPage(pageObject) } - // also redirect "naked" paths (whithout a locale) to en-US + // also redirect "naked" paths (without a locale) to en-US // TODO: this doesn't seem to work during development createRedirect({ fromPath: getLocalizedPath(page.path, null), diff --git a/results/src/core/charts/hooks.ts b/results/src/core/charts/hooks.ts index 353fa3ecc..eb4ee86d7 100644 --- a/results/src/core/charts/hooks.ts +++ b/results/src/core/charts/hooks.ts @@ -32,7 +32,7 @@ const getMode = (units: Units, mode: Mode) => { } } -// get all of one type of unit for a buucket +// get all of one type of unit for a bucket // (count__1, count__2, etc. ) const getAllBucketUnits = (bucket: Bucket, unit: BucketUnits) => { const bucketWithAllOneUnits = pickBy(bucket, (value, key) => key.includes(unit)) diff --git a/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx b/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx index 8d70580d9..c710bcd1c 100644 --- a/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx +++ b/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx @@ -139,7 +139,7 @@ interface RankingChartProps { /* -Note: when displaying mulitple series via DynamicDataLoader +Note: when displaying multiple series via DynamicDataLoader we need to call processBlockData() again whenever the metric changes, which will not happen unless we call it from within the chart diff --git a/shared/permissions/permissions.test.ts b/shared/permissions/permissions.test.ts index 4c64dab6d..35b73b979 100644 --- a/shared/permissions/permissions.test.ts +++ b/shared/permissions/permissions.test.ts @@ -90,7 +90,7 @@ describe("vulcan:users/permissions", () => { expect(() => checkFields(null, Dummies, ["adminField"])).toThrow(); expect(checkFields(null, Dummies, ["guestField"])).toBe(true); }); - test("checkFields with document-based permissions do not throw for ambigous fields (those field need the document to be checked)", () => { + test("checkFields with document-based permissions do not throw for ambiguous fields (those field need the document to be checked)", () => { const res = checkFields(null, Dummies, [ "guestField", "ownerField", diff --git a/shared/permissions/permissions.ts b/shared/permissions/permissions.ts index 0a56d7072..d1f21d676 100644 --- a/shared/permissions/permissions.ts +++ b/shared/permissions/permissions.ts @@ -278,7 +278,7 @@ export const canFilterDocument = ( * Keep only fields readable by current user * * DOESN'T SUPPORT NESTING - * Use a second schema + cutom code for nesting + * Use a second schema + custom code for nesting * Remove restricted fields from a document * @param document * @param schema diff --git a/shared/permissions/typings.ts b/shared/permissions/typings.ts index eff0b18b2..27583a03a 100644 --- a/shared/permissions/typings.ts +++ b/shared/permissions/typings.ts @@ -58,7 +58,7 @@ export type PermissionChecker = ( export type PermissionDefinition = PermissionGroupString | PermissionChecker /** - * If a function is ommited, + * If a function is omitted, * only admin/server-side calls can read, set or update the value * */ diff --git a/surveyform/cypress/plugins/mail.js b/surveyform/cypress/plugins/mail.js index 808d6e769..9d29d81d9 100644 --- a/surveyform/cypress/plugins/mail.js +++ b/surveyform/cypress/plugins/mail.js @@ -14,7 +14,7 @@ module.exports = (on, config) => { mailServer.bind((addr, id, email) => { console.log("--- email ---"); console.log(addr, id, email); - // store the body for the email adress + // store the body for the email address lastEmail[email.headers.to] = email.html || email.body; }); console.log("mail server at port %d", port);