@zetavg/prettier-config 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/eslint.config.mjs +5 -0
- package/index.js +8 -0
- package/package.json +20 -0
- package/prettier.config.mjs +3 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Prettier Config
|
|
2
|
+
|
|
3
|
+
Shared Prettier configurations.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add @zetavg/prettier-config --dev
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Then, add the following to your `prettier.config.mjs`:
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import defaultConfig from '@zetavg/prettier-config';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @type {import("prettier").Config}
|
|
18
|
+
*/
|
|
19
|
+
const config = {
|
|
20
|
+
...defaultConfig,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default config;
|
|
24
|
+
```
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zetavg/prettier-config",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint .",
|
|
7
|
+
"pack-package": "yarn pack",
|
|
8
|
+
"publish-packed-package": "npm publish package.tgz --access public",
|
|
9
|
+
"clean": "rm -rf package.tgz"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"prettier": "^3"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@zetavg/eslint-config": "workspace:^",
|
|
16
|
+
"eslint": "^9",
|
|
17
|
+
"prettier": "^3"
|
|
18
|
+
},
|
|
19
|
+
"version": "0.0.1"
|
|
20
|
+
}
|