-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
121 lines (121 loc) · 2.81 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
117
118
119
120
121
{
"private": true,
"name": "picturestories",
"description": "Tell a story using hieroglyphics.",
"version": "0.0.0",
"license": "MIT",
"author": "Fresh Codes <[email protected]> (https://fresh.codes/)",
"scripts": {
"start": "npm run -s dev",
"build": "preact build",
"dev": "preact watch",
"lint": "eslint --fix src *.js && stylelint --fix \"**/*.css\"",
"test": "jest ./tests"
},
"eslintConfig": {
"globals": {
"self": true,
"workbox": true
},
"parser": "babel-eslint",
"extends": [
"standard",
"standard-jsx",
"standard-react"
],
"settings": {
"react": {
"pragma": "h"
}
},
"env": {
"jest": true
},
"rules": {
"react/jsx-no-bind": [
"error",
{
"allowArrowFunctions": true,
"allowBind": false,
"ignoreRefs": true
}
],
"react/no-unknown-property": 0,
"react/no-did-update-set-state": 2,
"react/react-in-jsx-scope": 2,
"react/prop-types": 0,
"react/jsx-handler-names": 0
}
},
"eslintIgnore": [
"build/*"
],
"stylelint": {
"extends": "stylelint-config-standard",
"rules": {
"font-family-no-missing-generic-family-keyword": null,
"at-rule-no-unknown": null
},
"ignoreFiles": [
"node_modules/**",
"build/**"
]
},
"browserslist": [
"> 5%",
"last 2 versions",
"Firefox ESR",
"not android <= 4.4",
"not ie <= 11",
"not ie_mob <= 11",
"not bb <= 10",
"not op_mob <= 12.1"
],
"dependencies": {
"lz-string": "^1.4.4",
"preact": "^10.6.5",
"preact-render-to-string": "^5.1.10",
"preact-router": "^4.0.1"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-preact-pure": "^3.3.0",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-config-standard-jsx": "^10.0.0",
"eslint-config-standard-react": "^11.0.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.2.0",
"eslint-plugin-react": "^7.28.0",
"husky": "^4.3.6",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.4.7",
"jest-preset-preact": "^4.0.5",
"lint-staged": "^10.5.3",
"preact-cli": "^3.3.3",
"stylelint": "^13.8.0",
"stylelint-config-standard": "^22.0.0"
},
"jest": {
"moduleNameMapper": {
"\\.(css)$": "identity-obj-proxy"
},
"preset": "jest-preset-preact",
"setupFiles": [
"<rootDir>/tests/__mocks__/browserMocks.js",
"<rootDir>/tests/__mocks__/setupTests.js"
]
},
"lint-staged": {
"*.js": "eslint --fix",
"*.scss": "stylelint --fix"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test"
}
}
}