Skip to content

Commit

Permalink
docs(noRestrictedImports): update version notice (#4758)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxtuneLee authored Dec 20, 2024
1 parent ec1e9e8 commit 09a04af
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions crates/biome_js_analyze/src/lint/nursery/no_restricted_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,22 @@ declare_lint_rule! {
/// Disallow specified modules when loaded by import or require.
///
/// ## Examples
///
/// ```json
/// {
/// "noRestrictedImports": {
/// "options": {
/// "paths": {
/// "lodash": "Using lodash is not encouraged",
/// "underscore": "Using underscore is not encouraged"
/// }
/// }
/// }
/// }
/// ```
///
/// **Since**: `v2`
///
/// ```json,options
/// {
/// "options": {
Expand Down Expand Up @@ -145,6 +160,21 @@ declare_lint_rule! {
/// ```
///
/// ## Options
///
/// ```json
/// {
/// "noRestrictedImports": {
/// "options": {
/// "paths": {
/// "lodash": "Using lodash is not encouraged",
/// "underscore": "Using underscore is not encouraged"
/// }
/// }
/// }
/// }
/// ```
///
/// **Since**: `v2`
///
/// Use the options to specify the import paths and/or specific import names within them that you want to restrict in your source code.
///
Expand Down

0 comments on commit 09a04af

Please sign in to comment.