{"id":26305,"library":"remark-preset-lint-travi","title":"remark-preset-lint-travi","description":"remark preset configuring remark-lint with the author's Markdown style preferences. Current stable version is 6.0.8, released under MIT license. It is a shareable configuration that bundles a set of lint rules via the underlying @form8ion/remark-lint-preset. Preset releases are tightly coupled to the dependency's version, with frequent updates (multiple releases per year). Differentiator: opinionated defaults from a single maintainer, with support for ESM-only configuration files (.remarkrc.js with export default), requiring Node >=16.14.","status":"active","version":"6.0.8","language":"javascript","source_language":"en","source_url":"https://github.com/travi/remark-preset-lint-travi","tags":["javascript"],"install":[{"cmd":"npm install remark-preset-lint-travi","lang":"bash","label":"npm"},{"cmd":"yarn add remark-preset-lint-travi","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-preset-lint-travi","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core unified processor for Markdown; required as a peer to run the preset.","package":"remark","optional":false},{"reason":"CLI tool to run lint checks from the terminal; typically installed alongside the preset.","package":"remark-cli","optional":false},{"reason":"Underlying preset that provides the actual lint rules. The wrapper preset delegates to this.","package":"@form8ion/remark-lint-preset","optional":false}],"imports":[{"note":"The preset is used as a string in .remarkrc.js; the import is for programmatic use. ESM-only since v6.","symbol":"preset","correct":"import remarkPresetLintTravi from 'remark-preset-lint-travi'"},{"note":"The .remarkrc.js file must use ESM export default. CommonJS module.exports will not work with modern remark CLI.","wrong":"module.exports = { plugins: ['remark-preset-lint-travi'] }","symbol":"configuration","correct":"export default { plugins: ['remark-preset-lint-travi'] }"},{"note":"The preset alone is not enough; remark and remark-cli must be installed together.","wrong":"npm install remark-preset-lint-travi","symbol":"remark-preset-lint-travi","correct":"npm install remark remark-cli remark-preset-lint-travi --save-dev"}],"quickstart":{"code":"npm install remark remark-cli remark-preset-lint-travi --save-dev\necho 'export default { plugins: [\"remark-preset-lint-travi\"] }' > .remarkrc.js\necho '# Test\n## Heading\nSome text.' > test.md\nnpx remark --frail .","lang":"javascript","description":"Shows installation, configuration via .remarkrc.js, and running the linter on a sample Markdown file."},"warnings":[{"fix":"Upgrade to v6.0.0+ and ensure Node >=16.14.","message":"Node.js v17 support dropped; minimum Node version raised to 16.14","severity":"breaking","affected_versions":"<=5.0.2"},{"fix":"Convert .remarkrc.js to use export default { plugins: ['remark-preset-lint-travi'] }.","message":"Preset is ESM-only starting from v6. .remarkrc.js must use export default, not module.exports.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"No direct fix; if you need to customize rules, consider composing a custom preset using remark-lint rules directly.","message":"The underlying @form8ion/remark-lint-preset is not directly configurable; all rule configuration is opaque.","severity":"deprecated","affected_versions":">0.0.0"},{"fix":"Run npm install remark remark-cli remark-preset-lint-travi --save-dev.","message":"remark and remark-cli must be installed as peer dependencies; only installing the preset will not work.","severity":"gotcha","affected_versions":">0.0.0"},{"fix":"Always use --frail in lint scripts to ensure failures are caught.","message":"The --frail flag causes remark to exit with a non-zero code on warnings, which is required for CI.","severity":"gotcha","affected_versions":">0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install remark remark-cli remark-preset-lint-travi --save-dev.","cause":"Missing or incorrect installation; missing peer dependencies.","error":"Error: Cannot find module 'remark-preset-lint-travi'"},{"fix":"Change .remarkrc.js to: export default { plugins: ['remark-preset-lint-travi'] }.","cause":"Using CommonJS module.exports in .remarkrc.js with ESM-only preset v6+.","error":"Error: [unified] Cannot parse `.remarkrc.js` with function `module.exports`"},{"fix":"Ensure remark is installed and import the preset: import remark from 'remark'; import remarkPresetLintTravi from 'remark-preset-lint-travi';","cause":"Attempting to use the preset programmatically without importing it correctly or missing remark.","error":"TypeError: remark is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}