Skip to content

Add an environment variable to disable the "old data" warning #107

@silverwind

Description

@silverwind

I'm using this module as part of eslint-plugin-unicorn and this warning is slightly annoying during eslint runs:

console.warn(
"[baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: `npm i baseline-browser-mapping@latest -D`",
);

Maybe we can have a BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA environment variable that if set, would silence this warning, similar to BROWSERSLIST_IGNORE_OLD_DATA for the browserslist module?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions