A plugin for lint-to-the-future that integrates with stylelint to lint CSS files and track linting ignore comments. Current stable version 2.1.0 (released March 2025). Used to progressively enforce stylelint rules by marking files for future linting. Differentiates from direct stylelint usage by allowing incremental adoption via lint-to-the-future's ignore comment tracking. Works with stylelint v13, v14, and v15+. Requires Node 12+ (v2.x requires Node 18+).
npm install lint-to-the-future-stylelintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create the plugin and use it with lint-to-the-future to track stylelint-disable comments.
Upgrade Node to >=18 and ensure project uses ESM (type: module or .mjs extension). Remove any require() calls for this package.
Update to v2.1.0 which supports stylelint v15+. For stylelint v13/v14, stay on v1.x.
Ensure your CSS files contain the appropriate stylelint-disable comments for lint-to-the-future to track.
Review your ignore patterns to ensure they work with globby syntax. Refer to globby documentation.
npm install lint-to-the-future-stylelint@2 and use import syntax.
Use import lintToTheFutureStylelint from 'lint-to-the-future-stylelint' (default import).
Upgrade Node to >=18 or downgrade stylelint to v14.
Use the 'config' property as a stylelint config object, not 'configFile'.