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: 10 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T08:44:34.000Z (almost 2 years ago)
- Last Synced: 2024-12-13T22:52:14.901Z (14 days 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