Skip to content

Commit 0eccff2

Browse files
authored
chore: fix various typos across the project
1 parent f3495ff commit 0eccff2

22 files changed

+23
-23
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If applicable, add screenshots to help explain your problem.
2626
**Desktop (please complete the following information):**
2727

2828
- SVGO Version [e.g. 3.3.2]
29-
- NodeJs Version [e.g 16.16.0]
29+
- Node.js Version [e.g 16.16.0]
3030
- OS: [e.g. iOS]
3131

3232
**Additional context**

docs/02-usage/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ We officially support four interfaces for SVGO:
1212

1313
## Community
1414

15-
Thanks to the community who have integrated, wrapped, or otherwise adapated SVGO to play well with other tools, and ultimately made SVGO more accessible for everyone.
15+
Thanks to the community who have integrated, wrapped, or otherwise adapted SVGO to play well with other tools, and ultimately made SVGO more accessible for everyone.
1616

1717
This section showcases reputable projects that are stable and well maintained. Please check the project's website for more information on how to use it.
1818

1919
### Integrations
2020

21-
Depending on your project stack, you may want to try one of these integrations to seemlessly incorporate SVGO into your workflow:
21+
Depending on your project stack, you may want to try one of these integrations to seamlessly incorporate SVGO into your workflow:
2222

2323
- [SVGR](https://react-svgr.com/) - Webpack loader that optimizes and transforms SVGs into React components.
2424
- [grunt-svgmin](https://www.npmjs.com/package/grunt-svgmin) - Grunt task to optimize SVGs.

docs/04-plugins/cleanupIds.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ svgo:
2121
defaultPlugin: true
2222
---
2323

24-
Removes unused IDs, and minifys IDs that are referenced by other elements.
24+
Removes unused IDs, and minifies IDs that are referenced by other elements.
2525

2626
By default, we back off from removing and minifying IDs if a `<script>` or `<style>` element is present in the document. You can bypass this behavior by setting the `force` parameter to `true`.
2727

docs/04-plugins/convertOneStopGradients.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ svgo:
66

77
Converts the [`<linearGradient>`](https://developer.mozilla.org/docs/Web/SVG/Element/linearGradient) and [`<radialGradient>`](https://developer.mozilla.org/docs/Web/SVG/Element/radialGradient) nodes that are effectively a solid color to the color.
88

9-
These nodes contain [`<stop>`](https://developer.mozilla.org/docs/Web/SVG/Element/stop) elements, which represent various colors to transition between. However, if a gradient only contains a single `<stop>`, then it's effecitively a solid fill.
9+
These nodes contain [`<stop>`](https://developer.mozilla.org/docs/Web/SVG/Element/stop) elements, which represent various colors to transition between. However, if a gradient only contains a single `<stop>`, then it's effectively a solid fill.
1010

1111
Definitions of the gradients are removed, and the parent [`<defs>`](https://developer.mozilla.org/docs/Web/SVG/Element/defs) node is removed if it has no children after optimization. The `xlink:href` namespace is also removed if there are no remaining elements using this attribute.

docs/04-plugins/convertStyleToAttrs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ svgo:
99
default: false
1010
---
1111

12-
Converts [presentation attributes](https://developer.mozilla.org/docs/Web/SVG/Attribute/Presentation) in element styles to the equvilent XML attribute.
12+
Converts [presentation attributes](https://developer.mozilla.org/docs/Web/SVG/Attribute/Presentation) in element styles to the equivalent XML attribute.
1313

1414
Presentation attributes can be used in both attributes and styles, but in most cases it'll take fewer bytes to use attributes. Consider the following:
1515

docs/04-plugins/prefixIds.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
};
3939
```
4040

41-
However, a solution like this can not gurantee a reproducible prefix. Unpredictable IDs can pose an issue for tooling, namely React, and anything that depends on it like Next.js and Docusaurus.
41+
However, a solution like this can not guarantee a reproducible prefix. Unpredictable IDs can pose an issue for tooling, namely React, and anything that depends on it like Next.js and Docusaurus.
4242

4343
With unpredictable IDs, if you're prerendering or use SSR (Server-Side Rendering), the client-side and server-side HTML may mismatch, leading to errors on client-side and regenerating the tree.
4444

docs/04-plugins/removeEditorsNSData.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ This plugin is completely safe to use before redistributing your SVG or incorpor
1515

1616
The kinds of elements that are removed are usually editor specific workspace settings. You should keep a backup of your original SVG to preserve that meta-data and continue to maintain your SVG, while you serve the optimized version to users.
1717

18-
You can find a list of removed editor namespaces in [`_collections.js`](https://github.com/search?q=repo%3Asvg%2Fsvgo+editorNamespaces&type=code), which includes software like [Inkscape](https://inkscape.org/), Adobe Illustator, and Figma.
18+
You can find a list of removed editor namespaces in [`_collections.js`](https://github.com/search?q=repo%3Asvg%2Fsvgo+editorNamespaces&type=code), which includes software like [Inkscape](https://inkscape.org/), Adobe Illustrator, and Figma.

docs/04-plugins/sortAttrs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ svgo:
2525
- 'd'
2626
- 'points'
2727
xmlnsOrder:
28-
description: Set to `'front'` if XML namespaces should be placed infront of all other attributes.
28+
description: Set to `'front'` if XML namespaces should be placed in front of all other attributes.
2929
default: 'front'
3030
---
3131

lib/svgo.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export type Output = {
9595
export declare const _collections: {
9696
elemsGroups: Readonly<Record<string, Set<string>>>;
9797
/**
98-
* Elements where adding or removing whitespace may effect rendering, metadata,
98+
* Elements where adding or removing whitespace may affect rendering, metadata,
9999
* or semantic meaning.
100100
*
101101
* @see https://developer.mozilla.org/docs/Web/HTML/Element/pre

lib/xast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const visit = (node, visitor, parentNode) => {
5252
}
5353
// visit root children
5454
if (node.type === 'root') {
55-
// copy children array to not loose cursor when children is spliced
55+
// copy children array to not lose cursor when children is spliced
5656
for (const child of node.children) {
5757
visit(child, visitor, node);
5858
}

0 commit comments

Comments
 (0)