oxc/crates/oxc_linter
camchenry 0f19848263 feat(linter): Implement no-unexpected-multiline rule (#5911)
- part of https://github.com/oxc-project/oxc/issues/479

The bulk of this rule is closely based on the logic from the original ESLint rule. One major difference between this implementation and the original though is the lack of a tokenizer. ESLint uses a proper tokenizer to find identifers, parentheses, brackets, and other tokens. For this rule, I opted to just manually search for the characters we might expect to find. I'm not sure how this will hold up in the real world, I expect it could lead to some missing cases potentially, but it at least works for all of the given test cases.
2024-09-20 23:05:02 +00:00
..
examples refactor(semantic): impl IntoIterator for &AstNodes (#5873) 2024-09-19 03:22:29 +00:00
fixtures test: add trailing line breaks to conformance fixtures (#5541) 2024-09-06 12:55:17 +00:00
src feat(linter): Implement no-unexpected-multiline rule (#5911) 2024-09-20 23:05:02 +00:00
tests
Cargo.toml perf(linter): use aho-corasick instead of regex for string matching in jsx-a11y/img-redundant-alt (#5892) 2024-09-19 22:40:01 +00:00
CHANGELOG.md release(oxlint): v0.9.6 (#5843) 2024-09-18 12:02:09 +08:00