oxc/crates/oxc_linter
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
..
examples refactor(linter): improve diagnostic labeling (#3960) 2024-06-29 05:19:22 +00:00
fixtures refactor(linter): replace Windows-style line breaks with Unix-style in test fixture (#4768) 2024-08-08 17:33:04 +00:00
src fix(linter): improve prefer_namespace_keyword rule (#4751) 2024-08-09 11:46:50 +03:30
tests feat(tasks/website): code generate the linter rules 2024-05-23 15:21:37 +08:00
Cargo.toml Release oxlint v0.7.0 (#4657) 2024-08-05 13:46:06 +08:00
CHANGELOG.md Release oxlint v0.7.0 (#4657) 2024-08-05 13:46:06 +08:00