You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Configure a browserbug linting rule as 'error'
Specify a browser that is the "latest" at the time of writing, such as @browserbug chrome lower-than 131
A different installation (perhaps a different PR) changes the lockfile, to resolve a relatively older version of browserslist or caniuse-db
The linter will show an error, because that latest version is no longer recognised 😱
A similar issue can happen if you accidentally update browerslist or caniuse-db, and the specified version falls out of the supported range.
The core issue here is not an intentional update to browserslist (after all, it is the intent of this library to prompt you to delete things), but rather accidental updates due to the lockfile changing.
Describe the solution you'd like
To avoid this issue, we can do a few things:
Configure a setting to opt-in or opt-out of unknown version bugs
Perhaps we can downgrade unknown versions to a warning, by default?
This only accounts for only one of the problems, but this is the more annoying one. A "latest" browserslist is always the correct one, given that time marches on (browser releases happen, and statistics change 😅 )
Write documentation on how to pin caniuse-db and/or browserslist. This likely would be via a package manager's overrides field.
Describe alternatives you've considered
Doing nothing is also an option, and prompting people to figure out why the resolved version changed. However, this can be non-obvious, given transitive dependencies, deduplication and other resolution rules.
Additional context
My gut feeling is to start with explicit documentation, and to consult what browserslist and/or caniuse-db advise.
The text was updated successfully, but these errors were encountered:
Relevant package
@woltapp/eslint-plugin-browserbug
,@wotlapp/stylelint-plugin-browserbug
.Is your feature request related to a problem? Please describe.
@browserbug chrome lower-than 131
browserslist
orcaniuse-db
A similar issue can happen if you accidentally update
browerslist
orcaniuse-db
, and the specified version falls out of the supported range.The core issue here is not an intentional update to browserslist (after all, it is the intent of this library to prompt you to delete things), but rather accidental updates due to the lockfile changing.
Describe the solution you'd like
To avoid this issue, we can do a few things:
caniuse-db
and/orbrowserslist
. This likely would be via a package manager'soverrides
field.Describe alternatives you've considered
Doing nothing is also an option, and prompting people to figure out why the resolved version changed. However, this can be non-obvious, given transitive dependencies, deduplication and other resolution rules.
Additional context
My gut feeling is to start with explicit documentation, and to consult what browserslist and/or caniuse-db advise.
The text was updated successfully, but these errors were encountered: