Skip to content

Commit

Permalink
prettierx: spellcheck *.md with spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brodybits committed Aug 11, 2020
1 parent 2baf7c0 commit 99d1c46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -484,7 +484,7 @@ export type a =

- yaml@1.8.3 explicitly in dependencies - needed for extra npm dist build test to keep working, due to an issue between @babel/parser & recent yaml@1.9.0 update
- update and fix some comments for prettierx-specific code
- remove lib enrty from package files (not needed)
- remove lib entry from package files (not needed)

[compare prettierx-0.11.2...dev](https://github.com/brodybits/prettierx/compare/prettierx-0.11.2...dev)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -39,7 +39,7 @@ prettierx <options> <file(s)>
| Spaces around the star (\*\) in generator functions | `false` | `--generator-star-spacing` | `generatorStarSpacing: <bool>` | Add spaces around the star (\*) in generator functions (before and after - from eslint). (Default is after only.) |
| Spaces around the star (\*\) in `yield*` expressions | `false` | `--yield-star-spacing` | `yieldStarSpacing: <bool>` | Add spaces around the star (\*) in yield\* expressions (before and after - from eslint). |
| Indent chains | `true` | `--no-indent-chains` | `indentChains: <bool>` | Print indents at the start of chained calls. |
| Align ternary lines | `true` | `--no-align-ternary-lines` | `alignTernaryLines: <bool>` | Align ternary lines in case of multiline ternery term (default behavior, which is in conflict with ESLint/StandardJS behavior). Should be disabled for consistency with ESLint/StandardJS behavior. |
| Align ternary lines | `true` | `--no-align-ternary-lines` | `alignTernaryLines: <bool>` | Align ternary lines in case of multiline ternary term (default behavior, which is in conflict with ESLint/StandardJS behavior). Should be disabled for consistency with ESLint/StandardJS behavior. |
| paren spacing | `false` | `--paren-spacing` | `parenSpacing: <bool>` | Print spaces between parens, WordPress style (not recommended with default `arrowParens: "always" setting). |
| break before else | `false` | `--break-before-else` | `breakBeforeElse: <bool>` | Always add a line break before else. |
| Formatting of import statements | `auto` | see [./docs/options.md](./docs/options.md) | see [./docs/options.md](./docs/options.md) | Formatting of import statements, may be `oneline` to avoid conflict with VSCode "Organize Imports" feature. |
Expand All @@ -57,7 +57,7 @@ The following options should be used to _format_ the code according to [standard
- `--no-align-ternary-lines` (`alignTernaryLines: false`)
- `--trailing-comma none` (`trailingComma: "none"`)

Note that this tool does _not_ follow any of the other [standard js](https://standardjs.com/) rules. It is recommended to use this tool together with eslint, in some form, to achive correct formatting according to [standard js](https://standardjs.com/).
Note that this tool does _not_ follow any of the other [standard js](https://standardjs.com/) rules. It is recommended to use this tool together with eslint, in some form, to archive correct formatting according to [standard js](https://standardjs.com/).

Any known conflicts with [standard js](https://standardjs.com/) will be tracked in [open issues with the `conflict-with-standard` tag](https://github.com/brodybits/prettierx/issues?q=is%3Aissue+label%3Aconflict-with-standard+is%3Aopen).

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -163,7 +163,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-prettierx|index|third-party).js\"",
"lint:spellcheck": "cspell {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md",
"lint:spellcheck": "cspell *.md {bin,scripts,src,website}/**/*.js {docs,website/blog,changelog_unreleased}/**/*.md",
"lint:deps": "node ./scripts/check-deps.js",
"build-extra-dist": "node --max-old-space-size=8192 ./scripts/build/build.js",
"build": "echo 'use build-extra-dist for prettierx' && exit 1",
Expand Down

0 comments on commit 99d1c46

Please sign in to comment.