@jonmilner/oxfmt-config 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,5 @@
1
+ import type { UserConfig } from "vite-plus";
2
+ type Fmt = NonNullable<UserConfig["fmt"]>;
3
+ /** Formatting options shared by every project. Spread into the `fmt` block of vite.config.ts. */
4
+ export declare const fmt: Fmt;
5
+ export default fmt;
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ /** Formatting options shared by every project. Spread into the `fmt` block of vite.config.ts. */
2
+ export const fmt = {
3
+ printWidth: 100,
4
+ trailingComma: "all",
5
+ sortImports: {
6
+ newlinesBetween: false,
7
+ sortSideEffects: false,
8
+ ignoreCase: true,
9
+ },
10
+ ignorePatterns: [
11
+ "node_modules",
12
+ "dist",
13
+ "build",
14
+ ".react-router",
15
+ "coverage",
16
+ "pnpm-lock.yaml",
17
+ "storybook-static",
18
+ ],
19
+ };
20
+ export default fmt;
package/package.json CHANGED
@@ -1,6 +1,31 @@
1
1
  {
2
2
  "name": "@jonmilner/oxfmt-config",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Shared oxfmt options as a Vite+ fmt config object",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/jonmilner/config.git",
9
+ "directory": "packages/oxfmt-config"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "README.md"
14
+ ],
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ }
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "peerDependencies": {
26
+ "vite-plus": ">=1.1.0"
27
+ },
28
+ "scripts": {
29
+ "build": "tsc -p tsconfig.json"
30
+ }
6
31
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.