Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"trailingComma": "es5"
}
6 changes: 6 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc", "vue"],
"ignorePatterns": ["iconfont/**", "icons/**", "patches/**"],
"rules": {}
}
33 changes: 0 additions & 33 deletions eslint.config.mjs

This file was deleted.

45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
{
"name": "milkup",
"version": "0.4.10",
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac",
"description": "A Markdown editor built with Milkdown and Vue.js",
"author": "Larry Zhu",
"license": "MIT",
"keywords": [
"md",
"markdown",
"Markdown",
"markdown",
"md",
"milkup"
],
"license": "MIT",
"author": "Larry Zhu",
"main": "dist-electron/main/index.js",
"engines": {
"node": ">=20.17.0",
"pnpm": ">=10.0.0"
},
"scripts": {
"build:main": "esbuild src/main/index.ts --bundle --platform=node --external:electron --outfile=dist-electron/main/index.js",
"build:preload": "esbuild src/preload.ts --bundle --platform=neutral --outfile=dist-electron/preload.js --external:electron --format=cjs",
Expand All @@ -28,8 +23,8 @@
"dist:linux-x64": "pnpm run build && electron-builder --linux --x64",
"dist:linux-arm64": "pnpm run build && electron-builder --linux --arm64",
"dist:win-x64": "pnpm run build && electron-builder --win --x64",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint": "oxlint . && oxfmt --check .",
"format": "oxlint --fix . && oxfmt .",
"prepare": "simple-git-hooks",
"preinstall": "npx only-allow pnpm",
"release": "genereleaselog",
Expand Down Expand Up @@ -89,7 +84,6 @@
"vue-draggable-plus": "^0.6.0"
},
"devDependencies": {
"@antfu/eslint-config": "^5.2.1",
"@types/he": "^1.2.3",
"@types/mdast": "^4.0.4",
"@types/node": "^24.3.0",
Expand All @@ -100,17 +94,31 @@
"electron": "^37.3.1",
"electron-builder": "^26.0.12",
"esbuild": "^0.25.9",
"eslint": "^9.33.0",
"eslint-plugin-oxlint": "^1.12.0",
"genereleaselog": "^0.0.5",
"less": "^4.4.1",
"oxfmt": "^0.27.0",
"oxlint": "^1.12.0",
"picocolors": "^1.1.1",
"simple-git-hooks": "^2.13.1",
"typescript": "^5.9.2",
"vite": "^7.1.3",
"vite-plugin-electron": "^0.29.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged",
"commit-msg": "node scripts/verify-commit.js"
},
"lint-staged": {
"*.{js,ts,tsx,vue,json}": [
"oxlint --fix",
"oxfmt"
]
},
"engines": {
"node": ">=20.17.0",
"pnpm": ">=10.0.0"
},
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac",
"pnpm": {
"overrides": {
"@codemirror/state": "^6.5.2"
Expand All @@ -125,15 +133,6 @@
"@milkdown/crepe": "patches/@milkdown__crepe.patch"
}
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged",
"commit-msg": "node scripts/verify-commit.js"
},
"lint-staged": {
"*.{js,ts,tsx,vue,json}": [
"eslint --cache --fix"
]
},
"build": {
"appId": "com.auto-plugin.milkup",
"productName": "milkup",
Expand Down