style: add prettier-plugin-organize-imports (#783)
Some checks failed
Build / Build Action (push) Has been cancelled
Test / Test Action (macos-14) (push) Has been cancelled
Test / Test Action (ubuntu-24.04) (push) Has been cancelled
Test / Test Action (windows-2022) (push) Has been cancelled
Test / Test Action With Specified Directories (push) Has been cancelled
Test / Test Action Without Run Build (push) Has been cancelled
Test / Test Action With Additional Options (push) Has been cancelled
Test / Test Action With Custom Generator (push) Has been cancelled

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
Alfi Maulana 2025-07-31 16:54:45 +08:00 committed by GitHub
parent d864547a83
commit d8dbbce5e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 24 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
.*
!.git*
!.npmrc
!.prettierignore
!.prettier*
node_modules/

3
.prettierrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-organize-imports"]
}

View File

@ -19,6 +19,7 @@
"jiti": "^2.4.2",
"lefthook": "^1.12.2",
"prettier": "^3.6.2",
"prettier-plugin-organize-imports": "^4.2.0",
"rollup": "^4.44.1",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.1",

18
pnpm-lock.yaml generated
View File

@ -42,6 +42,9 @@ importers:
prettier:
specifier: ^3.6.2
version: 3.6.2
prettier-plugin-organize-imports:
specifier: ^4.2.0
version: 4.2.0(prettier@3.6.2)(typescript@5.8.3)
rollup:
specifier: ^4.44.1
version: 4.44.1
@ -1111,6 +1114,16 @@ packages:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
prettier-plugin-organize-imports@4.2.0:
resolution: {integrity: sha512-Zdy27UhlmyvATZi67BTnLcKTo8fm6Oik59Sz6H64PgZJVs6NJpPD1mT240mmJn62c98/QaL+r3kx9Q3gRpDajg==}
peerDependencies:
prettier: '>=2.0'
typescript: '>=2.9'
vue-tsc: ^2.1.0 || 3
peerDependenciesMeta:
vue-tsc:
optional: true
prettier@3.6.2:
resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
engines: {node: '>=14'}
@ -2326,6 +2339,11 @@ snapshots:
prelude-ls@1.2.1: {}
prettier-plugin-organize-imports@4.2.0(prettier@3.6.2)(typescript@5.8.3):
dependencies:
prettier: 3.6.2
typescript: 5.8.3
prettier@3.6.2: {}
punycode@2.3.1: {}

View File

@ -1,5 +1,5 @@
import { exec } from "./exec.js";
import type { Context } from "./context.js";
import { exec } from "./exec.js";
/**
* Configures the build system for a CMake project.