-
-
Notifications
You must be signed in to change notification settings - Fork 29
Update dependency eslint-plugin-simple-import-sort to v12 #1858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
b85bb35 to
64674f0
Compare
64674f0 to
b462abf
Compare
b462abf to
362cec1
Compare
a5ed07d to
ea5348f
Compare
ea5348f to
c67b582
Compare
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
This PR contains the following updates:
9.0.0→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!
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 is behind base branch, 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.