chore(deps): update dependency rome to v12 #4
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.
This PR contains the following updates:
11.0.0->12.1.3Release Notes
rome/tools
v12.1.3CLI
Other changes
rome lsp-proxyshould accept the global CLI options #4505Configuration
Other changes
nurserywere enabled when the"nursery": {}objectwas defined #4479
Formatter
Linter
Other changes
useHookAtTopLevelcaused to returning call expressions of a hook.Parser
Other changes
v12.1.2Configuration
Other changes
the correct rules to apply #4502
Linter
New rules
noUselessTypeConstraintOther changes
noInnerDeclarations: allow function declarations in nested block inside an ES module #4492.noInvalidConstructorSuper: recognizeextendsclauses that use static member access such asextends mod.C#4499v12.1.1CLI
Other changes
lsp-proxywas renamedlsp_proxy#4489Configuration
Other changes
Linter
Other changes
noAssignInExpressionsrule replaced the operator with an invalid token, which caused other lint rules to crash. #4464noUnusedVariablesrule did not correctly detect exports when a variable and aninterfacehad the same name #4468v12.1.0CLI
Other changes
output. #4405.
rome checkcan accept input fromstdin.--stdin-file-pathto use when runningrome checkviastdin.--formatter-enabledto the commandrome checkto control the formatter via CLI.--linter-enabledto the commandrome checkto control the linter via CLI.--organize-imports-enabledto the commandrome checkto control the import sorting via CLI.rome migratethe transform the configuration filerome.jsonwhen there are breaking changes.
Configuration
vcsproperty, to opt in the VCS integration:vcs.enabled, to enable or not the integration;vcs.clientKind, the supported clients;vcs.useIgnoreFile, to ignore the files/paths inside the file;vcs.root, an optional path to the root of the VCS;Editors
Other changes
Formatter
Other changes
lineWidthfor arrays #4351Linter
New rules
noConfusingArrownoRedundantRolesnoNoninteractiveTabindexnoAriaUnsupportedElementsnoConsoleLognoForEachuseLiteralKeysnoConstantConditionuseGroupedTypeImportnoUselessConstructoruseLiteralEnumMembersuseHeadingContentnoAccumulatingSpreaduseSimpleNumberKeysPromoted rules
New rules are promoted, please check #4431 for more details.
Note that,
noExtraSemicolonsandnoExtraLabelsare renamed tonoExtraSemicolonandnoUselessLabel.Other changes
the code action is not formatted.
useShorthandArrayTyperule did not handle nested ReadonlyArray types correctly and erroneously reported TsObjectType #4354.noUndeclaredVariablesdetects globals based on the file type.noUndeclaredVariablesincorrectly identifiesAggregateErroras an undeclared variable. #4365useLiteralKeysrule doesn't ignore valid uses of square bracket notation. #4370noNonNullAssertionto emit incorrect code actionuseButtonTypeto miss some casesuseCamelCasecaused to default exported componentsuseCamelCasecaused to private class membersuseHookAtTopLevelcaused to arrow functions, export default functions and function expressions.useHookAtTopLevelcaused toasorsatisfiesexpression.noHeadeScopecaused to custom componentsnoNoninteractiveElementToInteractiveRoleandnoNoninteractiveTabindexcaused to non-interactive elements.Parser
Other changes
ctsfilesexportandexport default. #4252VSCode
requireConfigurationis set totrueby defaultv12.0.0CLI
Breaking changes
While this change is a bug fix, this could affect how the
ignoreentries are defined inside a project. We suggest to review themand make sure they still work.
--apply-suggestedis now called--apply-unsaferome check --applyandrome check --apply-unsafeexits with non-zero code (error code)if there are still diagnostics to be addressed.
Other changes
rome checknow checks import statements. This is an experimental feature that needs to beenabled via configuration. Import can be sorted using
rome check --apply-unsafeworking directory, it will try to find one in the parent directories.
--config-path. It tells Rome to try and discover arome.jsonfilein the given path.
Configuration
Other changes
exit anymore if there are issues with the
rome.jsonfile, instead it will apply its defaultsto the sections that are incorrect.
javascript.organizeImports. This is an experimental feature and users need to opt-in.{ "organizeImports": { "enabled": true, "ignore": ["trickyFile.js"] } }linter.rules.allandlinter.rules.[group].all. These options allow to enable or disable allrules, or all rules for a given group.
allandrecommendedcan't be bothtrue.{ "linter": { "rules": { "all": true, "style" : { "all": false } } } }The previous example will enable all rules and disable all rules that belong to the
stylegroup.Editors
Other changes
rome.jsonfile.Formatter
Linter
New rules are promoted, please check #4239 for more
details.
Parser
VSCode
Other changes
requireConfiguration. Enabling this option will force Rome to requirea configuration file in your workspace/project. If Rome doesn't find a
rome.jsonfile, it won'temit diagnostics.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.