oxc/crates
Cameron 07076d9765
feat(linter) improve prefer-string-starts-ends-with rule (#3176)
basically:
`^#/i.test(hex)` is the same as `/^#/.test(hex)`
so, in this case the `i` flag does nothing and we can safely ignore it


inspired by https://x.com/the_moisrex/status/1787444601571221892


---

This could potentially lead a new `oxc` rule called
`no_useless_case_insensitive_regex_flag` that reports if you have a
regex with the `i` flag with no ascii alphabetic chars.
2024-05-06 23:52:19 +08:00
..
oxc Release crates v0.12.5 2024-04-22 12:52:17 +08:00
oxc_allocator deps(allocator): disable serde dep by default (#3120) 2024-04-28 22:17:32 +08:00
oxc_ast feat(transform): oxc_traverse crate (#3169) 2024-05-06 09:37:04 +08:00
oxc_ast_macros feat(transform): oxc_traverse crate (#3169) 2024-05-06 09:37:04 +08:00
oxc_cli feat(linter): --deny all should not enable nursery rules 2024-04-22 12:34:32 +08:00
oxc_codegen refactor(syntax): move number related functions to number module (#3130) 2024-04-29 18:54:35 +08:00
oxc_diagnostics Release crates v0.12.5 2024-04-22 12:52:17 +08:00
oxc_index chore(deps): update dependency rust to v1.78.0 (#3151) 2024-05-03 00:01:42 +08:00
oxc_js_regex
oxc_language_server chore: apply cargo autoinherit (#2826) 2024-03-26 23:57:50 +08:00
oxc_linter feat(linter) improve prefer-string-starts-ends-with rule (#3176) 2024-05-06 23:52:19 +08:00
oxc_macros feat(napi/parser): remove experimental flexbuffer api (#2957) 2024-04-13 14:59:31 +08:00
oxc_minifier refactor(syntax): move number related functions to number module (#3130) 2024-04-29 18:54:35 +08:00
oxc_module_lexer refactor(ast): squash nested enums (#3115) 2024-04-28 20:40:37 +08:00
oxc_parser refactor(syntax): move number related functions to number module (#3130) 2024-04-29 18:54:35 +08:00
oxc_prettier refactor(ast): squash nested enums (#3115) 2024-04-28 20:40:37 +08:00
oxc_semantic chore(deps): update dependency rust to v1.78.0 (#3151) 2024-05-03 00:01:42 +08:00
oxc_sourcemap Release crates v0.12.5 2024-04-22 12:52:17 +08:00
oxc_span feat(transformer/jsx-source): get the correct lineNumber and columnNumber from the span. (#3142) 2024-05-01 00:30:47 +00:00
oxc_syntax feat(syntax): add ToJsInt32 trait for f64 (#3132) 2024-04-29 21:13:04 +08:00
oxc_transformer feat(transformer/jsx-source): get the correct lineNumber and columnNumber from the span. (#3142) 2024-05-01 00:30:47 +00:00
oxc_traverse feat(transform): oxc_traverse crate (#3169) 2024-05-06 09:37:04 +08:00
oxc_wasm refactor(transformer): remove the requirement of Semantic (#3140) 2024-04-30 12:48:21 +08:00