-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
92 lines (92 loc) · 1.9 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
{
"name": "jest-preset-preact",
"version": "4.1.1",
"description": "Jest preset for testing Preact apps",
"main": "src/preset.js",
"author": "Preact Authors <core@preactjs.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/preactjs/jest-preset-preact.git"
},
"bugs": {
"url": "https://github.com/preactjs/jest-preset-preact/issues"
},
"scripts": {
"test": "eslint \"**/*.{js,jsx}\" && jest"
},
"dependencies": {
"@babel/core": "^7.20.7",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"babel-jest": "^29.3.1",
"identity-obj-proxy": "^3.0.0",
"isomorphic-unfetch": "^3.1.0",
"jest-environment-jsdom": "^29.3.1",
"jest-watch-typeahead": "^2.2.1"
},
"devDependencies": {
"@babel/eslint-parser": "^7.19.1",
"@types/jest": "^29.2.4",
"eslint": "^8.30.0",
"husky": "^8.0.2",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"preact": "10.11.3",
"preact-render-to-string": "5.2.6",
"prettier": "^2.8.1"
},
"peerDependencies": {
"jest": "27.x || 28.x || 29.x",
"preact": "10.x",
"preact-render-to-string": "5.x || 6.x"
},
"files": [
"src/",
"jest-preset.js"
],
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"useTabs": true,
"tabWidth": 2,
"arrowParens": "avoid"
},
"lint-staged": {
"**/*.{js,ts,tsx}": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"jest": {
"preset": "./src/preset.js"
},
"eslintConfig": {
"env": {
"node": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaFeatures": {
"jsx": true
},
"babelOptions": {
"parserOpts": {
"plugins": [
"jsx"
]
}
},
"requireConfigFile": false
}
}
}