Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
*   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
  • Loading branch information
wooorm committed Aug 14, 2023
1 parent cc53bb6 commit e58b095
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 135 deletions.
3 changes: 0 additions & 3 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ unified().use(pluginWithSeveralArgumentsImplicit, {example: ''}, 1)

unified()
.use(pluginWithOptions, {example: ''})
.use([pluginWithOptions, {example: ''}])
.use([[pluginWithOptions, {example: ''}]])
.use({
plugins: [[pluginWithOptions, {example: ''}]]
Expand All @@ -173,8 +172,6 @@ unified()
unified()
.use(pluginWithoutOptions, true)
.use(pluginWithoutOptions, false)
.use([pluginWithoutOptions, true])
.use([pluginWithoutOptions, false])
.use([
[pluginWithoutOptions, true],
[pluginWithoutOptions, false]
Expand Down
1 change: 0 additions & 1 deletion lib/callable-instance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-this-assignment */
/**
* @param {string} property
*/
Expand Down
Loading

0 comments on commit e58b095

Please sign in to comment.