feat: add prettier packagejson plugin (#1577)
This commit is contained in:
@@ -11,10 +11,11 @@
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf .turbo node_modules",
|
||||
"lint": "eslint",
|
||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||
"lint": "eslint",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"prettier": "@homarr/prettier-config",
|
||||
"dependencies": {
|
||||
"@next/eslint-plugin-next": "^14.2.18",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
@@ -30,6 +31,5 @@
|
||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||
"eslint": "^9.16.0",
|
||||
"typescript": "^5.7.2"
|
||||
},
|
||||
"prettier": "@homarr/prettier-config"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/** @type { PrettierConfig | SortImportsConfig } */
|
||||
const config = {
|
||||
plugins: ["@ianvs/prettier-plugin-sort-imports"],
|
||||
plugins: ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-packagejson"],
|
||||
importOrder: [
|
||||
"^(react/(.*)$)|^react$",
|
||||
"^(next/(.*)$)|^(next$)",
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
{
|
||||
"name": "@homarr/prettier-config",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"main": "index.mjs",
|
||||
"scripts": {
|
||||
"clean": "rm -rf .turbo node_modules",
|
||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"prettier": "@homarr/prettier-config",
|
||||
"dependencies": {
|
||||
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
|
||||
"prettier": "^3.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@homarr/tsconfig": "workspace:^0.1.0",
|
||||
"prettier-plugin-packagejson": "^2.5.6",
|
||||
"typescript": "^5.7.2"
|
||||
},
|
||||
"prettier": "@homarr/prettier-config"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user