Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Update dependency eslint-plugin-simple-import-sort to v10 #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 31, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint-plugin-simple-import-sort 7.0.0 -> 10.0.0 age adoption passing confidence

Release Notes

lydell/eslint-plugin-simple-import-sort (eslint-plugin-simple-import-sort)

v10.0.0

Compare Source

This release might move some imported items with type around. 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, type specifiers came first:

import { type B, a } from "a";
export { type B, a } from "a";

Now, all specifiers are sorted alphabetically, regardless of type:

import { a, type B } from "a";
export { a, type B } from "a";

Motivation:

You might import a class for a type annotation using:

import {
  type MyClass,
  coolFunction,
} from "example";

Later, you also start instantiating that class in the same file (new MyClass()), so you remove type.

Previously, this resulted in a messy diff due to the class moving:

 import {
-  type MyClass,
   coolFunction,
+  MyClass,
 } from "example";

Now, the sorting with the type keyword would be:

import {
  coolFunction,
  type MyClass,
} from "example";

Now there’s no reordering diff, just the type keyword 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.0

Compare Source

This version adds support for [eslint-plugin-svelte], and for declare module in 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 Program node. For eslint-plugin-svelte and declare module that didn’t cut it.

This is only a breaking change if you imports or exports in declare module in TypeScript, and only in the form of that you need to autofix your files.

v8.0.0

Compare 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 without node: are still sorted together with npm packages like before.)

Before:

import fs from "fs";
import _ from "lodash-es";
import { rmSync } from "node:fs";

After:

import { rmSync } from "node:fs";

import fs from "fs";
import _ from "lodash-es";

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.


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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the renovate Automatic depencency handling from RenovateBot label Jan 31, 2023
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 3 times, most recently from f224ea9 to e033ebf Compare February 3, 2023 15:11
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 4 times, most recently from 9de0d9f to 9b1ae0b Compare February 14, 2023 01:18
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 2 times, most recently from 9c7661d to afe2d72 Compare February 23, 2023 21:49
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 4 times, most recently from 5e60eef to beff22e Compare March 5, 2023 07:39
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 3 times, most recently from de06496 to 9ecb158 Compare March 14, 2023 03:39
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 4 times, most recently from 069b4b8 to 49cfb99 Compare March 23, 2023 10:59
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 9 times, most recently from 3118a40 to 8b020d7 Compare March 29, 2023 12:20
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 4 times, most recently from 0d0870b to b9f3a0b Compare May 26, 2023 00:02
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 3 times, most recently from eb2ef63 to f81de13 Compare June 2, 2023 19:59
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 2 times, most recently from 4dcbc94 to 9daf976 Compare June 8, 2023 21:47
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 4 times, most recently from 6dffd30 to d0f2259 Compare June 20, 2023 04:08
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch from d0f2259 to 0e31807 Compare June 22, 2023 22:10
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 5 times, most recently from 1155817 to ea930ab Compare July 6, 2023 18:39
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 2 times, most recently from 15c6c1c to f24afb5 Compare July 17, 2023 22:12
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 4 times, most recently from 2561113 to b10f8bc Compare July 31, 2023 21:28
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch 2 times, most recently from 2721db8 to cd537da Compare August 12, 2023 01:53
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch from cd537da to 5f4b7c2 Compare August 14, 2023 19:47
@renovate renovate bot force-pushed the renovate/eslint-plugin-simple-import-sort-10.x branch from 5f4b7c2 to b309f0c Compare August 21, 2023 00:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
renovate Automatic depencency handling from RenovateBot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants