Skip to content

Commit e58b095

Browse files
committed
Refactor code-style
* Remove types for actually unsupported tuple support in `use`, tuples can exist in lists, but not at the top * Add more info to JSDoc comments * Use more casts, add development assertions, remove `ts-expect-error`s
1 parent cc53bb6 commit e58b095

6 files changed

+128
-135
lines changed

index.test-d.ts

-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ unified().use(pluginWithSeveralArgumentsImplicit, {example: ''}, 1)
162162

163163
unified()
164164
.use(pluginWithOptions, {example: ''})
165-
.use([pluginWithOptions, {example: ''}])
166165
.use([[pluginWithOptions, {example: ''}]])
167166
.use({
168167
plugins: [[pluginWithOptions, {example: ''}]]
@@ -173,8 +172,6 @@ unified()
173172
unified()
174173
.use(pluginWithoutOptions, true)
175174
.use(pluginWithoutOptions, false)
176-
.use([pluginWithoutOptions, true])
177-
.use([pluginWithoutOptions, false])
178175
.use([
179176
[pluginWithoutOptions, true],
180177
[pluginWithoutOptions, false]

lib/callable-instance.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable unicorn/no-this-assignment */
21
/**
32
* @param {string} property
43
*/

0 commit comments

Comments
 (0)