You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`useConfig`|`boolean`|`true`| Load `.oxfmtrc.json`, `.oxfmtrc.jsonc`, or `oxfmt.config.ts` via `load-oxfmt-config` (with `.editorconfig` merge support). Set to `false` to rely only on inline options. |
163
-
|`configPath`|`string`| — | Custom path to an oxfmt config file. Resolved from ESLint `cwd` when set. |
|`useConfig`|`boolean`|`true`| Load `.oxfmtrc.json`, `.oxfmtrc.jsonc`, or `oxfmt.config.*` via `load-oxfmt-config`. Set to `false` to rely only on inline options. |
177
+
|`configPath`|`string`| — | Custom path to an oxfmt config file. Resolved from ESLint `cwd` when set. |
178
+
|`ignorePath`|`string \| string[]`| — | Ignore file path(s) for CLI-style ignore resolution (same role as CLI `--ignore-path`). |
179
+
|`withNodeModules`|`boolean`|`false`| Include files under `node_modules` during ignore checks. |
180
+
|`disableNestedConfig`|`boolean`|`false`| Disable nested config discovery and resolve config from `cwd` / `configPath` only. |
@@ -173,8 +191,7 @@ When `useConfig` is `true`, the plugin loads config using `load-oxfmt-config`.
173
191
-`.editorconfig` support: nearest `.editorconfig` (including section overrides) is merged into the final options
174
192
-`configPath` overrides discovery and directly targets the specified config file
175
193
- ESLint rule options generally take highest priority because inline rule options are merged after loaded config.
176
-
- When `useConfig` is `true`, rule-level `overrides` are ignored. Only `overrides` loaded from the resolved oxfmt config file are applied.
177
-
- Rule-level `ignorePatterns` still override config-derived `ignorePatterns` when provided.
194
+
- Rule-level `ignorePatterns` are resolved relative to ESLint `cwd`; config-level `ignorePatterns` are resolved relative to the resolved config file directory.
178
195
179
196
For detailed behavior, see:
180
197
@@ -381,12 +398,31 @@ This plugin provides a single rule that formats your code using oxfmt.
381
398
- Fixable: Yes (automatically applies formatting)
382
399
- Type: Layout
383
400
401
+
## CLI parity mode
402
+
403
+
`oxfmt/cli-parity` tries to match `oxfmt` CLI behavior for files processed by ESLint.
404
+
405
+
It respects:
406
+
407
+
-`.oxfmtrc.json`
408
+
-`.oxfmtrc.jsonc`
409
+
-`oxfmt.config.*`
410
+
-`.editorconfig`
411
+
-`ignorePatterns`
412
+
-`.gitignore`
413
+
-`.prettierignore`
414
+
- default ignored directories
415
+
- default ignored lockfiles
416
+
417
+
Note: ESLint still controls file discovery. Files excluded by ESLint will never reach this rule.
418
+
384
419
## Integration
385
420
386
421
### Parser Compatibility
387
422
388
423
-`recommended`: forces `eslint-parser-plain` for matched files
389
424
-`recommendedWithoutParser`: parser-agnostic (safe to compose with language-specific parsers)
425
+
-`cliParity`: parser-agnostic preset tuned for CLI-like config/ignore behavior
390
426
391
427
When composing shareable configs, prefer `recommendedWithoutParser` if parser ownership belongs to another preset.
0 commit comments