Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nickserv/create-prettierrc
Create a Prettier config based on the formatting of existing JavaScript code
https://github.com/nickserv/create-prettierrc
javascript jsx prettier
Last synced: 23 days ago
JSON representation
Create a Prettier config based on the formatting of existing JavaScript code
- Host: GitHub
- URL: https://github.com/nickserv/create-prettierrc
- Owner: nickserv
- Created: 2021-08-19T05:08:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T08:44:34.000Z (over 1 year ago)
- Last Synced: 2024-08-02T11:59:10.059Z (3 months ago)
- Topics: javascript, jsx, prettier
- Language: JavaScript
- Homepage:
- Size: 1.07 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# create-prettierrc
Create a Prettier config based on the formatting of existing JavaScript code
## Usage
```js
import createPrettierrc from "create-prettierrc";createPrettierrc('console.log("Hello, world!")');
``````json
{
"endOfLine": "lf",
"jsxSingleQuote": false,
"requirePragma": false,
"semi": true,
"singleQuote": false
}
```## Limitations
Currently supports a limited number of Prettier config options using only JavaScript and JSX (React) syntax