Registry / testing / remark-preset-lint-travi

remark-preset-lint-travi

JSON →
library6.0.8jsnpmunverified

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.

npm install remark-preset-lint-travi
INSTALL
IMPORT
SIG · REMARK-PRESET-LINT
R
remark-preset-lint-travi
testingjavascriptv6.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

preset
import remarkPresetLintTravi from 'remark-preset-lint-travi'
The preset is used as a string in .remarkrc.js; the import is for programmatic use. ESM-only since v6.
configuration
export default { plugins: ['remark-preset-lint-travi'] }
module.exports = { plugins: ['remark-preset-lint-travi'] }
The .remarkrc.js file must use ESM export default. CommonJS module.exports will not work with modern remark CLI.
remark-preset-lint-travi
npm install remark remark-cli remark-preset-lint-travi --save-dev
npm install remark-preset-lint-travi
The preset alone is not enough; remark and remark-cli must be installed together.

Shows installation, configuration via .remarkrc.js, and running the linter on a sample Markdown file.

npm install remark remark-cli remark-preset-lint-travi --save-dev echo 'export default { plugins: ["remark-preset-lint-travi"] }' > .remarkrc.js echo '# Test ## Heading Some text.' > test.md npx remark --frail .
remark --version
Debug
Known issues
breakingNode.js v17 support dropped; minimum Node version raised to 16.14
fix
Upgrade to v6.0.0+ and ensure Node >=16.14.
affects: <=5.0.2
breakingPreset is ESM-only starting from v6. .remarkrc.js must use export default, not module.exports.
fix
Convert .remarkrc.js to use export default { plugins: ['remark-preset-lint-travi'] }.
affects: >=6.0.0
deprecatedThe underlying @form8ion/remark-lint-preset is not directly configurable; all rule configuration is opaque.
fix
No direct fix; if you need to customize rules, consider composing a custom preset using remark-lint rules directly.
affects: >0.0.0
gotcharemark and remark-cli must be installed as peer dependencies; only installing the preset will not work.
fix
Run npm install remark remark-cli remark-preset-lint-travi --save-dev.
affects: >0.0.0
gotchaThe --frail flag causes remark to exit with a non-zero code on warnings, which is required for CI.
fix
Always use --frail in lint scripts to ensure failures are caught.
affects: >0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'remark-preset-lint-travi'
Missing or incorrect installation; missing peer dependencies.
fix
Run npm install remark remark-cli remark-preset-lint-travi --save-dev.
Error: [unified] Cannot parse `.remarkrc.js` with function `module.exports`
Using CommonJS module.exports in .remarkrc.js with ESM-only preset v6+.
fix
Change .remarkrc.js to: export default { plugins: ['remark-preset-lint-travi'] }.
TypeError: remark is not a function
Attempting to use the preset programmatically without importing it correctly or missing remark.
fix
Ensure remark is installed and import the preset: import remark from 'remark'; import remarkPresetLintTravi from 'remark-preset-lint-travi';
Upgrade
Version history
6.0.8latest on npm
Audit
Dependencies
remarkrequiredCore unified processor for Markdown; required as a peer to run the preset.
remark-clirequiredCLI tool to run lint checks from the terminal; typically installed alongside the preset.
@form8ion/remark-lint-presetrequiredUnderlying preset that provides the actual lint rules. The wrapper preset delegates to this.
Agent activity
4 hits · last 30 days
node
4
Resources
remark-preset-lint-travi — npm install remark-preset-lint-travi · libregistry