This repository was archived by the owner on Dec 31, 2025. It is now read-only.
build(deps): update dependency eslint-plugin-simple-import-sort to v12 #90
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:
^5.0.3→^12.1.1Release Notes
lydell/eslint-plugin-simple-import-sort (eslint-plugin-simple-import-sort)
v12.1.1Compare Source
This release adds a short
meta.docs.descriptionto each rule. Thanks to fisker Cheung (@fisker)!v12.1.0Compare Source
This release adds TypeScript type definitions for the plugin itself. This is useful when you use TypeScript to check your ESLint configuration. It assumes that you install
@types/eslintyourself. Thanks to @Logicer16!v12.0.0Compare Source
This release removes the support for import assignments added in version 11.0.0:
If you miss the support for import assignments, I suggest you write your own ESLint rule which moves them out of the way from the actual imports, sorting them or not.
v11.0.0Compare Source
This release adds support for TypeScript import assignments (
import A = B.Candimport A = require("module")). Thanks to Szabolcs Kurdi (@szku01) and Svyatoslav Zaytsev (@MillerSvt)!It’s only a breaking change if you use TypeScript import assignments, and only in the form that you need to autofix your files.
In other news, this release adds the
metaplugin property in preparation for ESLint Flat Config, and avoids the deprecatedcontext.getSourceCode()method (while still being backwards compatible).v10.0.0Compare Source
This release might move some imported items with
typearound. This is a breaking formatting change (that only affects TypeScript and Flow), but only in the form of that you need to autofix your files.In previous versions,
typespecifiers came first:Now, all specifiers are sorted alphabetically, regardless of
type:Motivation:
You might import a class for a type annotation using:
Later, you also start instantiating that class in the same file (
new MyClass()), so you removetype.Previously, this resulted in a messy diff due to the class moving:
import { - type MyClass, coolFunction, + MyClass, } from "example";Now, the sorting with the
typekeyword would be:Now there’s no reordering diff, just the
typekeyword being removed:import { coolFunction, - type MyClass, + MyClass, } from "example";This is consistent with [“Why sort on
from?”][sort-from].Thanks to Jake Bailey (@jakebailey) for reporting and suggesting the fix!
v9.0.0Compare Source
This version adds support for [eslint-plugin-svelte], and for
declare modulein TypeScript.More generally, imports and exports are now supported anywhere, by finding the set of parents of all imports and exports and working with those. Previously, the plugin only sorted imports and exports directly inside a
Programnode. For eslint-plugin-svelte anddeclare modulethat didn’t cut it.This is only a breaking change if you imports or exports in
declare modulein TypeScript, and only in the form of that you need to autofix your files.v8.0.0Compare Source
Node.js builtin modules prefixed with
node:are now in a separate group by default (regex:^node:), above the packages group. (Node.js builtins withoutnode:are still sorted together with npm packages like before.)Before:
After:
This is only a breaking change if you use the
node:prefix in imports, and only in the form of that you need to autofix your files.v7.0.0Compare Source
You can now customize where type imports (
import type { X } from "x") go, via thegroupsoption. Type imports have\u0000at the end.This is only a breaking change if you use the
groupsoption and your regexes care about what the last character is. If so, you now need to account for the fact that the last character of type imports is\u0000.v6.0.1Compare Source
as defaultin exports no longer results in invalid code.v6.0.0Compare Source
simple-import-sort/sortis now calledsimple-import-sort/imports.simple-import-sort/exportsfor sorting (some) exports. Big thanks to Remco Haszing (@remcohaszing) for the suggestion and great feedback, and to @JCrepin for the initial implementation!../..imports are now sorted properly based on directory hierarchy.groupsoption can now be reordered freely without causing imports to unexpectedly end up in other groups than before.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 was generated by Mend Renovate. View the repository job log.