feat(linter): support dynamic configs via CLI arguments#19384
Merged
graphite-app[bot] merged 1 commit intomainfrom Feb 14, 2026
Merged
Conversation
Contributor
Author
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
59e0bef to
13e78db
Compare
Contributor
Author
Merge activity
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for passing dynamic JavaScript/TypeScript config files via CLI --config/-c, clarifying runtime constraints (Node.js required) and extending tests/docs accordingly.
Changes:
- Route
--configpaths with JS/TS extensions through the JS config loader (instead of JSON parsing). - Rename/standardize JS-config-related error variants/messages to cover JavaScript + TypeScript configs.
- Update CLI help snapshots and add new fixture-based e2e coverage for
--config my-oxlint-config.ts.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tasks/website_linter/src/snapshots/cli_terminal.snap | Updates terminal help snapshot to document JS/TS config support and Node.js requirement. |
| tasks/website_linter/src/snapshots/cli.snap | Updates website help snapshot with the same config-format messaging. |
| apps/oxlint/test/fixtures/js_config_invalid_cli_arg/output.snap.md | New fixture snapshot covering invalid JS/TS config passed via --config. |
| apps/oxlint/test/fixtures/js_config_invalid_cli_arg/options.json | New fixture options to pass -c my-oxlint-config.ts. |
| apps/oxlint/test/fixtures/js_config_invalid_cli_arg/my-oxlint-config.ts | New invalid TS config fixture (schema error) for CLI arg coverage. |
| apps/oxlint/test/fixtures/js_config_invalid_cli_arg/files/test.js | New lint target file for the fixture. |
| apps/oxlint/test/fixtures/js_config_basic_cli_arg/output.snap.md | New fixture snapshot covering valid TS config passed via --config. |
| apps/oxlint/test/fixtures/js_config_basic_cli_arg/options.json | New fixture options to pass -c my-oxlint-config.ts. |
| apps/oxlint/test/fixtures/js_config_basic_cli_arg/my-oxlint-config.ts | New valid TS config fixture for CLI arg coverage. |
| apps/oxlint/test/fixtures/js_config_basic_cli_arg/files/test.js | New lint target file for the fixture. |
| apps/oxlint/src/run.rs | Updates callback doc comment to reflect JS/TS config loading (not TS-only). |
| apps/oxlint/src/lint.rs | Updates CLI-facing error message for missing JS runtime to cover JS/TS configs. |
| apps/oxlint/src/config_loader.rs | Renames error variant and adds extension-based detection for JS/TS configs passed via --config. |
| apps/oxlint/src/command/lint.rs | Updates CLI option help text to document JSON vs JS/TS config support/runtime requirements. |
| apps/oxlint/src-js/js_config.ts | Updates doc comment for config loader input (JS/TS configs). |
| apps/oxlint/src-js/cli.ts | Updates doc comment for JS wrapper that loads JS/TS configs. |
13e78db to
cc2b376
Compare
cc2b376 to
7a333c1
Compare
camc314
pushed a commit
that referenced
this pull request
Feb 16, 2026
# Oxlint ### 💥 BREAKING CHANGES - 7711821 oxlint: [**BREAKING**] `no-shadow-restricted-names` report `globalThis` by default (#19407) (Sysix) ### 🚀 Features - ce1baa0 linter: Implement eslint/no-shadow (#18979) (Víctor Fernández) - 7a333c1 linter: Support dynamic configs via CLI arguments (#19384) (camc314) - 1bf569b linter: Implement typescript/unified-signatures (#19375) (camc314) - 6562a9b linter: Implement typescript/parameter-properties (#19374) (camc314) - 94d8d74 linter: Implement typescript/no-use-before-define (#19373) (camc314) - 80b002a linter: Implement fixer for unicorn/no-instanceof-builtins (#19371) (camc314) - 5c3784b linter: Implement eslint/no-unmodified-loop-condition (#19341) (Vincent R) - cc00a59 linter/const-comparisons: Improve diagnostics when mixing logical/comparison operators (#19370) (camc314) - ea2c401 linter: Add support for no constructed context values (#18067) (Jovi De Croock) - f2440eb linter: Mark eslint/no-return-assign as having no fixer (#19327) (camc314) - 8588670 linter/unicorn: Implement suggestion for `unicorn/no-await-in-promise-methods` rule (#19359) (Mikhail Baev) - f0af965 linter: Move `jsx-a11y/no-static-element-interactions` rule out of the nursery. (#19355) (connorshea) - be0ce50 linter/tsgolint: Add support for labeled ranges in tsgolint diagnostics (#19201) (camchenry) - b5bc900 linter: Implement fixer for unicorn/no-new-buffer (#19326) (camc314) - 1612932 linter: Add typescript/no-unnecessary-condition (#19130) (camc314) - 37dc6c5 linter: Implement fixer for unicorn/prefer-includes (#19323) (camc314) ### 🐛 Bug Fixes - c2b1870 linter: Enforce config options for `react/forbid-dom-props` rule. (#19387) (connorshea) - 3d24e44 linter: Honor no-empty-function allow getters/setters for object literals (#19393) (camc314) - bbced8d linter: Enforce config options for `eslint/no-empty-function` rule, improve docs. (#19390) (connorshea) - 6bc8aec linter: Fix the behavior of `import/extensions` rule for a file that has multiple extensions. (#18919) (connorshea) - c62a295 linter/img-redundant-alt: Enforce whole-word matching for redundant alt text (#19367) (camc314) - 98956fe linter/describe-function-title: Skip autofix for type-only imports (#19329) (camc314) - d96d26d linter/plugins: Provide `parser.version` (#19364) (overlookmotel) - 81f0039 linter_codegen: Compute rule IDs relative to previous rule (#19350) (camchenry) - b7ef0a8 linter/consistent-indexed-object-style: Avoid unsafe Record conversions for mapped types (#19320) (camc314) ### 📚 Documentation - 3a6059f linter: Improve docs for `eslint/require-await` rule. (#19361) (connorshea) - b069269 linter/plugins: Add comment about deprecated `ScopeManager` methods (#19363) (overlookmotel) - 2d8aaf9 linter: Disable formatting for `eslint/no-unsafe-negation` examples. (#19347) (connorshea) - fb87806 linter: Ensure that we do not auto-format the docs for `unicorn/number-literal-case` rule. (#19346) (connorshea) - 8d3ae27 linter/typescript: Skip docs for deprecated type aware rule options (#19324) (camc314) # Oxfmt ### 💥 BREAKING CHANGES - 00135b5 formatter/sort_imports: [**BREAKING**] Change default `groups` order (#19427) (leaysgur) - 9c34f72 formatter/sort_imports: [**BREAKING**] Report invalid group name with renaming `side-effect` > `side_effect` (#19416) (leaysgur) ### 🚀 Features - 4baebef formatter/sort_imports: Support `{ newlinesBetween: bool }` inside `groups` (#19358) (leaysgur) - d1c2fb6 formatter/sort_imports: Support `customGroups` attributes(`selector` and `modifiers`) (#19356) (leaysgur) ### 🐛 Bug Fixes - f084ea6 oxfmt: Explicitly pass `process.env` for the forked process (#19380) (Long Ho) - 2bc7a14 formatter: Arrow function body incorrectly broken when return type has comment (#19368) (Dunqing) - 90ec3d2 oxfmt: Update tailwind plugin which fixes crash on non-js file (#19353) (leaysgur) - e9c5b1e formatter: Treat `PrivateFieldExpression` as simple call argument (#19348) (Dunqing) - 80643d5 formatter: Match Prettier union indentation with leading comments (#19271) (Dunqing) ### ⚡ Performance - c169c77 syntax: Optimize `is_identifier_name_patched` (#19386) (sapphi-red)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.