@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.
- package/dist/index.d.ts +5 -0
- package/dist/index.js +20 -0
- package/package.json +28 -3
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
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.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
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