Skip to content

Commit

Permalink
Remove unneeded dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 23, 2021
1 parent ad69e66 commit 5f49f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

import supportsColor from 'supports-color'
import width from 'string-width'
import repeat from 'repeat-string'
import {stringifyPosition} from 'unist-util-stringify-position'
import {statistics} from 'vfile-statistics'
import {sort} from 'vfile-sort'
Expand Down Expand Up @@ -228,7 +227,7 @@ function format(map, one, options) {
lines.push(
(
' ' +
repeat(' ', map.sizes.place - size(row.place)) +
' '.repeat(map.sizes.place - size(row.place)) +
row.place +
' ' +
(enabled
Expand All @@ -238,13 +237,13 @@ function format(map, one, options) {
row.label +
'\u001B[39m'
: row.label) +
repeat(' ', map.sizes.label - size(row.label)) +
' '.repeat(map.sizes.label - size(row.label)) +
' ' +
reason +
repeat(' ', map.sizes.reason - size(reason)) +
' '.repeat(map.sizes.reason - size(reason)) +
' ' +
row.ruleId +
repeat(' ', map.sizes.ruleId - size(row.ruleId)) +
' '.repeat(map.sizes.ruleId - size(row.ruleId)) +
' ' +
(row.source || '')
).replace(/ +$/, '') + rest
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
"index.js"
],
"dependencies": {
"@types/repeat-string": "^1.0.0",
"@types/supports-color": "^8.0.0",
"repeat-string": "^1.0.0",
"string-width": "^5.0.0",
"supports-color": "^9.0.0",
"unist-util-stringify-position": "^3.0.0",
Expand Down

0 comments on commit 5f49f3a

Please sign in to comment.