oxc/crates
Burlin b22ed4512d
fix(linter): improve prefer_namespace_keyword rule (#4751)
fix: #4651
This commit enhances the `prefer_namespace_keyword` rule in the
TypeScript linter: Add support for detecting and fixing nested module
declarations (e.g., module A.B {})

- Introduce helper functions `is_nest_module`, `is_valid_module`, and
`is_invalid_module` to improve code readability and maintainability
- Refactor the main `run` function to use these new helper functions
- Update test cases to cover nested module scenarios
- Improve error reporting for nested modules
2024-08-09 11:46:50 +03:30
..
oxc Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_allocator Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_ast refactor(ast_codegen): remove unnecessary imports from generated files (#4774) 2024-08-09 07:48:09 +00:00
oxc_ast_macros fix(ast_macros): raise compile error on invalid generate_derive input. (#4766) 2024-08-08 19:06:43 +00:00
oxc_cfg Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_codegen Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_diagnostics Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_index Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_isolated_declarations Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_js_regex
oxc_language_server refactor(linter): use diagnostic codes in lint rules (#4349) 2024-07-20 03:35:00 +00:00
oxc_linter fix(linter): improve prefer_namespace_keyword rule (#4751) 2024-08-09 11:46:50 +03:30
oxc_macros refactor(ast_codegen): replace Windows-style line breaks with Unix-style (#4769) 2024-08-08 17:28:58 +00:00
oxc_mangler Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_minifier Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_module_lexer Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_parser Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_prettier chore: remove unsafe_code = "warn" rust lint 2024-07-15 10:39:08 +08:00
oxc_semantic Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_sourcemap Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_span Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_syntax Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_transformer Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_traverse Release crates v0.24.0 (#4749) 2024-08-08 14:00:57 +08:00
oxc_wasm refactor(minifier): ast passes infrastructure (#4625) 2024-08-04 11:58:39 +00:00