-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
102 lines (102 loc) · 2.25 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
{
"name": "@preact/legacy-compat",
"public": true,
"version": "0.2.0",
"description": "Preact compatibility layer that supports deprecated React APIs'",
"module": "./dist/legacy-compat.module.js",
"main": "./dist/legacy-compat.js",
"unpkg": "./dist/legacy-compat.umd.js",
"scripts": {
"build": "microbundle -f es && microbundle -f cjs,umd src/cjs.js",
"pretest": "npm run build",
"test": "eslint src test && jest"
},
"repository": "preactjs/legacy-compat",
"author": "The Preact Authors <authors@preactjs.com>",
"license": "MIT",
"homepage": "https://github.com/preactjs/legacy-compat",
"files": [
"dist"
],
"peerDependencies": {
"preact": ">=10.12.0 < 11"
},
"dependencies": {
"prop-types": "^15.7.2"
},
"devDependencies": {
"@babel/plugin-transform-react-jsx": "^7.10.4",
"@types/jest": "^26.0.13",
"eslint": "^7.8.1",
"eslint-config-developit": "^1.2.0",
"eslint-config-prettier": "^6.11.0",
"immutable": "^4.0.0-rc.12",
"jest": "^26.4.2",
"microbundle": "^0.13.0",
"npm-merge-driver-install": "^1.1.1",
"preact": "^10.12.0",
"prettier": "^2.1.1"
},
"babel": {
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
],
"plugins": [
"@babel/plugin-transform-react-jsx"
]
}
}
},
"eslintConfig": {
"extends": [
"developit",
"prettier"
],
"settings": {
"react": {
"pragma": "createElement"
}
},
"rules": {
"camelcase": [
1,
{
"allow": [
"__test__*",
"unstable_*",
"UNSAFE_*"
]
}
],
"prefer-rest-params": 0,
"prefer-spread": 0,
"no-cond-assign": 0,
"no-prototype-builtins": 0,
"no-duplicate-imports": 0,
"react/jsx-no-bind": 0,
"react/no-danger": "off",
"react/prefer-stateless-function": 0
}
},
"eslintIgnore": [
"test/fixtures",
"test/ts/",
"*.ts",
"dist"
],
"prettier": {
"singleQuote": true,
"trailingComma": "none",
"useTabs": true,
"tabWidth": 2
}
}