Skip to content

Commit ea6d6bf

Browse files
committed
Update dev-dependencies
1 parent 757f854 commit ea6d6bf

4 files changed

Lines changed: 46 additions & 16 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
},
4141
"devDependencies": {
4242
"browserify": "^16.0.0",
43-
"c8": "^6.0.1",
44-
"dtslint": "^1.0.2",
43+
"c8": "^6.0.0",
44+
"dtslint": "^2.0.0",
4545
"prettier": "^1.0.0",
4646
"remark-cli": "^7.0.0",
4747
"remark-preset-wooorm": "^6.0.0",
4848
"tape": "^4.0.0",
49-
"tinyify": "^2.5.1",
49+
"tinyify": "^2.0.0",
5050
"xo": "^0.25.0"
5151
},
5252
"scripts": {

test/use.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ test('use(plugin[, options])', function(t) {
237237

238238
st.plan(1)
239239

240-
p.use([[plugin, false], [plugin, true]]).freeze()
240+
p.use([
241+
[plugin, false],
242+
[plugin, true]
243+
]).freeze()
241244

242245
function plugin() {
243246
st.pass('should reconfigure')
@@ -249,7 +252,10 @@ test('use(plugin[, options])', function(t) {
249252

250253
st.plan(1)
251254

252-
p.use([[plugin, false], [plugin, {foo: true}]]).freeze()
255+
p.use([
256+
[plugin, false],
257+
[plugin, {foo: true}]
258+
]).freeze()
253259

254260
function plugin(options) {
255261
st.deepEqual(options, {foo: true}, 'should reconfigure')
@@ -397,7 +403,12 @@ test('use(preset)', function(t) {
397403
var one = {}
398404
var two = {}
399405
var p = unified()
400-
.use({plugins: [[a, one], [b, two]]})
406+
.use({
407+
plugins: [
408+
[a, one],
409+
[b, two]
410+
]
411+
})
401412
.freeze()
402413
var q = p().freeze()
403414

types/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ declare namespace unified {
8585
/**
8686
* Compile a syntax tree to text.
8787
*
88-
* @param node
88+
* @param node unist node
8989
* @param file `VFile` or anything which can be given to `vfile()`
9090
* @returns String representation of the syntax tree file
9191
*/
@@ -210,7 +210,6 @@ declare namespace unified {
210210
*
211211
* Attachers can configure processors, such as by interacting with parsers and compilers, linking them to other processors, or by specifying how the syntax tree is handled.
212212
*
213-
* @this Processor context object is set to the invoked on processor.
214213
* @param settings Configuration
215214
* @typeParam S Plugin settings
216215
* @typeParam P Processor settings
@@ -285,7 +284,6 @@ declare namespace unified {
285284
*
286285
* Attachers can configure processors, such as by interacting with parsers and compilers, linking them to other processors, or by specifying how the syntax tree is handled.
287286
*
288-
* @this Processor context object is set to the invoked on processor.
289287
* @param settings Configuration
290288
* @typeParam S Plugin settings
291289
* @typeParam P Processor settings

types/unified-tests.ts

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,46 @@ processor.use(plugin, settings)
6868
processor.use([plugin, plugin])
6969
processor.use([plugin])
7070
processor.use([plugin, settings])
71-
processor.use([[plugin, settings], [plugin, settings]])
71+
processor.use([
72+
[plugin, settings],
73+
[plugin, settings]
74+
])
7275

7376
processor.use(parserPlugin)
7477
processor.use(parserPlugin).use(parserPlugin)
7578
processor.use(parserPlugin, settings)
7679
processor.use([parserPlugin, plugin])
7780
processor.use([parserPlugin])
7881
processor.use([parserPlugin, settings])
79-
processor.use([[parserPlugin, settings], [parserPlugin, settings]])
82+
processor.use([
83+
[parserPlugin, settings],
84+
[parserPlugin, settings]
85+
])
8086

8187
processor.use(compilerPlugin)
8288
processor.use(compilerPlugin).use(compilerPlugin)
8389
processor.use(compilerPlugin, settings)
8490
processor.use([compilerPlugin, plugin])
8591
processor.use([compilerPlugin])
8692
processor.use([compilerPlugin, settings])
87-
processor.use([[compilerPlugin, settings], [compilerPlugin, settings]])
93+
processor.use([
94+
[compilerPlugin, settings],
95+
[compilerPlugin, settings]
96+
])
8897

8998
processor.use(typedPlugin)
9099
processor.use(typedPlugin).use(typedPlugin)
91100
processor.use(typedPlugin, typedSetting)
92101
// NOTE: in tuple/array form settings are not able to be type checked
93102
processor.use([typedPlugin, typedSetting])
94-
processor.use([[typedPlugin, typedSetting], [typedPlugin, typedSetting]])
95-
processor.use([[plugin, settings], [typedPlugin, typedSetting]])
103+
processor.use([
104+
[typedPlugin, typedSetting],
105+
[typedPlugin, typedSetting]
106+
])
107+
processor.use([
108+
[plugin, settings],
109+
[typedPlugin, typedSetting]
110+
])
96111
processor.use([typedPlugin])
97112
processor.use([typedPlugin, typedSetting, settings])
98113
processor.use([typedPlugin, settings])
@@ -106,7 +121,10 @@ processor.use([
106121
[implicitlyTypedPlugin, typedSetting],
107122
[implicitlyTypedPlugin, typedSetting]
108123
])
109-
processor.use([[plugin, settings], [implicitlyTypedPlugin, typedSetting]])
124+
processor.use([
125+
[plugin, settings],
126+
[implicitlyTypedPlugin, typedSetting]
127+
])
110128
processor.use([implicitlyTypedPlugin])
111129
processor.use([implicitlyTypedPlugin, settings])
112130
processor.use([implicitlyTypedPlugin, typedSetting, settings])
@@ -190,7 +208,10 @@ processor.use({
190208
plugins: [plugin, plugin]
191209
})
192210
processor.use({
193-
plugins: [[plugin, settings], [plugin, settings]]
211+
plugins: [
212+
[plugin, settings],
213+
[plugin, settings]
214+
]
194215
})
195216
processor.use({
196217
plugins: [

0 commit comments

Comments
 (0)