Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/rome_cli/tests/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub const CONFIG_FORMAT: &str = r#"{

pub const CONFIG_INIT_DEFAULT: &str = r#"{
"organizeImports": {
"enabled": false
"enabled": true
},
"linter": {
"enabled": true,
Expand All @@ -24,7 +24,7 @@ pub const CONFIG_INIT_DEFAULT: &str = r#"{
pub const CONFIG_INIT_DEFAULT_WHEN_INSTALLED: &str = r#"{
"$schema": "./node_modules/rome/configuration_schema.json",
"organizeImports": {
"enabled": false
"enabled": true
},
"linter": {
"enabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ file.js:1:1 suppressions/deprecatedSyntax FIXABLE ━━━━━━━━━
2 2 │ a == b;


```

```block
file.js organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Import statements could be sorted:

1 │ - //·rome-ignore·lint(suspicious/noDoubleEquals):·test
1 │ + //·rome-ignore·lint/suspicious/noDoubleEquals:·test
2 2 │ a == b;


```

```block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ check.js lint ━━━━━━━━━━━━━━━━━━━━━━
× Size of check.js is 1.0 MiB which exceeds configured maximum of 1.0 MiB for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
check.js organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Size of check.js is 1.0 MiB which exceeds configured maximum of 1.0 MiB for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ check.js lint ━━━━━━━━━━━━━━━━━━━━━━
× Size of check.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
check.js organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Size of check.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ check.js lint ━━━━━━━━━━━━━━━━━━━━━━
× Size of check.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
check.js organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Size of check.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ ci.js lint ━━━━━━━━━━━━━━━━━━━━━━━
× Size of ci.js is 1.0 MiB which exceeds configured maximum of 1.0 MiB for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
ci.js organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Size of ci.js is 1.0 MiB which exceeds configured maximum of 1.0 MiB for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ ci.js lint ━━━━━━━━━━━━━━━━━━━━━━━
× Size of ci.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
ci.js organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Size of ci.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ ci.js lint ━━━━━━━━━━━━━━━━━━━━━━━
× Size of ci.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
ci.js organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Size of ci.js is 27 B which exceeds configured maximum of 16 B for this project. The file size limit exists to prevent us inadvertently slowing down and loading large files that we shouldn't.


```

```block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ expression: content
```json
{
"organizeImports": {
"enabled": false
"enabled": true
},
"linter": {
"enabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ expression: content
{
"$schema": "./node_modules/rome/configuration_schema.json",
"organizeImports": {
"enabled": false
"enabled": true
},
"linter": {
"enabled": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Rome Configuration:
Status: Loaded successfully
Formatter disabled: true
Linter disabled: false
Organize imports disabled: true
Organize imports disabled: false
VCS disabled: true

Server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Rome Configuration:
Status: Loaded with errors
Formatter disabled: false
Linter disabled: false
Organize imports disabled: true
Organize imports disabled: false
VCS disabled: true

Server:
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_service/src/configuration/organize_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct OrganizeImports {
impl Default for OrganizeImports {
fn default() -> Self {
Self {
enabled: Some(false),
enabled: Some(true),
ignore: None,
}
}
Expand Down
2 changes: 1 addition & 1 deletion editors/vscode/configuration_schema.json

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

2 changes: 1 addition & 1 deletion npm/rome/configuration_schema.json

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