-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
package.json
98 lines (98 loc) · 1.87 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
{
"name": "@wmr/monorepo",
"private": true,
"workspaces": {
"packages": [
"./packages/*",
"./examples/*",
"./docs"
],
"nohoist": [
"**/preact-iso"
]
},
"scripts": {
"wmr": "yarn workspace wmr run",
"demo": "yarn workspace @examples/demo run",
"docs": "yarn workspace docs",
"iso": "yarn workspace preact-iso",
"ci": "yarn wmr build && yarn --check-files && yarn demo build:prod",
"postinstall": "patch-package --exclude 'nothing'"
},
"eslintConfig": {
"extends": [
"developit",
"prettier",
"plugin:prettier/recommended"
],
"plugins": [
"prettier",
"import"
],
"rules": {
"no-console": "error",
"prefer-rest-params": "off",
"prefer-spread": "off",
"no-prototype-builtins": "off",
"function-call-argument-newline": [
"error",
"consistent"
],
"react/jsx-no-bind": "off",
"import/extensions": [
"error",
"always",
{
"ignorePackages": true
}
]
},
"globals": {
"jestPuppeteer": "readonly",
"browser": "readonly",
"page": "readonly"
}
},
"eslintIgnore": [
"**/*.ts",
"packages/wmr/wmr.cjs",
"packages/wmr/test/fixtures/**"
],
"prettier": {
"singleQuote": true,
"trailingComma": "none",
"useTabs": true,
"printWidth": 120,
"arrowParens": "avoid"
},
"lint-staged": {
"packages/**/*.{js,ts}": [
"eslint --fix",
"prettier --write"
],
"*.md": [
"prettier --write"
],
"*.json": [
"prettier --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"devDependencies": {
"@changesets/changelog-github": "^0.2.7",
"@changesets/cli": "^2.12.0",
"eslint": "^7.4.0",
"eslint-config-developit": "^1.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"patch-package": "^6.4.7",
"prettier": "^2.3.2"
}
}