-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
116 lines (116 loc) · 2.6 KB
/
package.json
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
{
"name": "preact-spa-template",
"version": "0.1.0",
"scripts": {
"dev": "vite --mode development",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint --ext js,jsx src/ tests/ && prettier --check src/ tests/",
"lint-fix": "eslint --fix --ext js,jsx src/ tests/ && prettier --log-level warn --write src/ tests/",
"tsc": "tsc",
"checks": "echo 'linter running..' && npm run lint && echo 'type check running..' && tsc",
"test": "vitest --run"
},
"dependencies": {
"preact": "^10.19.6",
"preact-iso": "^2.6.3"
},
"devDependencies": {
"@preact/preset-vite": "^2.8.1",
"@testing-library/preact": "^3.2.3",
"@vitest/browser": "^2.0.3",
"eslint": "^8.57.0",
"eslint-config-preact": "^1.3.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-css-modules": "^2.12.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"playwright": "^1.45.2",
"prettier": "^3.2.5",
"rollup-plugin-visualizer": "^5.12.0",
"string-hash": "^1.1.3",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vite-plugin-sass-dts": "^1.3.17",
"vitest": "^2.0.3",
"yorkie": "^2.0.0"
},
"gitHooks": {
"pre-push": "npm run checks"
},
"eslintConfig": {
"extends": [
"preact",
"plugin:jsx-a11y/recommended",
"plugin:import/recommended",
"plugin:css-modules/recommended"
],
"plugins": [
"jsx-a11y",
"css-modules"
],
"rules": {
"import/extensions": [
"error",
{
"js": "never",
"jsx": "never",
"svg": "always",
"png": "always"
}
],
"css-modules/no-unused-class": [
"error",
{
"camelCase": true
}
],
"css-modules/no-undef-class": [
"error",
{
"camelCase": true
}
],
"react-hooks/exhaustive-deps": "off",
"arrow-body-style": [
"error",
"as-needed"
]
},
"settings": {
"import/extensions": [
".js",
".jsx"
],
"import/resolver": {
"alias": {
"map": [
[
"~",
"./src"
],
[
"react",
"preact/compat"
],
[
"react-dom",
"preact/compat"
]
],
"extensions": [
".js",
".jsx"
]
}
},
"jest": {
"version": 27
}
}
},
"prettier": {
"printWidth": 120,
"singleQuote": true
}
}