@octohash/eslint-config 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -257,9 +257,10 @@ function defineConfig(options, ...userConfigs) {
257
257
  return config;
258
258
  }
259
259
  function mergeOptions(options) {
260
+ const formatters = typeof options?.formatters === "object" ? options.formatters : typeof options?.formatters === "boolean" ? options.formatters : void 0;
260
261
  return {
261
262
  ...options,
262
- formatters: { ...typeof options?.formatters === "object" ? options.formatters : {} }
263
+ formatters
263
264
  };
264
265
  }
265
266
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@octohash/eslint-config",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "description": "Personal ESLint config based on @antfu/eslint-config with opinionated extensions.",
6
6
  "author": "jinghaihan",
7
7
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "lint-staged": "^16.2.7",
60
60
  "vitest": "^4.0.18",
61
61
  "@types/node": "^24.10.13",
62
- "@octohash/eslint-config": "0.2.2"
62
+ "@octohash/eslint-config": "0.2.3"
63
63
  },
64
64
  "simple-git-hooks": {
65
65
  "pre-commit": "pnpm lint-staged"