-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
66 lines (66 loc) · 1.5 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
{
"name": "preact-realworld-example-app",
"private": true,
"scripts": {
"start": "wmr",
"build": "wmr build --prerender",
"build:visualize": "wmr build --prerender --visualize",
"serve": "wmr serve",
"lint": "eslint 'public/**/*.{ts,tsx}' --fix && prettier 'public/**/*{ts,tsx}' --write",
"prepare": "husky install",
"pre-commit": "lint-staged"
},
"alias": {
"react": "preact/compat",
"react-dom": "preact/compat"
},
"dependencies": {
"preact": "^10.6.4",
"preact-iso": "^2.3.0",
"snarkdown": "^2.0.0",
"ts-api-toolkit": "^2.0.16",
"zustand": "^3.6.7"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"eslint": "^8.4.1",
"eslint-config-preact": "^1.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.2",
"preact-render-to-string": "^5.1.19",
"prettier": "^2.5.1",
"typescript": "^4.5.4",
"wmr": "^3.7.2"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,json}": [
"prettier --write"
]
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"preact",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_.*"
}
],
"react/no-danger": "off"
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "none",
"useTabs": true,
"printWidth": 120,
"arrowParens": "avoid"
}
}