oxc/crates
Alexander S. 41f2070895
fix(linter): rule no-restricted-imports support missing options (#8076)
> The regex property is used to specify the regex patterns for
restricting modules.
> Note: regex cannot be used in combination with group.

_https://eslint.org/docs/latest/rules/no-restricted-imports#regex_

> This option allows you to use regex patterns to restrict import names:


_https://eslint.org/docs/latest/rules/no-restricted-imports#importnamepattern_

> This is a string option. Inverse of importNamePattern, this option
allows imports that matches the specified regex pattern. So it restricts
all imports from a module, except specified allowed patterns.
> Note: allowImportNamePattern cannot be used in combination with
importNames, importNamePattern or allowImportNames.


_https://eslint.org/docs/latest/rules/no-restricted-imports#allowimportnamepattern_

Needed to install `regress` to support JS Sntax like Lookaheads and
Lookbehinds

Next Goals:
- https://github.com/oxc-project/oxc/pull/7894
- Improve spans
- Error for wrong configurations
- update documentation
- Output messages like
[eslint](https://github.com/eslint/eslint/blob/main/lib/rules/no-restricted-imports.js#L140-L184)
2025-01-18 11:50:36 +08:00
..
oxc fix(semantic)!: ensure program outlives semantic (#8455) 2025-01-16 10:04:25 +08:00
oxc_allocator perf(allocator): inline Box methods (#8572) 2025-01-18 01:23:57 +00:00
oxc_ast perf(span): align Span same as usize (#8298) 2025-01-18 01:47:08 +00:00
oxc_ast_macros feat(ast, span, syntax, regular_expression)!: remove ContentHash (#8512) 2025-01-15 15:01:14 +00:00
oxc_cfg release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_codegen fix(codegen): shorthand assignment target identifier consider mangled names (#8536) 2025-01-16 07:26:07 +00:00
oxc_data_structures release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_diagnostics refactor(linter): move DiagnosticsReporters to oxlint (#8454) 2025-01-16 16:11:22 +08:00
oxc_ecmascript refactor(minifier): merge try_compress_type_of_equal_string into try_minimize_binary (#8561) 2025-01-17 11:01:54 +00:00
oxc_estree release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_isolated_declarations release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_language_server refactor(language_server): simplify IsolatedLintHandler (#8183) 2025-01-18 11:49:21 +08:00
oxc_linter fix(linter): rule no-restricted-imports support missing options (#8076) 2025-01-18 11:50:36 +08:00
oxc_macros chore(deps): update rust crates (#8452) 2025-01-15 13:29:46 +00:00
oxc_mangler perf(mangler): optimize base54 function (#8557) 2025-01-17 05:47:28 +00:00
oxc_minifier refactor(minifier): merge try_compress_type_of_equal_string into try_minimize_binary (#8561) 2025-01-17 11:01:54 +00:00
oxc_napi release(crates): v0.46.0 (#8487) 2025-01-14 19:40:44 +08:00
oxc_parser refactor(span): all methods take owned Span (#8297) 2025-01-18 01:47:09 +00:00
oxc_prettier refactor(allocator): String type (#8568) 2025-01-18 01:23:54 +00:00
oxc_regular_expression refactor(span): all methods take owned Span (#8297) 2025-01-18 01:47:09 +00:00
oxc_semantic refactor(span): all methods take owned Span (#8297) 2025-01-18 01:47:09 +00:00
oxc_span perf(span): compare Spans as single u64s (#8300) 2025-01-18 01:47:10 +00:00
oxc_syntax feat(napi/parser): expose dynamic import expressions (#8540) 2025-01-16 22:25:22 +08:00
oxc_transformer refactor(allocator)!: remove Vec::into_string (#8571) 2025-01-18 01:23:56 +00:00
oxc_traverse refactor(traverse): remove unnecessary #[allow] (#8518) 2025-01-15 17:38:03 +00:00
oxc_wasm feat(napi/minify): implement napi (#8478) 2025-01-14 08:55:55 +00:00