Skip to content

Commit 14e3c4d

Browse files
committed
update config strict array_index
1 parent 654f651 commit 14e3c4d

File tree

1 file changed

+5
-1
lines changed
  • crates/emmylua_code_analysis/src/config/configs

1 file changed

+5
-1
lines changed

crates/emmylua_code_analysis/src/config/configs/strict.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ fn default_true() -> bool {
55
true
66
}
77

8+
fn default_false() -> bool {
9+
false
10+
}
11+
812
#[derive(Serialize, Deserialize, Debug, JsonSchema)]
913
#[serde(rename_all = "camelCase")]
1014
pub struct EmmyrcStrict {
@@ -14,7 +18,7 @@ pub struct EmmyrcStrict {
1418
#[serde(default)]
1519
pub type_call: bool,
1620
/// Whether to enable strict mode array indexing.
17-
#[serde(default = "default_true")]
21+
#[serde(default = "default_false")]
1822
pub array_index: bool,
1923
}
2024

0 commit comments

Comments
 (0)