@monke-together-strong/oxc-config 0.1.0 → 0.1.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 CHANGED
@@ -17,11 +17,11 @@ import { defineConfig } from "vite-plus";
17
17
 
18
18
  export default defineConfig({
19
19
  fmt: createOxfmtConfig({
20
- ignorePatterns: [".repo-specific-output"],
20
+ ignorePatterns: [".repo-specific-output"]
21
21
  }),
22
22
  lint: createOxlintConfig({
23
- ignorePatterns: [".repo-specific-output"],
24
- }),
23
+ ignorePatterns: [".repo-specific-output"]
24
+ })
25
25
  });
26
26
  ```
27
27
 
@@ -66,15 +66,15 @@ export default createOxlintConfig({
66
66
  {
67
67
  files: ["tests/unit/**"],
68
68
  rules: {
69
- "vitest/no-disabled-tests": "off",
70
- },
71
- },
69
+ "vitest/no-disabled-tests": "off"
70
+ }
71
+ }
72
72
  ],
73
73
  rules: {
74
- "no-console": "error",
74
+ "no-console": "error"
75
75
  },
76
76
  testFiles: ["tests/**/*.{ts,tsx}"],
77
- vitestExcludeFiles: ["tests/e2e/**/*.{ts,tsx}"],
77
+ vitestExcludeFiles: ["tests/e2e/**/*.{ts,tsx}"]
78
78
  });
79
79
  ```
80
80
 
package/dist/oxfmt.mjs CHANGED
@@ -6,6 +6,8 @@ function createOxfmtConfig(options = {}) {
6
6
  return {
7
7
  ...ultracite,
8
8
  printWidth: 100,
9
+ proseWrap: "preserve",
10
+ trailingComma: "none",
9
11
  ...config,
10
12
  ignorePatterns: [
11
13
  ...ultracite.ignorePatterns ?? [],
package/dist/oxlint.mjs CHANGED
@@ -47,11 +47,13 @@ function createOxlintConfig(options = {}) {
47
47
  "func-style": "off",
48
48
  "no-nested-ternary": "off",
49
49
  "no-use-before-define": ["error", { functions: false }],
50
+ "no-warning-comments": "off",
50
51
  "prefer-regex-literals": "off",
51
52
  "promise/avoid-new": "off",
52
53
  "promise/prefer-await-to-callbacks": "off",
53
54
  "promise/prefer-await-to-then": "off",
54
55
  "typescript/promise-function-async": "off",
56
+ "typescript/return-await": ["error", "in-try-catch"],
55
57
  "unicorn/no-nested-ternary": "off",
56
58
  ...rules
57
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monke-together-strong/oxc-config",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared Oxlint and Oxfmt presets.",
5
5
  "homepage": "https://github.com/monke-together-strong/monke-tools/tree/main/packages/oxc-config#readme",
6
6
  "bugs": {