@fileverse-dev/ddoc 2.0.9-patch-2.3 → 2.0.9-patch-9

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.0.9-patch-2.3",
5
+ "version": "2.0.9-patch-9",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -22,8 +22,18 @@
22
22
  "scripts": {
23
23
  "dev": "vite",
24
24
  "build": "tsc && vite build",
25
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
26
- "preview": "vite preview"
25
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
26
+ "preview": "vite preview",
27
+ "prepare": "husky install"
28
+ },
29
+ "lint-staged": {
30
+ "**/*.{js,jsx,ts,tsx}": [
31
+ "eslint --fix",
32
+ "prettier --write"
33
+ ],
34
+ "**/*.{json,css,md}": [
35
+ "prettier --write"
36
+ ]
27
37
  },
28
38
  "dependencies": {
29
39
  "@_ueberdosis/prosemirror-tables": "^1.1.3",
@@ -99,9 +109,14 @@
99
109
  "@vitejs/plugin-react": "^4.2.0",
100
110
  "autoprefixer": "^10.4.19",
101
111
  "eslint": "^8.53.0",
112
+ "eslint-config-prettier": "^9.1.0",
113
+ "eslint-plugin-prettier": "^5.2.1",
102
114
  "eslint-plugin-react-hooks": "^4.6.0",
103
115
  "eslint-plugin-react-refresh": "^0.4.4",
116
+ "husky": "^9.1.7",
117
+ "lint-staged": "^15.2.10",
104
118
  "postcss": "^8.4.38",
119
+ "prettier": "^3.4.2",
105
120
  "sass": "^1.77.2",
106
121
  "tailwindcss": "^3.4.3",
107
122
  "typescript": "^5.2.2",