This repository was archived by the owner on Sep 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 2.9 KB
/
Copy pathpackage.json
File metadata and controls
106 lines (106 loc) · 2.9 KB
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
{
"name": "@datawrapper/shared",
"version": "0.35.1",
"description": "shared functions used throughout datawrapper",
"keywords": [
"js",
"shared",
"utils"
],
"homepage": "https://github.com/datawrapper/shared#readme",
"bugs": {
"url": "https://github.com/datawrapper/shared/issues"
},
"license": "MIT",
"author": "Datawrapper GmbH",
"main": "index.js",
"type": "module",
"engines": {
"node": ">=14.0.0",
"npm": ">=7.0.0"
},
"scripts": {
"format": "prettier '**/*.js' --write",
"lint": "prettier --check '**/*.{js,html}' && healthier '**/*.{js,html}'",
"test": "ava",
"test:watch": "ava -w",
"prepublishOnly": "npm test && npm run lint",
"docs": "jsdoc2md --template jsdoc2md/README.hbs --files *.js --files node/*.js -g grouped --separators | sed '/\\*\\*Kind\\*\\*/d' | sed '/## $/d' | sed 's/## \\([a-z]\\)/### \\1/' > README.md && node jsdoc2md/fixSorting.cjs",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/datawrapper/shared.git"
},
"devDependencies": {
"@datawrapper/eslint-config": "^0.2.2",
"ava": "^3.15.0",
"babel-eslint": "^10.0.1",
"browser-env": "^3.2.6",
"d3-interpolate": "^1.3.2",
"dayjs": "^1.10.4",
"esm": "3.2.25",
"healthier": "^4.0.0",
"husky": "^6.0.0",
"jsdoc-to-markdown": "^7.0.1",
"lint-staged": "^11.0.0",
"node-fetch": "^2.6.0",
"prettier": "^2.3.1",
"raf": "^3.4.1"
},
"dependencies": {
"chroma-js": "^2.1.2",
"d3-array": "^1.2.4",
"fontfaceobserver": "^2.1.0",
"js-cookie": "^2.2.1",
"numeral": "^2.0.6",
"sinon": "^11.1.1",
"underscore": "^1.13.1"
},
"lint-staged": {
"*.js": [
"prettier --write",
"healthier",
"git add"
]
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 100,
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "none"
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": "@datawrapper/eslint-config",
"rules": {
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"camelcase": [
"warn",
{
"ignoreDestructuring": true,
"properties": "never"
}
]
}
},
"ava": {
"require": [
"esm",
"./test/helpers/setup-browser-env.cjs"
]
},
"publishConfig": {
"access": "public"
}
}