Skip to content

Commit

Permalink
docs(lint/style/useFilenamingConvention): fix example options (#2144)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Zaunseder <[email protected]>
  • Loading branch information
zauni and Matthias Zaunseder authored Mar 21, 2024
1 parent 364945c commit 958a9a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ declare_rule! {
/// "//": "...",
/// "options": {
/// "strictCase": false,
/// "enumMemberCase": ["camelCase", "export"]
/// "requireAscii": true,
/// "filenameCases": ["camelCase", "export"]
/// }
/// }
/// ```
Expand Down Expand Up @@ -252,7 +253,7 @@ pub struct FilenamingConventionOptions {
#[serde(default, skip_serializing_if = "is_default")]
pub require_ascii: bool,

/// Allowed cases for _TypeScript_ `enum` member names.
/// Allowed cases for file names.
#[serde(default, skip_serializing_if = "is_default_filename_cases")]
pub filename_cases: FilenameCases,
}
Expand Down Expand Up @@ -328,7 +329,7 @@ impl biome_deserialize::Deserializable for FilenameCases {
}
}

/// Supported cases for TypeScript `enum` member names.
/// Supported cases for file names.
#[derive(Clone, Copy, Debug, Deserialize, Deserializable, Eq, Hash, PartialEq, Serialize)]
#[cfg_attr(feature = "schemars", derive(JsonSchema))]
pub enum FilenameCase {
Expand Down
4 changes: 2 additions & 2 deletions packages/@biomejs/backend-jsonrpc/src/workspace.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/@biomejs/biome/configuration_schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ The rule provides two options that are detailed in the following subsections.
"//": "...",
"options": {
"strictCase": false,
"enumMemberCase": ["camelCase", "export"]
"requireAscii": true,
"filenameCases": ["camelCase", "export"]
}
}
```
Expand Down

0 comments on commit 958a9a1

Please sign in to comment.