forked from remarkjs/react-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
205 lines (205 loc) · 6.31 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"name": "react-markdown",
"version": "8.0.3",
"description": "React component to render markdown",
"license": "MIT",
"keywords": [
"remark",
"unified",
"markdown",
"commonmark",
"gfm",
"ast",
"react",
"react-component",
"component"
],
"repository": "remarkjs/react-markdown",
"bugs": "https://github.com/remarkjs/react-markdown/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Espen Hovlandsdal <[email protected]>",
"contributors": [
"Espen Hovlandsdal <[email protected]>",
"Titus Wormer <[email protected]> (https://wooorm.com)",
"Thomas Lindstrøm <[email protected]>",
"Fabian Irsara <[email protected]>",
"René Kooi <[email protected]>",
"Nicolas Venegas <[email protected]>",
"Christian Murphy <[email protected]>",
"Linus Unnebäck <[email protected]>",
"Peng Guanwen <[email protected]>",
"mudrz <[email protected]>",
"Jesse Pinho <[email protected]>",
"Florentin Luca Rieger <[email protected]>",
"Frank <[email protected]>",
"Igor Kamyshev <[email protected]>",
"Jack Williams <[email protected]>",
"Jakub Chrzanowski <[email protected]>",
"Jeremy Moseley <[email protected]>",
"Kelvin Chan <[email protected]>",
"Kohei Asai <[email protected]>",
"Marshall Smith <[email protected]>",
"Nathan Bierema <[email protected]>",
"Petr Gazarov <[email protected]>",
"Phil Rajchgot <[email protected]>",
"Rasmus Eneman <[email protected]>",
"Riku Rouvila <[email protected]>",
"Robin Wieruch <[email protected]>",
"Rostyslav Melnychuk <[email protected]>",
"Ted Piotrowski <[email protected]>",
"Thibaud Courtoison <[email protected]>",
"Tiago Roldão <[email protected]>",
"cerkiewny <[email protected]>",
"evoye <[email protected]>",
"gRoberts84 <[email protected]>",
"Alexander Wallin <[email protected]>",
"vanchagreen <[email protected]>",
"Alexander Wong <[email protected]>",
"André Staltz <[email protected]>",
"Angus MacIsaac <[email protected]>",
"Beau Roberts <[email protected]>",
"Charlie Chen <[email protected]>",
"Christoph Werner <[email protected]>",
"Danny <[email protected]>",
"Dennis S <[email protected]>",
"Evan Hensleigh <[email protected]>"
],
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"unpkg": "react-markdown.min.js",
"files": [
"lib/",
"index.d.ts",
"index.js",
"react-markdown.min.js"
],
"dependencies": {
"@types/hast": "^2.0.0",
"@types/prop-types": "^15.0.0",
"@types/unist": "^2.0.0",
"comma-separated-tokens": "^2.0.0",
"hast-util-whitespace": "^2.0.0",
"prop-types": "^15.0.0",
"property-information": "^6.0.0",
"react-is": "^18.0.0",
"remark-parse": "^10.0.0",
"remark-rehype": "^10.0.0",
"space-separated-tokens": "^2.0.0",
"style-to-object": "^0.3.0",
"unified": "^10.0.0",
"unist-util-visit": "^4.0.0",
"vfile": "^5.0.0"
},
"peerDependencies": {
"@types/react": ">=16",
"react": ">=16"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react-is": "^17.0.0",
"c8": "^7.0.0",
"esbuild": "^0.14.0",
"eslint-config-xo-react": "^0.27.0",
"eslint-plugin-es": "^4.0.0",
"eslint-plugin-react": "^7.0.0",
"eslint-plugin-react-hooks": "^4.0.0",
"eslint-plugin-security": "^1.0.0",
"prettier": "^2.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rehype-raw": "^6.0.0",
"remark-cli": "^10.0.0",
"remark-gfm": "^3.0.0",
"remark-preset-wooorm": "^9.0.0",
"remark-toc": "^8.0.0",
"rimraf": "^3.0.0",
"type-coverage": "^2.0.0",
"typescript": "~4.4.0",
"uvu": "^0.5.0",
"xo": "^0.48.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
"build": "rimraf \"{lib/**/**,test/**,script/**,}*.d.ts\" && tsc && type-coverage && esbuild index.js --bundle --minify --target=es2015 --outfile=react-markdown.min.js --global-name=ReactMarkdown --banner:js=\"(function (g, f) {typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = f() : typeof define === 'function' && define.amd ? define([], f) : (g = typeof globalThis !== 'undefined' ? globalThis : g || self, g.ReactMarkdown = f()); }(this, (function () { 'use strict';\" --footer:js=\"return ReactMarkdown;})));\"",
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --no-warnings --experimental-loader=./test/loader.js ./node_modules/.bin/uvu test \"\\.jsx$\"",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
"remarkConfig": {
"plugins": [
"preset-wooorm",
[
"gfm",
{
"tablePipeAlign": false
}
],
[
"lint-table-pipe-alignment",
false
],
[
"lint-no-html",
false
]
]
},
"typeCoverage": {
"atLeast": 100,
"detail": true,
"strict": true,
"ignoreCatch": true,
"#": "below is ignored because some proptypes will `any`",
"ignoreFiles": [
"lib/react-markdown.d.ts",
"index.d.ts"
]
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"xo": {
"prettier": true,
"extends": "xo-react",
"envs": [
"shared-node-browser"
],
"overrides": [
{
"files": [
"lib/**/*.js"
],
"extends": [
"plugin:es/restrict-to-es2019",
"plugin:security/recommended"
],
"rules": {
"complexity": "off",
"security/detect-object-injection": "off"
}
},
{
"files": [
"test/**/*.jsx"
],
"rules": {
"node/file-extension-in-import": "off",
"react/no-children-prop": "off",
"react/prop-types": "off"
}
}
]
}
}