@uxfront/oxfmt-config 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/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @uxfront/oxfmt-config
2
+
3
+ Shared [oxfmt](https://oxc.rs/docs/guide/usage/formatter) configuration.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ pnpm add -D oxfmt @uxfront/oxfmt-config
9
+ ```
10
+
11
+ Create an `oxfmt.config.ts`. oxfmt has no `extends`, so spread the shared config and override what you need:
12
+
13
+ ```ts
14
+ import { defineConfig } from "oxfmt";
15
+ import base from "@uxfront/oxfmt-config";
16
+
17
+ export default defineConfig({
18
+ ...base,
19
+ });
20
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import type { OxfmtConfig } from "oxfmt";
2
+
3
+ declare const config: OxfmtConfig;
4
+ export default config;
package/index.js ADDED
@@ -0,0 +1,18 @@
1
+ import { defineConfig } from "oxfmt";
2
+
3
+ export default defineConfig({
4
+ printWidth: 100,
5
+ semi: true,
6
+ singleQuote: false,
7
+ trailingComma: "all",
8
+ sortImports: {},
9
+ sortPackageJson: true,
10
+ ignorePatterns: [
11
+ "**/dist/**",
12
+ "**/.nuxt/**",
13
+ "**/.output/**",
14
+ "**/.turbo/**",
15
+ "**/coverage/**",
16
+ "pnpm-lock.yaml",
17
+ ],
18
+ });
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@uxfront/oxfmt-config",
3
+ "version": "0.1.0",
4
+ "description": "Shared oxfmt configuration for uxfront projects",
5
+ "license": "MIT",
6
+ "files": [
7
+ "*.js",
8
+ "*.d.ts"
9
+ ],
10
+ "type": "module",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./index.d.ts",
14
+ "default": "./index.js"
15
+ }
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "devDependencies": {
21
+ "oxfmt": "^0.70.0"
22
+ },
23
+ "peerDependencies": {
24
+ "oxfmt": "^0.70.0"
25
+ }
26
+ }