@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 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
+ ```
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from 'eslint/config';
2
+
3
+ import config from '@zetavg/eslint-config';
4
+
5
+ export default defineConfig([config]);
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @type {import("prettier").Config}
3
+ */
4
+ const config = {
5
+ singleQuote: true,
6
+ };
7
+
8
+ export default config;
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
+ }
@@ -0,0 +1,3 @@
1
+ import defaultConfig from './index.js';
2
+
3
+ export default defaultConfig;