Travis-lint is a tool for linting .travis.yml files to catch common misconfigurations and syntax errors in Travis CI configuration. Version 1.0.0 is the final release; the package is unmaintained since 2014. It supports both programmatic and CLI usage, but relies on a callback-style API. Compared to alternatives like yamllint or Travis CI's web linter, this package is minimal and outdated; Travis CI now provides native validation.
npm install travis-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Read .travis.yml file synchronously and lint it, printing any warnings.
Use Travis CI's native linting (travis lint command) or yamllint with a Travis schema.
Always provide encoding: fs.readFileSync('.travis.yml', 'utf8')Wrap in a Promise if needed: new Promise((resolve, reject) => lint(yaml, (err, w) => err ? reject(err) : resolve(w)))
Ensure input is a string: const yaml = fs.readFileSync('.travis.yml', 'utf8');Add: const lint = require('travis-lint');