mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 12:32:48 +00:00
chore(deps): upgrade @ianvs/prettier-plugin-sort-imports
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useCallback, useMemo, useState } from "react";
|
import { useCallback, useMemo, useState } from "react";
|
||||||
import * as O from "fp-ts/lib/Option";
|
|
||||||
import { constant } from "fp-ts/lib/function";
|
import { constant } from "fp-ts/lib/function";
|
||||||
|
import * as O from "fp-ts/lib/Option";
|
||||||
|
|
||||||
import { toolGroups } from "@/config/tools";
|
import { toolGroups } from "@/config/tools";
|
||||||
import { safeDecodeURIComponent, safeEncodeURIComponent } from "@/lib/uri";
|
import { safeDecodeURIComponent, safeEncodeURIComponent } from "@/lib/uri";
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import "@/styles/globals.css";
|
import "@/styles/globals.css";
|
||||||
|
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
import { SearchTextProvider } from "@/contexts/search-text";
|
import { SearchTextProvider } from "@/contexts/search-text";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { VariantProps, cva } from "class-variance-authority";
|
import { cva, VariantProps } from "class-variance-authority";
|
||||||
|
|
||||||
import { cn } from "@/lib/style";
|
import { cn } from "@/lib/style";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { PropsWithChildren, createContext, useContext, useState } from "react";
|
import { createContext, PropsWithChildren, useContext, useState } from "react";
|
||||||
|
|
||||||
const SearchTextContext = createContext("");
|
const SearchTextContext = createContext("");
|
||||||
const SetSearchTextContext = createContext<(text: string) => void>(() => {});
|
const SetSearchTextContext = createContext<(text: string) => void>(() => {});
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
"yaml": "^2.3.1"
|
"yaml": "^2.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
|
"@ianvs/prettier-plugin-sort-imports": "^4.0.1",
|
||||||
"@types/create-hash": "^1.2.2",
|
"@types/create-hash": "^1.2.2",
|
||||||
"@types/node": "~18.16.16",
|
"@types/node": "~18.16.16",
|
||||||
"@types/react": "~18.2.7",
|
"@types/react": "~18.2.7",
|
||||||
|
|||||||
24
pnpm-lock.yaml
generated
24
pnpm-lock.yaml
generated
@@ -91,8 +91,8 @@ dependencies:
|
|||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@ianvs/prettier-plugin-sort-imports':
|
'@ianvs/prettier-plugin-sort-imports':
|
||||||
specifier: ^3.7.2
|
specifier: ^4.0.1
|
||||||
version: 3.7.2(prettier@2.8.8)
|
version: 4.0.1(prettier@2.8.8)
|
||||||
'@types/create-hash':
|
'@types/create-hash':
|
||||||
specifier: ^1.2.2
|
specifier: ^1.2.2
|
||||||
version: 1.2.2
|
version: 1.2.2
|
||||||
@@ -422,8 +422,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
|
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@ianvs/prettier-plugin-sort-imports@3.7.2(prettier@2.8.8):
|
/@ianvs/prettier-plugin-sort-imports@4.0.1(prettier@2.8.8):
|
||||||
resolution: {integrity: sha512-bVckKToJM8XV2wTOG1VpeXrSmfAG49esVrikbxeFbY51RJdNke9AdMANJtGuACB59uo+pGlz0wBdWFrRzWyO1A==}
|
resolution: {integrity: sha512-xFpOSzroyJRSxgJSNc3beLIrRgrCzh8TjtFL7iPFyX7VMR57jsnPieKIctAehbWST4Z3uHKAd1iLrSWBf9rILQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@vue/compiler-sfc': '>=3.0.0'
|
'@vue/compiler-sfc': '>=3.0.0'
|
||||||
prettier: 2.x
|
prettier: 2.x
|
||||||
@@ -436,10 +436,8 @@ packages:
|
|||||||
'@babel/parser': 7.22.4
|
'@babel/parser': 7.22.4
|
||||||
'@babel/traverse': 7.22.4
|
'@babel/traverse': 7.22.4
|
||||||
'@babel/types': 7.22.4
|
'@babel/types': 7.22.4
|
||||||
javascript-natural-sort: 0.7.1
|
|
||||||
lodash.clone: 4.5.0
|
|
||||||
lodash.isequal: 4.5.0
|
|
||||||
prettier: 2.8.8
|
prettier: 2.8.8
|
||||||
|
semver: 7.5.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
@@ -3219,10 +3217,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/javascript-natural-sort@0.7.1:
|
|
||||||
resolution: {integrity: sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/jiti@1.18.2:
|
/jiti@1.18.2:
|
||||||
resolution: {integrity: sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==}
|
resolution: {integrity: sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -3310,14 +3304,6 @@ packages:
|
|||||||
p-locate: 5.0.0
|
p-locate: 5.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/lodash.clone@4.5.0:
|
|
||||||
resolution: {integrity: sha512-GhrVeweiTD6uTmmn5hV/lzgCQhccwReIVRLHp7LT4SopOjqEZ5BbX8b5WWEtAKasjmy8hR7ZPwsYlxRCku5odg==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/lodash.isequal@4.5.0:
|
|
||||||
resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/lodash.merge@4.6.2:
|
/lodash.merge@4.6.2:
|
||||||
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
|
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ module.exports = {
|
|||||||
printWidth: 100,
|
printWidth: 100,
|
||||||
arrowParens: "avoid",
|
arrowParens: "avoid",
|
||||||
importOrder: [
|
importOrder: [
|
||||||
|
"<BUILTIN_MODULES>",
|
||||||
|
"",
|
||||||
"^(react/(.*)$)|^(react$)",
|
"^(react/(.*)$)|^(react$)",
|
||||||
"^(next/(.*)$)|^(next$)",
|
"^(next/(.*)$)|^(next$)",
|
||||||
"<THIRD_PARTY_MODULES>",
|
"<THIRD_PARTY_MODULES>",
|
||||||
@@ -19,11 +21,6 @@ module.exports = {
|
|||||||
"",
|
"",
|
||||||
"^[./]",
|
"^[./]",
|
||||||
],
|
],
|
||||||
importOrderSeparation: false,
|
|
||||||
importOrderSortSpecifiers: true,
|
|
||||||
importOrderBuiltinModulesToTop: true,
|
|
||||||
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
||||||
importOrderMergeDuplicateImports: true,
|
|
||||||
importOrderCombineTypeAndValueImports: true,
|
|
||||||
plugins: ["@ianvs/prettier-plugin-sort-imports"],
|
plugins: ["@ianvs/prettier-plugin-sort-imports"],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { UrlObject } from "url";
|
import { UrlObject } from "url";
|
||||||
|
|
||||||
import { LinkProps } from "next/link";
|
import { LinkProps } from "next/link";
|
||||||
|
|
||||||
export type ValidHref = Exclude<LinkProps<unknown>["href"], UrlObject>;
|
export type ValidHref = Exclude<LinkProps<unknown>["href"], UrlObject>;
|
||||||
|
|||||||
Reference in New Issue
Block a user