![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Unofficial fork, intended to provide some additional options to help improve consistency with feross/standard
and Flet/semistandard
. This fork is an attempt to pick up where arijs/prettier-miscellaneous
left off.
Language parsers are supported as if this were prettier
version 1.15.3
/ 1.16.0
; old language parsers are deprecated as if this were prettier
version 1.15.3
/ 1.16.0
.
Minimum Node.js version: 6
Quick CLI usage:
prettierx <options> <file(s)>
Option | Default value | CLI Override | API Override | Description |
---|---|---|---|---|
Align object properties | false | --align-object-properties | alignObjectProperties: <bool> | Align colons in multiline object literals (not applied with any of the JSON parsers). |
Space before function parentheses | false | --space-before-function-paren | spaceBeforeFunctionParen: <bool> | Put a space before function parenthesis. |
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). |
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. |
The following options should be used to format the code according to standard js:
--generator-star-spacing
(generatorStarSpacing: true
)--space-before-function-paren
(spaceBeforeFunctionParen: true
)--single-quote
(singleQuote: true
)--jsx-single-quote
(jsxSingleQuote: true
)--no-semi
(semi: false
)--yield-star-spacing
(yieldStarSpacing: true
)Note that this tool does not follow any of the other standard js rules. It is recommended to use this tool together with eslint, in some form, to achive correct formatting according to standard js.
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
foo(
reallyLongArg(),
omgSoManyParameters(),
IShouldRefactorThis(),
isThereSeriouslyAnotherOne()
);
See CONTRIBUTING.md.
prettierx 0.3.0
compare prettierx-0.2.1...prettierx-0.3.0
FAQs
prettierX - a less opinionated fork of the Prettier code formatter
The npm package prettierx receives a total of 0 weekly downloads. As such, prettierx popularity was classified as not popular.
We found that prettierx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.