This repository was archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 649
release: 11.0.0 #3906
Merged
Merged
release: 11.0.0 #3906
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
cf64e21
release: 11.0.0
ematipico f3a3def
chore: add semicolon and schema options
ematipico 482a780
Update CHANGELOG.md
ematipico 3a67c25
chore: code suggestions
ematipico af4824d
chore: suppression code action
ematipico 55082e2
Apply suggestions from code review
ematipico 377d676
Apply suggestions from code review
ematipico 3de8e99
Apply suggestions from code review
ematipico 1a6bd3c
chore: update language support
ematipico 27ef098
chore: add links
ematipico 85ba7b3
Apply suggestions from code review
ematipico ee1667a
chore: typo
ematipico 2819354
add a section on imports sorting in the vscode extension readme
leops b19f7fe
Update editors/vscode/README.md
leops 687fc2a
chore: code review and update contributors
ematipico f476067
chore: add missing property
ematipico 140ea48
chore: add fix
ematipico fa88b32
chore: update packages
ematipico 7fc50cc
nusery -> nursery
MichaReiser ebcbbc5
Update website/src/pages/configuration.mdx
leops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: add semicolon and schema options
- Loading branch information
commit f3a3def4fef912e459820bcb80b9ac3336d61742
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,23 @@ Here's an example: | |
|
|
||
| This configuration file enables the formatter and sets the preferred indent style and width. The linter is disabled. | ||
|
|
||
| ## `$schema` | ||
|
|
||
| Allows to pass a path to a JSON schema file. | ||
|
|
||
| Since version `11.0.0`, a JSON schema file for the `rome.json` is published. | ||
|
|
||
| If you installed Rome via a package manager and present inside the | ||
| `node_modules` folder, you can add it like this: | ||
ematipico marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <CodeBlockHeader filename="rome.json" /> | ||
|
|
||
| ```json | ||
| { | ||
| "$schema": "./node_modules/rome/configuration_schema.json" | ||
| } | ||
| ``` | ||
|
|
||
| ## `files` | ||
|
|
||
| ### `files.maxSize` | ||
|
|
@@ -46,6 +63,21 @@ this limit will be ignored for performance reason. | |
|
|
||
| > Default: 1024*1024 (1MB) | ||
|
|
||
| ### `files.ignore` | ||
|
|
||
| A list of Unix shell style patterns. Rome tools will ignore files/folders that will | ||
ematipico marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| match these patterns | ||
ematipico marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <CodeBlockHeader filename="rome.json" /> | ||
|
|
||
| ```json | ||
| { | ||
| "files": { | ||
| "ignore": ["scripts/*.js"] | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## `linter` | ||
|
|
||
| ### `linter.enabled` | ||
|
|
@@ -167,3 +199,25 @@ Print trailing commas wherever possible in multi-line comma-separated syntactic | |
| - `none`, trailing commas are never added | ||
|
|
||
| > Default: `all` | ||
|
|
||
| ### `javascript.formatter.semicolon` | ||
|
|
||
| Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Possible values: | ||
ematipico marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - `always`, the semicolons is always added at the end of each statement; | ||
| - `as-needed`, the semicolons are added only in places where it's needed, to protect from [ASI](https://en.wikibooks.org/wiki/JavaScript/Automatic_semicolon_insertion) | ||
|
||
|
|
||
| > Default: `always` | ||
|
|
||
| Example: | ||
|
|
||
| <CodeBlockHeader filename="rome.json" /> | ||
|
|
||
| ```json | ||
| { | ||
| "javascript": { | ||
| "formatter": { | ||
| "semicolons": "asNeeded" | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.