Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into refactor/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Sep 20, 2022
2 parents f064e39 + ede488e commit 0f746fc
Show file tree
Hide file tree
Showing 118 changed files with 7,902 additions and 866 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ bench_analyzer = "run -p xtask_bench --release -- --feature analyzer"
coverage = "run -p xtask_coverage --profile=release-with-debug --"
rome-cli = "run -p rome_cli --release --"
rome-cli-dev = "run -p rome_cli --"
contributors = "run -p xtask_contributors --"

[profile.release]
lto = true
29 changes: 29 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"xtask/coverage",
"xtask/lintdoc",
"xtask/libs_bench",
"xtask/contributors",
]

[profile.release-with-debug]
Expand Down
3 changes: 1 addition & 2 deletions crates/rome_js_analyze/src/analyzers/correctness.rs

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

3 changes: 2 additions & 1 deletion crates/rome_js_analyze/src/analyzers/nursery.rs

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 @@ -76,7 +76,7 @@ declare_rule! {
pub(crate) UseOptionalChain {
version: "0.10.0",
name: "useOptionalChain",
recommended: true,
recommended: false,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ foo && foo[typeof bar] && foo[typeof bar].baz;

# Diagnostics
```
warning[correctness/useOptionalChain]: Change to an optional chain.
warning[nursery/useOptionalChain]: Change to an optional chain.
┌─ complexLogicalAndCases.ts:2:1
2 │ foo && foo[bar as string] && foo[bar as string].baz;
Expand All @@ -31,7 +31,7 @@ Suggested fix: Change to an optional chain.
```

```
warning[correctness/useOptionalChain]: Change to an optional chain.
warning[nursery/useOptionalChain]: Change to an optional chain.
┌─ complexLogicalAndCases.ts:3:1
3 │ foo && foo[1 + 2] && foo[1 + 2].baz;
Expand All @@ -49,7 +49,7 @@ Suggested fix: Change to an optional chain.
```

```
warning[correctness/useOptionalChain]: Change to an optional chain.
warning[nursery/useOptionalChain]: Change to an optional chain.
┌─ complexLogicalAndCases.ts:4:1
4 │ foo && foo[typeof bar] && foo[typeof bar].baz;
Expand Down
Loading

0 comments on commit 0f746fc

Please sign in to comment.