oxc/crates/oxc_macros/src
camchenry 97195ec5a2 refactor(linter): add run_on_jest_node to run rules on only jest nodes (#6721)
- part of https://github.com/oxc-project/oxc/issues/6038

Adds a new `run_on_jest_node` method for running lint rules which allows only Jest/Vitest nodes to be linted. This simplifies a number of Jest rules by removing the need to iterate/collect Jest nodes inside of them. Now, they can simply run on the Jest nodes that are passed to them directly. This also saves time by skipping the running of the rule if it is not a test file or the Jest/Vitest plugins are not enabled.
2024-10-21 02:13:58 +00:00
..
declare_all_lint_rules.rs refactor(linter): add run_on_jest_node to run rules on only jest nodes (#6721) 2024-10-21 02:13:58 +00:00
declare_oxc_lint.rs feat(linter): add oxc-security/api-keys (#5906) 2024-09-22 22:39:56 +00:00
declare_oxc_secret.rs refactor(macros): clean up declare_oxc_secret (#5937) 2024-10-16 20:10:10 +00:00
lib.rs docs(macros): add #![warn(missing_docs] to oxc_macros (#6710) 2024-10-21 00:09:27 +00:00
util.rs refactor(macros): clean up declare_oxc_secret (#5937) 2024-10-16 20:10:10 +00:00