Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 13, 2024
1 parent 8f6ed57 commit 9b1471e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/funding.yml

This file was deleted.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const determineDimensions = (text, options) => {
}

// If fixed width is provided, use it or content width as reference
options.width = options.width ? options.width : widest;
options.width ||= widest;

if (!widthOverride) {
if ((options.margin.left && options.margin.right) && options.width > maxWidth) {
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=18"
},
Expand Down Expand Up @@ -59,8 +63,6 @@
},
"xo": {
"rules": {
"@typescript-eslint/no-redundant-type-constituents": "off",
"unicorn/prefer-logical-operator-over-ternary": "off",
"@typescript-eslint/no-unsafe-assignment": "off"
}
}
Expand Down

0 comments on commit 9b1471e

Please sign in to comment.