-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
117 lines (117 loc) · 3.99 KB
/
package.json
File metadata and controls
117 lines (117 loc) · 3.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "event-dev-communities",
"private": true,
"version": "0.0.0",
"type": "module",
"packageManager": "pnpm@10.17.0",
"scripts": {
"dev": "vite --host 0.0.0.0 --port 5173",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"prepare": "husky",
"server": "json-server --watch server/db.json --port 4000",
"setup": "pnpm install && pnpm run prepare && pnpm run husky:setup",
"check-blocked-files": "git diff --cached --name-only | grep -Fx -e '.vscode/settings.json' -e '.env' -e '.husky/pre-commit' -e '.husky/commit-msg' && echo '✖ Forbidden files staged' && exit 1 || exit 0",
"husky:setup": "node -e \"const fs=require('fs'); const path=require('path'); const huskyDir='.husky'; if(!fs.existsSync(huskyDir)) fs.mkdirSync(huskyDir); fs.writeFileSync(path.join(huskyDir,'pre-commit'),'#!/bin/sh\\n\\npnpm lint-staged && npx validate-branch-name && pnpm run check-blocked-files\\n',{mode:0o755}); fs.writeFileSync(path.join(huskyDir,'commit-msg'),'#!/bin/sh\\n\\nnpx --no-install commitlint --edit \\\"$1\\\"\\n',{mode:0o755}); console.log('Husky: Hooks criados com sucesso!')\"",
"postinstall": "node -e \"if (require('fs').existsSync('.git')) { console.log('Repositório Git encontrado. Configurando Husky...'); require('child_process').execSync('pnpm run husky:setup', {stdio: 'inherit'}); } else { console.log('Repositório Git ausente. Pulando setup do Husky.'); }\"",
"health": "curl -f http://localhost:5173 || echo 'Frontend not responding'"
},
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@hookform/resolvers": "^5.2.2",
"@mui/icons-material": "^7.3.2",
"@mui/material": "^7.3.2",
"@mui/x-date-pickers": "^8.11.3",
"@tanstack/react-query": "^5.89.0",
"@tanstack/react-query-devtools": "^5.89.0",
"dayjs": "^1.11.18",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-hook-form": "^7.62.0",
"react-router-dom": "^7.9.1",
"supertokens-auth-react": "^0.50.0",
"zod": "^4.1.9"
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@eslint/js": "^9.35.0",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-react": "^4.7.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.4.0",
"husky": "^9.1.7",
"json-server": "1.0.0-beta.3",
"lint-staged": "^16.1.6",
"prettier": "^3.6.2",
"validate-branch-name": "^1.3.2",
"vite": "^6.3.6"
},
"lint-staged": {
"**/*": [
"prettier --write --ignore-unknown",
"eslint --fix"
]
},
"validate-branch-name": {
"pattern": "^(main|develop){1}$|^(feat|fix|chore|docs|style|refactor|perf|test|build)/.+$",
"errorMsg": "Branches padrão (main/develop) são permitidas.\n\nUse feat|fix|chore|docs|style|refactor|perf|test|build/<descrição>\n"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"feat",
"fix",
"chore",
"docs",
"style",
"refactor",
"perf",
"test",
"build"
]
],
"scope-empty": [
1,
"never"
],
"subject-min-length": [
2,
"always",
3
]
}
},
"prettier": {
"arrowParens": "always",
"bracketSameLine": true,
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "ignore",
"jsxSingleQuote": true,
"objectWrap": "preserve",
"printWidth": 150,
"proseWrap": "preserve",
"quoteProps": "consistent",
"semi": false,
"singleAttributePerLine": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
}
}